/* Göksel Atak Eğitim Kurumları – Filament panel özelleştirmeleri */

/* ——— Giriş sayfası ——— */
.fi-simple-layout {
    background: linear-gradient(165deg, #020617 0%, #0c1929 35%, #0f2744 70%, #1e293b 100%) !important;
}

.fi-simple-main {
    background: rgba(8, 18, 32, 0.94) !important;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55) !important;
    --tw-ring-color: rgba(148, 163, 184, 0.15) !important;
}

.dark .fi-simple-main {
    background: rgba(8, 18, 32, 0.94) !important;
}

.fi-simple-header .fi-logo,
.fi-simple-header img.fi-logo,
.fi-simple-header .fi-logo img {
    height: 7rem !important;
    max-width: min(100%, 28rem);
    width: auto !important;
    object-fit: contain;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
}

.fi-simple-header-heading {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    letter-spacing: -0.02em;
    margin-top: 0.5rem;
}

.fi-simple-header-subheading {
    color: #cbd5e1 !important;
}

.fi-simple-header .fi-logo div {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
}

/* Form alanları koyu kart üzerinde */
.fi-simple-main .fi-fo-field-wrp-label,
.fi-simple-main .fi-fo-field-wrp-label span {
    color: #f1f5f9 !important;
}

.fi-simple-main .fi-input-wrp {
    background-color: rgba(255, 255, 255, 0.96) !important;
    border-color: #94a3b8 !important;
}

.fi-simple-main .fi-input {
    color: #0f172a !important;
}

.fi-simple-main .fi-fo-checkbox label {
    color: #e2e8f0 !important;
}

/* Sidebar üst marka alanı — logo ve menü çakışmasın */
.fi-sidebar.fi-sidebar-open {
    display: flex !important;
    flex-direction: column !important;
}

.fi-sidebar.fi-sidebar-open > div:first-child {
    flex-shrink: 0;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.dark .fi-sidebar.fi-sidebar-open > div:first-child {
    border-bottom-color: rgb(51 65 85);
}

.fi-sidebar.fi-sidebar-open .fi-sidebar-header {
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border-bottom: none !important;
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    overflow: hidden !important;
}

.fi-sidebar.fi-sidebar-open .fi-sidebar-header.flex.h-16 {
    height: auto !important;
    min-height: 0 !important;
}

.fi-sidebar.fi-sidebar-open .fi-sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    z-index: 0;
    margin-top: 0 !important;
    padding-top: 0.5rem !important;
}

.dark .fi-sidebar.fi-sidebar-open .fi-sidebar-header {
    background: rgb(17 24 39) !important;
    border-bottom-color: rgb(51 65 85);
}

/* Daralt butonu — logonun üstüne binmesin */
.fi-sidebar.fi-sidebar-open .fi-sidebar-header > .fi-icon-btn {
    position: absolute !important;
    top: 0.45rem;
    right: 0.35rem;
    z-index: 3;
    margin: 0 !important;
    flex-shrink: 0;
}

.fi-sidebar.fi-sidebar-open .fi-sidebar-header > div:first-child {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 0.75rem 2.35rem 0.65rem 0.75rem;
}

.fi-sidebar.fi-sidebar-open .fi-sidebar-header > div:first-child > a {
    display: block;
    width: 100%;
    text-decoration: none !important;
    pointer-events: auto;
}

.fi-sidebar.fi-sidebar-open .fi-sidebar-header .fi-logo {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
}

.fi-sidebar.fi-sidebar-open .fi-sidebar-header .fi-logo[style] {
    height: auto !important;
    min-height: 0 !important;
}

.ga-sidebar-brand {
    width: 100%;
    min-width: 0;
}

.ga-sidebar-brand__card {
    display: block;
    width: 100%;
    text-decoration: none !important;
    outline: none;
    border-radius: 0.5rem;
    transition: background 0.15s;
}

.ga-sidebar-brand__card:hover {
    background: rgba(241, 245, 249, 0.65);
}

.dark .ga-sidebar-brand__card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.ga-sidebar-brand__card:focus-visible {
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.4);
}

.ga-sidebar-brand__logo-wrap {
    width: 100%;
    padding: 0.15rem 0;
}

.ga-sidebar-brand__logo {
    display: block;
    width: 100%;
    height: auto;
    min-height: 3.25rem;
    max-height: 4.75rem;
    object-fit: contain;
    object-position: center center;
}

/* Portal etiketi: menü öğesi gibi görünmesin (sadece öğrenci/öğretmen panelleri) */
.ga-sidebar-brand__portal-caption {
    margin: 0.4rem 0 0;
    padding: 0;
    text-align: center;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.dark .ga-sidebar-brand__portal-caption {
    color: #94a3b8;
}

.fi-panel-student .ga-sidebar-brand__portal-caption {
    color: #0369a1;
}

.dark .fi-panel-student .ga-sidebar-brand__portal-caption {
    color: #7dd3fc;
}

.fi-panel-teacher .ga-sidebar-brand__portal-caption {
    color: #0f766e;
}

.dark .fi-panel-teacher .ga-sidebar-brand__portal-caption {
    color: #5eead4;
}

/* Ders programı sayfası – select kutuları her temada okunaklı */
.kdp-filter-box {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: #1e293b;
}

/* Beyaz kart içinde koyu tema metin rengi devralınmasın */
.kdp-filter-box p,
.kdp-filter-box label,
.kdp-filter-box label span,
.kdp-filter-box h3,
.kdp-filter-box li {
    color: inherit;
}

.kdp-filter-box .kdp-help-text {
    color: #475569 !important;
}

.kdp-filter-box .kdp-check-label {
    color: #0f172a !important;
    font-size: 0.875rem;
    font-weight: 500;
}

.dark .kdp-filter-box h3,
.dark .kdp-filter-box .font-semibold,
.dark .kdp-filter-box .font-medium,
.dark .kdp-filter-box .kdp-item-title {
    color: #0f172a !important;
}

.dark .kdp-filter-box .kdp-item-meta,
.dark .kdp-filter-box ul,
.dark .kdp-filter-box li {
    color: #475569 !important;
}

.dark .kdp-filter-box .text-gray-500 {
    color: #64748b !important;
}

/* WhatsApp konsolu — liste kutuları koyu temada da okunaklı kalsın */
.kdp-filter-box .wac-list-box .wac-list-item-name {
    color: #0f172a !important;
}

.kdp-filter-box .wac-list-box .wac-list-item-meta {
    color: #475569 !important;
}

.kdp-filter-box .wac-list-box .wac-empty {
    color: #64748b !important;
}

.kdp-filter-box .wac-list-box .wac-group-header {
    color: #0f172a !important;
    background: #e2e8f0 !important;
}

.kdp-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.kdp-select {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #0f172a !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    -webkit-appearance: menulist;
    appearance: menulist;
}

.kdp-select:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.kdp-select option {
    color: #0f172a !important;
    background-color: #ffffff !important;
}

/* Ders programı tablosu */
.kdp-table-wrap {
    overflow-x: auto;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.kdp-table {
    width: 100%;
    min-width: 1300px;
    border-collapse: collapse;
    font-size: 0.75rem;
    text-align: left;
}

.kdp-table thead th {
    padding: 12px 8px;
    background-color: #0f172a !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 11px;
    text-align: center;
    border: 1px solid #334155;
    white-space: nowrap;
}

.kdp-table thead th.kdp-day-col {
    width: 7rem;
    background-color: #020617 !important;
}

.kdp-table tbody td {
    border: 1px solid #e2e8f0;
    vertical-align: middle;
    background-color: #ffffff;
}

.kdp-table tbody td.kdp-day-cell {
    font-weight: 700;
    text-align: center;
    color: #334155;
    background-color: #f1f5f9 !important;
    padding: 8px 4px;
}

.kdp-table tbody td.kdp-slot-cell {
    padding: 4px;
    text-align: center;
    cursor: pointer;
    min-height: 95px;
    min-width: 96px;
    transition: background-color 0.15s;
}

.kdp-table tbody td.kdp-slot-cell:hover {
    background-color: #fffbeb !important;
}

.kdp-empty-slot {
    color: #94a3b8;
    font-size: 10px;
    border: 1px dashed #e2e8f0;
    padding: 16px 4px;
    border-radius: 6px;
}

.kdp-empty-slot:hover {
    border-color: #f59e0b;
    color: #d97706;
}

.kdp-lesson-card {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    color: #ffffff !important;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.kdp-lesson-card .kdp-lesson-name {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    color: #ffffff !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kdp-lesson-card .kdp-lesson-teacher {
    font-size: 10px;
    margin-top: 2px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kdp-lesson-card .kdp-lesson-title {
    font-size: 9px;
    margin-top: 4px;
    padding: 2px 4px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    color: #ffffff !important;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kdp-etut-card {
    padding: 8px;
    border-radius: 6px;
    background-color: #334155 !important;
    border: 1px solid #1e293b;
    color: #ffffff !important;
    text-align: center;
}

.kdp-etut-card .kdp-etut-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e2e8f0 !important;
}

.kdp-etut-card .kdp-etut-title {
    font-size: 11px;
    font-weight: 700;
    margin-top: 2px;
    color: #ffffff !important;
}

.kdp-etut-card .kdp-etut-content {
    font-size: 9px;
    font-style: italic;
    color: #cbd5e1 !important;
}

/* ——— OBS / Akbim: Öğrenci ders programı ——— */
.obs-schedule-day-tabs-track {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.obs-schedule-day-tab {
    scroll-snap-align: center;
    border: 1px solid #e2e8f0;
}

.obs-schedule-day-tab-active {
    background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%) !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.obs-schedule-day-tab-inactive {
    background-color: #f8fafc !important;
    color: #475569 !important;
}

.dark .obs-schedule-day-tab-inactive {
    background-color: rgb(30 41 59) !important;
    border-color: rgb(51 65 85) !important;
    color: #cbd5e1 !important;
}

.dark .obs-schedule-day-tab-active {
    background: linear-gradient(135deg, #1d4ed8 0%, #0369a1 100%) !important;
    border-color: #1e40af !important;
    color: #f8fafc !important;
}

.obs-schedule-row {
    background-color: #ffffff;
}

.dark .obs-schedule-row {
    background-color: rgb(15 23 42 / 0.4);
}

.obs-schedule-period {
    background-color: #f1f5f9 !important;
}

.dark .obs-schedule-period {
    background-color: rgb(30 41 59 / 0.8) !important;
}

.obs-schedule-etut {
    border-left: 3px solid #f59e0b;
    padding-left: 0.5rem;
}

.obs-schedule-empty {
    border-left: 3px solid #e2e8f0;
    padding-left: 0.5rem;
}

.dark .obs-schedule-empty {
    border-left-color: #475569;
}

/* Masaüstü: sol gün menüsü */
.obs-schedule-sidebar .fi-section-content-ctn {
    padding: 0.5rem !important;
}

.obs-schedule-sidebar-day {
    border: 1px solid transparent;
}

.obs-schedule-sidebar-day-inactive {
    background-color: transparent;
    color: #475569;
}

.obs-schedule-sidebar-day-inactive:hover {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
}

.dark .obs-schedule-sidebar-day-inactive:hover {
    background-color: rgb(30 41 59 / 0.6);
    border-color: rgb(51 65 85);
}

.obs-schedule-sidebar-day-active {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%) !important;
    border-color: #93c5fd !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.dark .obs-schedule-sidebar-day-active {
    background: linear-gradient(135deg, rgb(30 58 138 / 0.35) 0%, rgb(15 23 42 / 0.8) 100%) !important;
    border-color: rgb(59 130 246 / 0.5) !important;
}

.obs-schedule-day-panel {
    border-color: #e2e8f0;
}

.dark .obs-schedule-day-panel {
    border-color: rgb(51 65 85);
}

.obs-schedule-row-desktop:hover {
    background-color: #f8fafc;
}

.dark .obs-schedule-row-desktop:hover {
    background-color: rgb(30 41 59 / 0.35);
}

@media (min-width: 768px) {
    .obs-schedule-day-tabs {
        display: none;
    }
}

/* Öğrenci ders programı — masaüstü */
.obs-schedule-desktop {
    display: none;
}

@media (min-width: 768px) {
    .obs-schedule-desktop {
        display: block;
    }
}

.obs-student-schedule-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.dark .obs-student-schedule-toolbar {
    border-color: rgb(51 65 85);
    background: rgb(15 23 42 / 0.5);
}

.obs-student-schedule-toolbar-label {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #2563eb;
}

.obs-student-schedule-toolbar-class {
    margin: 0.15rem 0 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
}

.dark .obs-student-schedule-toolbar-class {
    color: #f8fafc;
}

.obs-student-schedule-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
}

.obs-student-schedule-period label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.obs-student-schedule-period-select {
    min-width: 14rem;
    max-width: 20rem;
}

.obs-student-schedule-summary-pill {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.55rem 0.85rem;
    border-radius: 0.65rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.75rem;
    color: #64748b;
}

.obs-student-schedule-summary-pill strong {
    font-size: 0.9rem;
    color: #0f172a;
}

.obs-student-schedule-wrap {
    margin-top: 0;
}

.obs-student-schedule-table {
    min-width: 1100px;
}

.obs-student-schedule-hour-th {
    min-width: 5.5rem;
    white-space: nowrap;
    vertical-align: middle;
}

.obs-student-schedule-hour-num {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.obs-student-schedule-hour-time {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    font-weight: 500;
    opacity: 0.85;
}

.obs-student-schedule-day-cell {
    vertical-align: middle !important;
}

.obs-student-schedule-day-btn {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    color: #334155;
    cursor: pointer;
    padding: 0;
    text-align: center;
}

.obs-student-schedule-day-btn--active {
    color: #1d4ed8;
}

.obs-student-schedule-day-meta {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    color: #64748b;
    text-align: center;
}

.obs-student-schedule-day-row--active .kdp-day-cell {
    background-color: #dbeafe !important;
}

.obs-student-schedule-day-row--active .obs-student-schedule-slot {
    background-color: #f8fafc;
}

.obs-student-schedule-slot {
    cursor: default;
    min-width: 6.5rem;
    min-height: 72px;
}

.obs-student-schedule-slot:hover {
    background-color: inherit !important;
}

.obs-student-lesson-card {
    padding: 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: 1px solid #1e40af;
    color: #fff;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.obs-student-lesson-name {
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.obs-student-lesson-teacher {
    margin-top: 3px;
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.obs-student-empty-slot {
    color: #cbd5e1;
    font-size: 11px;
    padding: 1.25rem 4px;
    text-align: center;
}

.sp-schedule-page .fi-page {
    max-width: none;
}

@media (min-width: 768px) {
    .sp-schedule-page .obs-schedule {
        max-width: 100%;
    }
}

.obs-schedule-info-banner .fi-section-content-ctn {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Öğrenci portalı kartları — taşma ve kontrast */
.obs-portal-stat-card .fi-section-content-ctn {
    padding: 0 !important;
}

.fi-main-ctn .fi-section.obs-schedule-header {
    border-color: #e2e8f0;
}

.dark .fi-main-ctn .fi-section.obs-schedule-header {
    border-color: rgb(51 65 85);
}

/* ——— Global mobil OBS: tablolar ve widgetlar ——— */
.obs-responsive-table .fi-ta-content {
    border-radius: 0.75rem;
}

.obs-action-card {
    text-decoration: none !important;
}

.obs-widget-section .fi-section-header {
    padding-bottom: 0.5rem;
}

.obs-teacher-week-matrix th,
.obs-teacher-week-matrix td {
    border-color: #e2e8f0;
}

.dark .obs-teacher-week-matrix th,
.dark .obs-teacher-week-matrix td {
    border-color: rgb(51 65 85);
}

@media (max-width: 1023px) {
    .obs-teacher-week-matrix {
        display: none;
    }
}

/* Filament tablo mobil kart görünümü (yalnızca kart ızgarası; tabloyu tamamen gizleme kaldırıldı) */
@media (max-width: 767px) {
    .obs-responsive-table .fi-ta-content-grid .fi-ta-record,
    .fi-panel-admin .fi-ta-content-grid .fi-ta-record {
        border-color: #e2e8f0 !important;
    }

    .dark .obs-responsive-table .fi-ta-content-grid .fi-ta-record,
    .dark .fi-panel-admin .fi-ta-content-grid .fi-ta-record {
        border-color: rgb(51 65 85) !important;
        background-color: rgb(15 23 42 / 0.5) !important;
    }

    .fi-panel-admin .fi-ta-header-toolbar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .fi-panel-admin .adb-page .adb-grid-top,
    .fi-panel-admin .adb-page .adb-grid-bottom {
        grid-template-columns: 1fr;
    }

    .fi-panel-admin .kdp-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Taşma koruması */
.obs-schedule,
.obs-widget-section,
.obs-action-card {
    max-width: 100%;
    overflow-wrap: break-word;
}

.fi-wi-widget .truncate,
.obs-schedule .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
