/* Defter Sistemi — Özel Stiller */

/* Geçiş animasyonları */
.sayfa-gecis {
    animation: sayfaGir 0.2s ease-out;
}

@keyframes sayfaGir {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #a78bfa; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #7c3aed; }

/* Toast bildirimi */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: toastGir 0.3s ease-out;
    max-width: 24rem;
}
.toast.basarili { background: #22c55e; }
.toast.hata     { background: #ef4444; }
.toast.uyari    { background: #f59e0b; }
.toast.bilgi    { background: #3b82f6; }

@keyframes toastGir {
    from { opacity: 0; transform: translateY(1rem); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Modal */
.modal-arka {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalArkaGir 0.2s ease-out;
}
@keyframes modalArkaGir {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-icerik {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 32rem;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalGir 0.2s ease-out;
}
.dark .modal-icerik {
    background: #1f2937;
}
@keyframes modalGir {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* Yükleme spinner */
.spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid #e5e7eb;
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: dondur 0.6s linear infinite;
}
@keyframes dondur {
    to { transform: rotate(360deg); }
}

/* Canvas araç çubuğu */
.arac-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
}
.arac-btn:hover { background: #ede9fe; }
.dark .arac-btn:hover { background: #374151; }
.arac-btn.aktif {
    border-color: #7c3aed;
    background: #ede9fe;
}
.dark .arac-btn.aktif {
    border-color: #a78bfa;
    background: #374151;
}

/* Kayıt durumu göstergesi */
.kayit-durumu {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}
.kayit-durumu.kaydedildi { color: #16a34a; background: #dcfce7; }
.kayit-durumu.kaydediliyor { color: #d97706; background: #fef3c7; }
.kayit-durumu.kaydedilmedi { color: #dc2626; background: #fee2e2; }

/* Ders programı grid */
.program-hucre {
    min-height: 3.5rem;
    border-radius: 0.375rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid transparent;
}
.program-hucre:hover {
    filter: brightness(0.95);
    border-color: rgba(0,0,0,0.1);
}

/* Sidebar */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.15s;
}
.dark .sidebar-link { color: #9ca3af; }
.sidebar-link:hover { background: #f3f4f6; color: #111827; }
.dark .sidebar-link:hover { background: #374151; color: #f9fafb; }
.sidebar-link.aktif {
    background: #ede9fe;
    color: #7c3aed;
}
.dark .sidebar-link.aktif {
    background: #4c1d95;
    color: #c4b5fd;
}
