/* ============================================================
   IdeaKoç — Genel Stiller
   ============================================================ */

/* Sidebar aktif link */
#ik-sidebar .nav-link.active {
    background-color: #0d6efd !important;
    font-weight: 600;
}

#ik-sidebar .nav-link:not(.active):hover {
    background-color: rgba(255,255,255,.1);
}

/* İçerik alanı min-height */
#ik-content {
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Ders kartı (takvimde her ders için) */
.ik-lesson-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-left: 3px solid #0d6efd;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: .85rem;
    transition: box-shadow .15s;
}

.ik-lesson-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* Responsive tablo sarmalayıcı */
.table-responsive {
    overflow-x: auto;
}

/* İstatistik kartlarındaki ikon çemberleri */
.rounded-circle.p-3 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

/* Sidebar mobil davranışı */
@media (max-width: 768px) {
    #ik-sidebar {
        min-width: 64px !important;
    }
    #ik-sidebar h5 span,
    #ik-sidebar .nav-link span,
    #ik-sidebar .small,
    #ik-sidebar .badge {
        display: none;
    }
    #ik-sidebar .nav-link {
        text-align: center;
        padding: .5rem;
    }
}

/* ============================================================
   Haftalık Program Grid
   ============================================================ */

.ik-sched-table {
    border-collapse: separate;
    border-spacing: 0;
    font-size: .8rem;
}

/* Başlık satırı */
.ik-th-day {
    background: #1a237e;
    color: #fff;
    padding: 6px 4px;
    font-size: .78rem;
    min-width: 110px;
    text-align: center;
}

.ik-th-today {
    background: #1565c0;
    color: #fff;
    padding: 6px 4px;
    font-size: .78rem;
    min-width: 110px;
    text-align: center;
}

.ik-th-time {
    background: #263238;
    color: #fff;
    padding: 6px 4px;
    width: 68px;
    min-width: 68px;
    font-size: .78rem;
    text-align: center;
}

/* Saat hücresi */
.ik-td-time {
    background: #eceff1;
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
    color: #546e7a;
    padding: 2px 4px !important;
    white-space: nowrap;
    vertical-align: middle;
    width: 68px;
}

/* İçerik hücresi */
.ik-td-cell {
    height: 42px;
    padding: 0 !important;
}

/* Düzenlenebilir hücre butonu (koç) */
.ik-cell-btn {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 42px;
    background: #fff;
    border: 1px solid #e9ecef;
    padding: 3px 5px;
    text-align: center;
    font-size: .73rem;
    line-height: 1.25;
    cursor: pointer;
    transition: filter .1s;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ik-cell-btn:hover {
    filter: brightness(.88);
    z-index: 2;
    position: relative;
}

/* Salt-okunur hücre (öğrenci) */
.ik-cell-ro {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    min-height: 42px;
    border: 1px solid #e9ecef;
    padding: 3px 5px;
    text-align: center;
    font-size: .73rem;
    line-height: 1.25;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Hücre içi metin */
.ik-cell-label {
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ik-cell-sub {
    font-weight: 400;
    opacity: .85;
    font-size: .68rem;
}

.ik-cell-plus {
    color: #ced4da;
    font-size: 1.1rem;
    font-weight: 300;
}

.ik-cell-btn:hover .ik-cell-plus {
    color: #6c757d;
}

/* Modal başlığı */
.ik-modal-hdr {
    background: #1a237e;
    color: #fff;
}

.ik-modal-hdr .btn-close {
    filter: invert(1);
}

/* Kategori seçici */
.ik-cat-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ik-cat-opt {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: .73rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: box-shadow .12s, transform .1s;
    white-space: nowrap;
}

.ik-cat-opt:hover,
.ik-cat-active {
    box-shadow: 0 0 0 2.5px #212529;
    transform: scale(1.06);
    z-index: 1;
    position: relative;
}

/* Kategori etiketi (alt gösterge) */
.ik-legend-item {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 600;
}
