        /* TEMEL AYARLAR */
        html, body {
            height: 100%;
            margin: 0;
        }
        
        body {
            display: flex;
            flex-direction: column;
        }
        
        /* İÇERİK ALANI - Esneyerek footer'ı alta itecek */
        main {
            flex: 1 0 auto;
            padding-bottom: 20px; /* Footer ile içerik arası boşluk */
        }
        
        /* FOOTER STİLLERİ */
        footer {
            flex-shrink: 0;
            padding: 20px 0;
            text-align: center;
            border-top: 1px solid #dee2e6;
        }



/* Normal durumda: beyaz arka plan, yeşil yazı, yeşil kenarlık */
.page-link {
    color: #198754 !important;               /* Yazı rengi yeşil */
    background-color: #ffffff00 !important;       /* Arka plan beyaz */
    border: 1px solid #198754 !important;    /* Kenarlık yeşil */
    transition: background-color 0.2s, color 0.2s;
}

/* Aktif, focus veya hover olduğunda: arka plan yeşil, yazı beyaz */
.page-link.active,
.page-item.active .page-link,
.page-link:focus,
.page-link:hover {
    color: #fff !important;                  /* Yazı beyaz */
    background-color: #198754 !important;    /* Arka plan yeşil */
    border-color: #198754 !important;        /* Kenarlık yeşil */
}

/* --- ZAMAN TÜNELİ (TIMELINE) STİLLERİ --- */
.timeline {
    position: relative;
    padding: 20px 0;
}

/* Zaman tünelinin dikey çizgisi */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 4px;
    background: #e9ecef;
    border-radius: 2px;
}

/* Her bir log kaydı */
.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 60px; /* İkon için boşluk bırak */
}

/* Log ikonunun dairesi */
.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    border: 3px solid #e9ecef;
}

/* Log içeriğinin olduğu kart */
.timeline-content {
    position: relative;
}

.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 50px;
    text-align: center;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.drop-zone .drop-zone-text {
    font-size: 1.2rem;
}

.drop-zone.dragover {
    border-color: #0d6efd; /* Bootstrap primary color */
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
}

.file-name-display {
    font-weight: bold;
    color: #28a745; /* Bootstrap success color */
}

/* =============================================== */
/* --- Ders Programı (FullCalendar) Stilleri --- */
/* =============================================== */

/* Haftanın günlerini (Pzt, Sal...) ve ayın günlerini (1, 2...) yeşil yapma */
.fc-col-header-cell-cushion,
.fc-daygrid-day-number {
    color: #198754 !important;
    text-decoration: none !important;
}

/* --- Ders Sayısını Ortalama Stilleri --- */

/* Event'in dış sarmalayıcısını esnek bir kutu yapıp ortalıyoruz */
.fc-daygrid-event-harness {
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0 !important;
    left: 5% !important;  /* Kenarlardan biraz boşluk */
    right: 5% !important;
    bottom: 5% !important;
}

/* Event'in kendisinin arka planını ve kenarlığını tamamen kaldırıyoruz */
.fc-daygrid-event {
    background: transparent !important;
    border: none !important;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.fc-event-main {
    height: 100%;
    width: 100%;
}

/* Bizim özel rakam stilimiz */
.day-lesson-count {
    font-weight: 700; /* Daha etli bir font */
    font-size: 1.6em; /* Daha büyük */
    color: #198754;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
/* =============================================== */
/* --- Bildirim Zili Stilleri --- */
/* public/assets/css/custom.css notification-bell   */

/* Durum 1: Abone olunabilir (Varsayılan) */
.notification-bell.status-default {
    color: #6c757d; /* Bootstrap'in gri rengi */
}
.notification-bell.status-default:hover {
    color: #212529; /* Üzerine gelince koyu renk */
}

/* Durum 2: Abone Olunmuş (Aktif) */
.notification-bell.status-granted {
    color: #198754; /* Bootstrap'in yeşil rengi */
}
.notification-bell.status-granted:hover {
    color: #146c43;
}

/* Durum 3: Reddedilmiş (Engellenmiş) */
.notification-bell.status-denied {
    color: #dc3545; /* Bootstrap'in kırmızı rengi */
    cursor: not-allowed;
}

/* ============================================= */
/* Ders Programı Tablosu Stilleri */
/* ============================================= */

.schedule-grid {
    table-layout: fixed; /* Tablo hücrelerinin içeriğe göre genişlemesini engeller */
    width: 100%;
}

.schedule-grid td, .schedule-grid th {
    vertical-align: middle !important; /* !important ekleyerek bootstrap'i ezmesini garantileyelim */
    word-wrap: break-word; /* Uzun kelimelerin hücre dışına taşmasını engeller */
}

.schedule-grid .available-slot, .schedule-grid .has-lesson {
    cursor: pointer;
    transition: background-color 0.2s;
}

.schedule-grid .available-slot {
    font-weight: bold;
    color: #198754;
}

.schedule-grid .available-slot:hover {
    background-color: #d1e7dd;
}

.schedule-grid .has-lesson {
    font-size: 0.78em; /* Rozet içindeki yazı boyutunu ayarlayabilirsiniz */
    padding: 5px; /* Hücre içi boşluk */
}

.schedule-grid .has-lesson:hover {
    background-color: #badbcc;
}

/* Her bir öğrenci rozetinin stilini belirler */
.student-badge {
    display: block; /* Rozetlerin alt alta gelmesini sağlar */
    width: 100%;    /* Rozetin hücreyi doldurmasını sağlar */
    margin-bottom: 3px; /* Rozetler arasına boşluk koyar */
    white-space: normal; /* Uzun isimlerin rozet içinde sığmasını sağlar */
    text-align: left; /* Rozet içindeki yazıyı sola yaslar */
    padding: 5px 8px; /* Rozet içi boşluk */
}


/* ============================================= */
/* --- PDF Görüntüleyici Stilleri --- */

.ts-dropdown .is-fixed-schedule {
    font-weight: 700 !important;
    color: #198754 !important; /* Bootstrap başarı yeşili */
    background-color: #e9f5ee !important;
}

.table-responsive {
    max-height: 75vh; /* Ekran yüksekliğinin %75'ini kaplasın */
    overflow-y: auto;
}

/* Ders programı gibi dikeyde kaydırılabilir tablolar için özel sınıf */
.table-sticky-container {
    max-height: 75vh; /* Ekran yüksekliğinin %75'i. Değeri artırıp azaltabilirsiniz. */
    overflow-y: auto;
    position: relative; /* Sticky pozisyonlaması için gereklidir */
}

/*chat sayfası

    /* Ana layout'un kalan alanı doldurmasını sağla */
    .d-flex.flex-column.h-100 {
        /* Gerekirse, üst navigasyon çubuğu gibi sabit bir elementin yüksekliğini çıkarabilirsiniz */
        /* Örneğin: height: calc(100vh - 60px) !important; */
        /* Şimdilik h-100 yeterli olacaktır. */
    }

    /* Sohbet mesajlarının genel kapsayıcısı */
    .chat-message-wrapper {
        margin-bottom: 1.5rem; /* Mesajlar arası boşluk */
    }

    /* Sohbet balonlarının temel stili */
    .chat-bubble {
        padding: 0.75rem 1.25rem;
        border-radius: 1.25rem;
        max-width: 80%;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    
    /* Kullanıcı balonu (sağda, yeşil tonlu) */
    .user-bubble {
        background-color: #d1e7dd; /* Yumuşak yeşil */
        color: #0f5132;
        border-bottom-right-radius: 0.5rem;
    }
    
    /* Asistan balonu (solda, beyaz) */
    .ai-bubble {
        background-color: #ffffff;
        border: 1px solid #dee2e6;
        border-bottom-left-radius: 0.5rem;
    }

    /* === Balon Oku Efektleri (CSS Pseudo-elements) === */
    .user-bubble::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: -8px;
        width: 0;
        height: 0;
        border: 12px solid transparent;
        border-left-color: #d1e7dd;
        border-bottom-color: #d1e7dd;
        border-right: 0;
        border-top: 0;
    }
    
    .ai-bubble::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: -8px;
        width: 0;
        height: 0;
        border: 12px solid transparent;
        border-right-color: #ffffff;
        border-bottom-color: #ffffff;
        border-left: 0;
        border-top: 0;
    }
    /* === Ok Efektleri Bitiş === */


    /* Markdown içeriği için stiller (önceki versiyondaki gibi) */
    .markdown-content p:last-child { margin-bottom: 0; }
    .markdown-content { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: #343a40; }
    .markdown-content h1, .markdown-content h2, .markdown-content h3 { margin-top: 1em; margin-bottom: 0.5em; font-weight: 600; border-bottom: 1px solid #eee; padding-bottom: .3em; }
    .markdown-content ul, .markdown-content ol { padding-left: 2em; margin-bottom: 1em; }
    .markdown-content li { margin-bottom: 0.5em; }
    .markdown-content code { background-color: #e9ecef; padding: 0.2em 0.4em; margin: 0; font-size: 85%; border-radius: 6px; }
    .markdown-content pre { background-color: #f8f9fa; padding: 1em; border-radius: 5px; overflow-x: auto; border: 1px solid #dee2e6; }


    /* DataTables arama kutusunu büyük harfe zorla */
div.dataTables_wrapper div.dataTables_filter input {
    text-transform: uppercase;
}