/* ==========================================================================
   Mehtap ÖGEK - Modern SaaS Design System & UI Kit
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Ana Renk Paleti (Modern Slate & Indigo) */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-glow: rgba(79, 70, 229, 0.22);
    
    --secondary: #64748b;
    --secondary-hover: #475569;
    --secondary-light: #f1f5f9;
    
    --success: #10b981;
    --success-hover: #059669;
    --success-light: #ecfdf5;
    --success-text: #065f46;
    
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --danger-light: #fef2f2;
    --danger-text: #991b1b;
    
    --warning: #f59e0b;
    --warning-hover: #d97706;
    --warning-light: #fffbeb;
    --warning-text: #92400e;

    /* Arka Plan & Yüzey Renkleri */
    --bg-main: #f4f7fc;
    --surface-card: #ffffff;
    --surface-muted: #f6f8fc;
    
    /* Kenarlık & Çizgiler */
    --border-color: #e3e9f2;
    --border-subtle: #edf1f7;
    --border-focus: #818cf8;

    /* Tipografi Renkleri */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;

    /* Sidebar (Lüks Koyu Tema) */
    --sidebar-bg: #090d16;
    --sidebar-surface: #131b2e;
    --sidebar-border: rgba(255, 255, 255, 0.07);
    --sidebar-hover: rgba(255, 255, 255, 0.05);
    --sidebar-active: #4f46e5;
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #ffffff;

    /* Gölgeler (Elevation) */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 3px 10px rgba(15, 23, 42, 0.045);
    --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.075);
    --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.1);
    --shadow-xl: 0 24px 52px rgba(15, 23, 42, 0.18);
    --shadow-glow: 0 6px 24px -2px var(--primary-glow);

    /* Yuvarlatmalar & Geçişler */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    --transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Temel Sıfırlamalar & Özel Scrollbar
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background:
        radial-gradient(ellipse at 92% 0%, rgba(99, 102, 241, 0.045), transparent 34rem),
        var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    min-width: 320px;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

/* İnce Modern Kaydırma Çubuğu */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.screen { 
    min-height: 100vh; 
}

/* ==========================================================================
   Giriş Ekranı (Login Screen) - Glassmorphism
   ========================================================================== */

#login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem;
    background: radial-gradient(circle at 80% 20%, #1e1b4b, #090d16 70%);
    position: relative;
    overflow: hidden;
}

#login-screen::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 70%);
    top: -120px;
    right: -120px;
    border-radius: 50%;
}

.login-container {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.75rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45);
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 2;
    animation: modalSlideUp 0.3s ease-out;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-main);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

/* ==========================================================================
   Formlar & Giriş Elemanları (Inputs, Selects, Textareas)
   ========================================================================== */

.form-group {
    margin-bottom: 1.15rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.84rem;
    color: #334155;
    letter-spacing: -0.01em;
}

.form-group input,
.form-group select,
.form-group textarea,
.search-filter-group input,
.search-filter-group select {
    width: 100%;
    padding: 0.68rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-main);
    background-color: #ffffff;
    transition: var(--transition);
    outline: none;
    font-weight: 500;
    min-height: 42px;
}

.form-group input::placeholder,
.search-filter-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-subtle);
    font-weight: 400;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.search-filter-group input:focus,
.search-filter-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background-color: #ffffff;
}

.error-message {
    color: var(--danger-text);
    background: var(--danger-light);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1.25rem;
    font-size: 0.86rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid #fecaca;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* ==========================================================================
   Modern Butonlar (Buttons)
   ========================================================================== */

.btn, button {
    padding: 0.68rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    letter-spacing: -0.01em;
    user-select: none;
    white-space: nowrap;
}

.btn:active, button:active {
    transform: scale(0.98);
}

#login-btn,
.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

#login-btn:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #ffffff;
    color: #475569;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    background-color: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.36rem 0.65rem !important;
    font-size: 0.76rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    height: 30px !important;
}

.btn-edit {
    background-color: var(--warning-light);
    color: var(--warning-text);
    border: 1px solid #fde68a;
}
.btn-edit:hover {
    background-color: #fde68a;
    color: #78350f;
}

.btn-status {
    background-color: var(--secondary-light);
    color: #334155;
    border: 1px solid var(--border-color);
}
.btn-status:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.btn-delete {
    background-color: var(--danger-light);
    color: var(--danger-text);
    border: 1px solid #fecaca;
}
.btn-delete:hover {
    background-color: var(--danger);
    color: #ffffff;
    border-color: var(--danger);
}

.btn-delete-payment {
    background-color: var(--danger-light);
    color: var(--danger-text);
    border: 1px solid #fecaca;
    padding: 0.22rem 0.5rem;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.btn-delete-payment:hover {
    background-color: var(--danger);
    color: #ffffff;
}

/* ==========================================================================
   Ana Düzen (Layout) & Sidebar
   ========================================================================== */

#app-screen {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 272px;
    min-width: 272px;
    height: 100vh;
    background:
        radial-gradient(ellipse at 10% 0%, rgba(79, 70, 229, 0.12), transparent 34%),
        linear-gradient(180deg, #101827 0%, #0b1120 100%);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    padding: 1.35rem 0.9rem 1.1rem;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 50;
    user-select: none;
    box-shadow: 8px 0 28px rgba(15, 23, 42, 0.08);
}

/* Üst Logo & Başlık Alanı */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.25rem 0.45rem 1.15rem;
    border-bottom: 1px solid var(--sidebar-border);
    margin-bottom: 1rem;
    overflow: hidden;
}

.brand-avatar {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    max-height: 46px !important;
    border-radius: 14px;
    background: #ffffff;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden !important;
    flex-shrink: 0;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3);
}

.brand-avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block;
}

.avatar-fallback {
    color: #4f46e5;
    font-weight: 800;
    font-size: 1.2rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-text h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.015em;
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-sub {
    font-size: 0.68rem;
    color: #818cf8;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sidebar-section-label {
    font-size: 0.66rem;
    font-weight: 800;
    color: #7c8aa3;
    letter-spacing: 0.08em;
    padding: 0 0.75rem 0.65rem;
}

#nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 0.15rem 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

#nav-menu li {
    margin: 0;
    padding: 0;
}

#nav-menu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    color: #a7b2c5;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 11px;
    transition: var(--transition);
    position: relative;
}

.nav-icon {
    width: 19px !important;
    min-width: 19px !important;
    height: 19px !important;
    max-height: 19px !important;
    stroke-width: 2.1;
    color: #64748b;
    transition: var(--transition);
    flex-shrink: 0;
}

#nav-menu a:hover {
    color: #ffffff;
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.08);
}

#nav-menu a:hover .nav-icon {
    color: #a5b4fc;
    transform: translateX(2px);
}

#nav-menu a.active {
    color: #ffffff;
    background: linear-gradient(110deg, rgba(79, 70, 229, 0.34), rgba(67, 56, 202, 0.18));
    border-color: rgba(129, 140, 248, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#nav-menu a.active::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: #818cf8;
    box-shadow: 0 0 12px rgba(129, 140, 248, 0.65);
}

#nav-menu a.active .nav-icon {
    color: #a5b4fc;
}

.sidebar-footer {
    padding-top: 0.85rem;
    border-top: 1px solid var(--sidebar-border);
    margin-top: auto;
}

.logout-btn {
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.68rem 0.9rem;
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 11px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.logout-btn .nav-icon {
    color: #f87171;
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    max-height: 18px !important;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #ffffff;
    border-color: rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.logout-btn:hover .nav-icon {
    color: #ffffff;
}

/* ==========================================================================
   İçerik Alanı & Header
   ========================================================================== */

.content {
    flex: 1;
    padding: 2rem clamp(1.25rem, 3vw, 2.75rem);
    overflow-y: auto;
    max-width: 1760px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.65rem;
    padding: 0.35rem 0 1.15rem;
    border-bottom: 1px solid var(--border-color);
}

header h2 {
    font-size: clamp(1.45rem, 2vw, 1.8rem);
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.82);
    padding: 0.45rem 0.9rem;
    border-radius: 12px;
    box-shadow: var(--shadow-xs);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.user-info span {
    font-weight: 600;
    font-size: 0.86rem;
    color: #334155;
}

.badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    margin-left: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   Personel Günlük Özet Çubuğu
   ========================================================================== */

.staff-daily-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 1.25rem;
    transition: var(--transition);
}

.staff-daily-bar:hover {
    box-shadow: var(--shadow-md);
}

.staff-stat-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
}

.staff-stat-label {
    color: var(--text-muted);
    font-weight: 600;
}

.staff-stat-sub {
    color: var(--text-subtle);
    font-size: 0.8rem;
    font-weight: 500;
}

.staff-stat-divider {
    width: 1px;
    height: 28px;
    background-color: var(--border-color);
}

/* ==========================================================================
   Aksiyon Çubuğu & Arama / Filtreler
   ========================================================================== */

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-filter-group {
    display: flex;
    gap: 0.65rem;
    flex-grow: 1;
    flex-wrap: wrap;
    align-items: center;
}

.search-filter-group input {
    min-width: 260px;
    flex: 1;
}

.search-filter-group select {
    width: auto;
    min-width: 150px;
    cursor: pointer;
}

/* ==========================================================================
   Tablolar & Dikey / Yatay Hizalamalar
   ========================================================================== */

.table-container {
    background: var(--surface-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    padding-bottom: 0;
}

.table-container:hover {
    box-shadow: var(--shadow-md);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: 0.88rem;
}

.data-table th,
.data-table td {
    padding: 0.78rem 0.95rem !important;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle !important;
    white-space: nowrap !important;
}

.data-table th {
    background-color: #f5f7fb;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 5;
}

.data-table tbody tr {
    transition: background-color 0.15s ease;
}

.data-table tbody tr:hover {
    background-color: #f6f8ff;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.text-center { 
    text-align: center; 
}

/* İşlem Butonları Hücresini Düzenli Yan Yana Hizala */
td.action-buttons,
.action-buttons {
    display: table-cell !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

.action-buttons .btn,
.action-buttons a.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    margin-right: 0.35rem !important;
    padding: 0.32rem 0.65rem !important;
    font-size: 0.76rem !important;
    line-height: 1.2 !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    height: 30px !important;
}

.action-buttons .btn:last-child,
.action-buttons a.btn:last-child {
    margin-right: 0 !important;
}

/* Evrak Takip Butonu */
.btn-student-docs {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.3rem !important;
    height: 30px !important;
    padding: 0 0.65rem !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

/* ==========================================================================
   Rozetler (Badges)
   ========================================================================== */

.badge-status {
    padding: 0.28rem 0.68rem;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.01em;
    white-space: nowrap !important;
}

.badge-active {
    background-color: var(--success-light);
    color: var(--success-text);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-passive {
    background-color: var(--danger-light);
    color: var(--danger-text);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-course {
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid var(--border-color);
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}

/* ==========================================================================
   Dashboard Kartları & İstatistikler
   ========================================================================== */

.dashboard-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 0.9rem 1.25rem;
}

.dashboard-filter-bar .filter-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.dashboard-filter-bar label {
    font-weight: 700;
    font-size: 0.86rem;
    color: #334155;
    white-space: nowrap;
}

.dashboard-filter-bar select,
.dashboard-filter-bar input[type="date"] {
    padding: 0.52rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.88rem;
    outline: none;
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
}

.dashboard-filter-bar select:focus,
.dashboard-filter-bar input[type="date"]:focus {
    border-color: var(--primary);
    background-color: #ffffff;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: linear-gradient(145deg, #ffffff 0%, #fbfcff 100%);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #d7def0;
}

.stat-card h3 {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.55rem;
    font-weight: 700;
}

.stat-card .value {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1.1rem;
    margin-top: 1.5rem;
}

.dashboard-panel {
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
    background-color: #fbfcfe;
}

.panel-header h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

/* Denetim Logu Rozetleri */
.log-badge {
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-block;
}
.log-payment { background: var(--success-light); color: var(--success-text); }
.log-delete { background: var(--danger-light); color: var(--danger-text); }
.log-student { background: #dbeafe; color: #1e40af; }

/* ==========================================================================
   Modallar (Açılır Pencereler / Dialogs)
   ========================================================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.2s forwards;
    padding: 1.5rem;
}

@keyframes fadeIn { to { opacity: 1; } }

.modal-content {
    background: #ffffff;
    padding: 2rem 2.1rem;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(226, 232, 240, 0.85);
    transform: translateY(20px) scale(0.98);
    animation: modalSlideUp 0.22s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    to { transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.modal-header h3 {
    font-size: 1.35rem;
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.close-btn {
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-subtle);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-btn:hover {
    background-color: #f1f5f9;
    color: var(--text-main);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.full-width {
    grid-column: span 2;
    margin-top: 0.25rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.75rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.payment-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.payment-history-section {
    border-left: 1px solid var(--border-color);
    padding-left: 2.5rem;
}

.installment-box {
    background: #f8fafc;
    border: 1px dashed #c7d2fe;
    border-radius: var(--radius-sm);
    padding: 0.9rem;
    margin: 0.4rem 0;
}

.badge-exam-pass { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; font-size: 0.74rem; padding: 2px 6px; border-radius: 4px; font-weight: 700; display: inline-block; }
.badge-exam-fail { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; font-size: 0.74rem; padding: 2px 6px; border-radius: 4px; font-weight: 700; display: inline-block; }
.badge-exam-chance { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; font-size: 0.74rem; padding: 2px 6px; border-radius: 4px; font-weight: 700; display: inline-block; }
.badge-fee-paid { color: #15803d; font-size: 0.73rem; font-weight: 600; display: inline-block; }
.badge-fee-pending { color: #d97706; font-size: 0.73rem; font-weight: 600; display: inline-block; }

/* ==========================================================================
   Eğitmen & Hakediş Modülü Stilleri (Ders & Günlük Giderler)
   ========================================================================== */

/* Ders Satırları */
.inst-mod-lesson-row {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1.2fr auto !important;
    gap: 0.5rem !important;
    align-items: center !important;
    background: #ffffff !important;
    padding: 0.5rem 0.65rem !important;
    border-radius: 8px !important;
    border: 1px solid #c7d2fe !important;
    transition: var(--transition) !important;
}

.inst-mod-lesson-row:hover {
    border-color: #818cf8 !important;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.08) !important;
}

/* Günlük Yemek / Yol Gider Satırları (Kilit ve Buton Hizalaması) */
.inst-mod-daily-row {
    display: grid !important;
    grid-template-columns: 1.3fr 2.2fr 1.2fr 36px !important;
    gap: 0.55rem !important;
    align-items: center !important;
    background: #ffffff !important;
    padding: 0.5rem 0.65rem !important;
    border-radius: 8px !important;
    border: 1px solid #fde68a !important;
    transition: var(--transition) !important;
}

.inst-mod-daily-row:hover {
    border-color: #f59e0b !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.1) !important;
}

.inst-mod-daily-row input,
.inst-mod-lesson-row input,
.inst-mod-lesson-row select {
    width: 100% !important;
    padding: 0.5rem 0.65rem !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
    border: 1px solid var(--border-color) !important;
    background-color: #ffffff !important;
    outline: none !important;
    font-weight: 500 !important;
}

.inst-mod-daily-row input:focus,
.inst-mod-lesson-row input:focus,
.inst-mod-lesson-row select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px var(--primary-glow) !important;
}

.inst-mod-daily-row input:disabled,
.inst-mod-lesson-row input:disabled,
.inst-mod-lesson-row select:disabled {
    background-color: #f8fafc !important;
    color: #475569 !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed !important;
}

.inst-mod-daily-row span[title],
.inst-mod-lesson-row span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 1.05rem !important;
    user-select: none !important;
}

.btn-rm-daily,
.btn-rm-lesson {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
}

/* Hızlı Günlük Gider Modalı Özel Stili */
#daily-expense-modal .modal-content {
    max-width: 460px !important;
    padding: 1.85rem 2rem !important;
}

#daily-exp-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.9rem !important;
}

#daily-exp-form .form-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
}

/* ==========================================================================
   Dinamik Sayfalama Çubuğu (Pagination)
   ========================================================================== */

.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 0.85rem 1.25rem;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-xs);
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    font-size: 0.84rem;
    color: var(--text-muted);
    font-weight: 600;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pagination-per-page {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.pagination-per-page select {
    padding: 0.28rem 0.55rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    outline: none;
    background: #f8fafc;
    color: var(--text-main);
}

.pagination-page-indicator {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-main);
    padding: 0 0.35rem;
}

.pagination-controls button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
}

/* ==========================================================================
   Yönetici Mesaj / Görev Baloncuğu Widget'ı
   ========================================================================== */

#admin-task-widget {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 999 !important;
}

.task-fab-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px -4px rgba(79, 70, 229, 0.55) !important;
    border: none !important;
    cursor: pointer !important;
    position: relative !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.task-fab-btn:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 12px 28px -4px rgba(79, 70, 229, 0.7) !important;
}

.task-fab-btn span:first-child {
    display: none !important;
}

.task-fab-btn::after {
    content: '💬';
    font-size: 1.35rem;
    line-height: 1;
}

.task-fab-badge {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    min-width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #ffffff !important;
}

/* ==========================================================================
   Duyarlı Tasarım (Responsive Breakpoints)
   ========================================================================== */

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .content {
        padding: 1.75rem 1.5rem;
    }
    .dashboard-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    #app-screen {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;
        position: static;
        padding: 0.85rem 1rem 0.7rem;
        border-right: none;
        border-bottom: 1px solid var(--sidebar-border);
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
    }
    .sidebar-brand {
        padding: 0 0.25rem 0.85rem;
        margin-bottom: 0.75rem;
    }
    .sidebar-section-label {
        display: none;
    }
    #nav-menu {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.15rem 0.1rem 0.45rem;
        gap: 0.4rem;
        flex: 0 0 auto;
        scrollbar-width: none;
    }
    #nav-menu::-webkit-scrollbar {
        display: none;
    }
    #nav-menu li {
        flex: 0 0 auto;
    }
    #nav-menu a {
        white-space: nowrap;
        padding: 0.55rem 0.8rem;
        font-size: 0.84rem;
        min-height: 40px;
        border-radius: 10px;
    }
    #nav-menu a.active::before {
        left: 10px;
        right: 10px;
        top: auto;
        bottom: -1px;
        width: auto;
        height: 3px;
        border-radius: 4px 4px 0 0;
    }
    .sidebar-footer {
        padding-top: 0.55rem;
        margin-top: 0.5rem;
        display: flex;
        justify-content: flex-end;
    }
    .logout-btn {
        width: auto;
        padding: 0.55rem 0.85rem;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
    }
    header h2 {
        font-size: clamp(1.35rem, 5vw, 1.7rem);
    }
    .user-info {
        max-width: 100%;
        flex-wrap: wrap;
        gap: 0.35rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .full-width {
        grid-column: span 1;
    }
    .payment-layout {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .payment-history-section {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 1.75rem;
    }
    .search-filter-group input {
        min-width: 100%;
    }
    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .dashboard-filter-bar {
        padding: 1rem;
        gap: 0.85rem;
    }
    .dashboard-filter-bar select,
    .dashboard-filter-bar input[type="date"] {
        flex: 1 1 160px;
    }
    .pagination-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .pagination-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    .modal {
        padding: 0.75rem;
    }
    .modal-content {
        max-height: calc(100vh - 1.5rem);
        padding: 1.35rem 1.15rem;
        border-radius: 14px;
    }
    .modal-footer {
        flex-wrap: wrap;
        gap: 0.6rem;
    }
    .modal-footer > button,
    .modal-footer > .btn {
        flex: 1 1 120px;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 1rem 0.75rem;
    }
    .stat-card {
        padding: 1rem;
    }
    .stat-card .value {
        font-size: clamp(1.3rem, 6vw, 1.7rem);
    }
    .modal-footer {
        flex-direction: column-reverse;
    }
    .modal-footer > button,
    .modal-footer > .btn {
        width: 100%;
    }
}

/* Kursiyerler Tablosunun Ekrana Tam Sığması ve Butonların Düzenlenmesi */
#student-table-body td.action-buttons,
.data-table td.action-buttons {
    white-space: normal !important;
    min-width: 250px !important;
    max-width: 285px !important;
    padding: 0.5rem 0.6rem !important;
}

/* Butonları 2 şık satıra bölen ve taşmayı önleyen kompakt yapı */
.action-buttons .btn,
.action-buttons a.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 2px !important;
    padding: 0.25rem 0.55rem !important;
    font-size: 0.74rem !important;
    line-height: 1.2 !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    height: 27px !important;
}

/* Tablo hücrelerinin gereksiz genişlemesini önleme */
#section-students .data-table th,
#section-students .data-table td {
    padding: 0.65rem 0.75rem !important;
}
section-instructors td.inst-col-lessons,
#section-instructors td.inst-col-daily {
    white-space: normal !important;
    max-width: 220px !important;
    line-height: 1.3 !important;
}

#section-instructors td.action-buttons {
    white-space: normal !important;
    width: 170px !important;
    max-width: 180px !important;
}

#section-instructors td.action-buttons .btn {
    margin: 2px !important;
    padding: 0.2rem 0.45rem !important;
    font-size: 0.72rem !important;
    height: 25px !important;
}
/* ==========================================================================
   Kompakt 3'lü Dashboard Grafik Izgarası (Yer Tasarruflu)
   ========================================================================== */

.dashboard-charts-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    min-width: 0;
    margin: 0.5rem 0 1rem;
}

.chart-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.chart-header {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border-color);
}

.chart-header h4 {
    min-width: 0;
    margin: 0;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
}

.chart-header .badge {
    flex: 0 0 auto;
    max-width: 48%;
    margin-left: 0;
    padding: 0.2rem 0.45rem;
    font-size: 0.68rem;
    white-space: normal;
    text-align: center;
}

.chart-body {
    position: relative;
    width: 100%;
    height: clamp(210px, 22vw, 270px) !important;
}

#section-dashboard > .dashboard-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

#section-dashboard .stat-card {
    min-width: 0;
    min-height: 132px;
    padding: 1.2rem;
}

#section-dashboard .stat-card h3 {
    line-height: 1.4;
}

#section-dashboard .stat-card .value {
    font-size: clamp(1.35rem, 1.8vw, 1.8rem);
    overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
    .dashboard-charts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    #section-dashboard > .dashboard-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .dashboard-charts-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .chart-card {
        padding: 0.85rem;
    }

    .chart-body {
        height: 230px !important;
    }

    #section-dashboard .stat-card {
        min-height: 118px;
        padding: 0.9rem;
    }

    #section-dashboard .stat-card .value {
        font-size: clamp(1.1rem, 5vw, 1.4rem);
    }
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.38);
    outline-offset: 2px;
}

button:disabled,
.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dashboard-panel,
.chart-card,
.table-container {
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-panel:hover,
.chart-card:hover {
    border-color: #d5def0;
    box-shadow: var(--shadow-md);
}

.pagination-bar {
    border-color: var(--border-color);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

@media (max-width: 480px) {
    .dashboard-filter-bar .filter-item {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-filter-bar label {
        white-space: normal;
    }

    .chart-header {
        flex-wrap: wrap;
    }

    .chart-header .badge {
        max-width: 100%;
    }

    .modal-content {
        padding: 1.25rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}





/* Yeni Adres Taşınma Duyurusu Baloncuğu (Modal & Yüzen Rozet) */
.move-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(11, 17, 32, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.move-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.move-modal-card {
    background: #ffffff;
    color: #0f172a;
    width: 100%;
    max-width: 480px;
    border-radius: 22px;
    padding: 2rem 1.75rem 1.75rem;
    position: relative;
    box-shadow: 0 28px 65px -12px rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(99, 102, 241, 0.25);
    text-align: center;
    transform: translateY(22px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.move-modal-backdrop.active .move-modal-card {
    transform: translateY(0) scale(1);
}

.move-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.move-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.move-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.move-icon-circle {
    width: 62px;
    height: 62px;
    margin: 0 auto 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.16);
}

.move-address-box {
    background: #f8fafc;
    border: 1.5px dashed #a5b4fc;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin: 1.15rem 0 1.4rem;
    font-size: 0.96rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.55;
}

.move-modal-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.move-btn-primary {
    flex: 1 1 180px;
    background: linear-gradient(135deg, #4f46e5, #3730a3);
    color: #ffffff;
    border: none;
    padding: 0.85rem 1rem;
    border-radius: 11px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28);
    transition: 0.2s;
}

.move-btn-primary:hover {
    transform: translateY(-2px);
}

.move-btn-secondary {
    flex: 1 1 120px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    padding: 0.85rem 1rem;
    border-radius: 11px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}

.move-btn-secondary:hover {
    background: #e2e8f0;
}

/* Sol Alt Köşe Yüzen Mini Hatırlatıcı Baloncuk */
.move-floating-pill {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 998;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: #ffffff;
    border: 1px solid rgba(165, 180, 252, 0.35);
    padding: 0.72rem 1.1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
    transition: transform 0.2s ease;
}

.move-floating-pill:hover {
    transform: translateY(-3px);
}

@media (max-width: 600px) {
    .move-floating-pill {
        left: 0.75rem;
        bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
        font-size: 0.74rem;
        padding: 0.65rem 0.9rem;
        max-width: calc(100vw - 75px);
    }
}

/* Yönetim paneli görsel düzenlemeleri */
#login-screen {
    background:
        radial-gradient(ellipse at 82% 18%, rgba(99, 102, 241, 0.32), transparent 28rem),
        radial-gradient(ellipse at 12% 90%, rgba(14, 165, 233, 0.12), transparent 26rem),
        linear-gradient(135deg, #090d16 0%, #111827 52%, #1e1b4b 100%);
}

#login-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 44px 44px;
}

.login-container {
    overflow: hidden;
    padding: 2.5rem 2.4rem;
    border-radius: 22px;
    border-color: rgba(255,255,255,0.78);
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.48), 0 0 0 1px rgba(255,255,255,0.08);
}

.login-container::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #4f46e5, #8b5cf6, #38bdf8);
}

.login-container h2 {
    margin-bottom: 1.65rem;
    letter-spacing: -0.04em;
}

.login-container .form-group {
    margin-bottom: 1rem;
}

.login-container .form-group input {
    min-height: 48px;
    border-radius: 12px;
    background: #f8fafc;
}

.login-container .form-group input:focus {
    background: #ffffff;
}

#login-btn {
    width: 100%;
    min-height: 50px;
    margin-top: 0.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
}

.content > header {
    border-bottom-color: rgba(203, 213, 225, 0.8);
}

.user-info {
    border-radius: 999px;
    padding: 0.5rem 1rem;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.055);
}

.dashboard-filter-bar {
    border-radius: 16px;
    border-color: #e1e7f2;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055);
}

#section-dashboard .stat-card {
    border-radius: 16px;
    box-shadow: 0 7px 20px rgba(15, 23, 42, 0.045);
}

#section-dashboard .stat-card::after {
    content: "";
    position: absolute;
    top: -62px;
    right: -62px;
    width: 124px;
    height: 124px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.045);
    pointer-events: none;
}

#section-dashboard .stat-card h3,
#section-dashboard .stat-card .value,
#section-dashboard .stat-card small {
    position: relative;
    z-index: 1;
}

.dashboard-panel,
.chart-card {
    border-radius: 16px;
}

.panel-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.table-container {
    border-radius: 14px;
}

@media (max-width: 480px) {
    .login-container {
        padding: 2.1rem 1.35rem;
        border-radius: 18px;
    }

    .login-container h2 {
        margin-bottom: 1.35rem;
    }
}

/* Sekmeler arası ortak görsel hiyerarşi */
#app-screen {
    background:
        radial-gradient(ellipse at 92% 0%, rgba(99, 102, 241, 0.07), transparent 34rem),
        var(--bg-main);
}

.content > header {
    align-items: flex-end;
    padding: 0.35rem 0 1.1rem;
    margin-bottom: 1.5rem;
}

.content > header h2 {
    position: relative;
    padding-bottom: 0.35rem;
}

.content > header h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), #a78bfa);
}

.sidebar {
    box-shadow: 12px 0 34px rgba(15, 23, 42, 0.12);
}

.brand-avatar {
    border: 1px solid rgba(255,255,255,0.7);
}

#nav-menu a {
    min-height: 46px;
    letter-spacing: -0.01em;
}

.app-section > .dashboard-cards,
.app-section > .dashboard-filter-bar,
.app-section > .action-bar,
.app-section > .table-container {
    margin-bottom: 1.15rem;
}

.dashboard-filter-bar {
    gap: 0.85rem 1rem;
}

.dashboard-filter-bar .filter-item {
    min-width: 0;
}

.dashboard-filter-bar select,
.dashboard-filter-bar input[type="date"],
.search-filter-group input,
.search-filter-group select {
    min-height: 42px;
    border-radius: 11px;
}

.stat-card {
    border-radius: 16px;
    box-shadow: 0 7px 20px rgba(15, 23, 42, 0.05);
}

.app-section .stat-card::after {
    content: "";
    position: absolute;
    top: -66px;
    right: -66px;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.04);
    pointer-events: none;
}

.app-section .stat-card h3,
.app-section .stat-card .value,
.app-section .stat-card small {
    position: relative;
    z-index: 1;
}

.table-container {
    max-width: 100%;
    overscroll-behavior-x: contain;
    scrollbar-color: #94a3b8 #eef2f7;
    scrollbar-width: thin;
}

.table-container::-webkit-scrollbar {
    height: 9px;
}

.table-container::-webkit-scrollbar-track {
    background: #eef2f7;
    border-radius: 999px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #aab6c8;
    border: 2px solid #eef2f7;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #718198;
}

.data-table tbody tr:hover td {
    background-color: #f7f8ff;
}

.dashboard-panel,
.chart-card,
.table-container {
    border-radius: 16px;
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.045);
}

.panel-header {
    padding: 1rem 1.2rem;
}

.panel-header h4 {
    line-height: 1.4;
}

.content .btn,
.content button {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.content .btn:hover:not(:disabled),
.content button:hover:not(:disabled) {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .content > header {
        align-items: flex-start;
    }

    .dashboard-filter-bar .filter-item {
        flex: 1 1 100%;
    }

    .dashboard-filter-bar .filter-item > select,
    .dashboard-filter-bar .filter-item > input {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .content .btn,
    .content button {
        transition: none;
    }
}

@media (min-width: 1280px) {
    .app-section .table-container {
        overflow-x: hidden;
    }

    .app-section .data-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
    }

    .app-section .data-table th,
    .app-section .data-table td {
        padding: 0.55rem 0.5rem !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: normal;
        line-height: 1.35;
    }

    #student-table-body td.action-buttons,
    .app-section .data-table td.action-buttons,
    #section-instructors td.action-buttons {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        white-space: normal !important;
    }

    #section-students .data-table th,
    #section-students .data-table td {
        padding: 0.5rem 0.4rem !important;
    }

    #section-students .data-table th:nth-child(1),
    #section-students .data-table td:nth-child(1) { width: 18% !important; }
    #section-students .data-table th:nth-child(2),
    #section-students .data-table td:nth-child(2) { width: 12% !important; }
    #section-students .data-table th:nth-child(3),
    #section-students .data-table td:nth-child(3) { width: 9% !important; }
    #section-students .data-table th:nth-child(4),
    #section-students .data-table td:nth-child(4) { width: 9% !important; }
    #section-students .data-table th:nth-child(5),
    #section-students .data-table td:nth-child(5) { width: 9% !important; }
    #section-students .data-table th:nth-child(6),
    #section-students .data-table td:nth-child(6) { width: 7% !important; }
    #section-students .data-table th:nth-child(7),
    #section-students .data-table td:nth-child(7) { width: 14% !important; }
    #section-students .data-table th:nth-child(8),
    #section-students .data-table td:nth-child(8) { width: 7.5% !important; }
    #section-students .data-table th:nth-child(9),
    #section-students .data-table td:nth-child(9) { width: 14.5% !important; }

    .app-section .action-buttons .btn,
    .app-section .action-buttons a.btn {
        height: auto !important;
        min-height: 24px;
        max-width: 100%;
        padding: 0.22rem 0.35rem !important;
        font-size: 0.68rem !important;
        line-height: 1.2 !important;
        white-space: normal !important;
    }
}

.student-actions-disclosure {
    display: inline-block;
    text-align: left;
}

.student-actions-disclosure > summary {
    display: inline-flex !important;
    align-items: center;
    list-style: none;
    cursor: pointer;
    background: #eef2ff !important;
    color: #4338ca !important;
    border: 1px solid #c7d2fe !important;
    border-radius: 6px;
    font-weight: 700;
}

.student-actions-disclosure > summary::-webkit-details-marker {
    display: none;
}

.student-actions-disclosure > summary:focus-visible {
    outline: 3px solid #a5b4fc;
    outline-offset: 2px;
}

.student-actions-disclosure > summary::after {
    content: "+";
    margin-left: 0.4rem;
}

.student-actions-disclosure[open] > summary::after {
    content: "-";
}

.student-actions-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
    white-space: normal;
}

.student-actions-disclosure:not([open]) > .student-actions-menu {
    display: none;
}

.student-actions-menu .btn,
.student-actions-menu a.btn {
    margin: 0 !important;
}

#section-cashflow .stat-card {
    min-width: 0;
}

#section-cashflow .stat-card .value {
    overflow-wrap: anywhere;
}

#section-cashflow .cashflow-date-cell {
    white-space: normal !important;
}

#section-cashflow .cashflow-date-time {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.45rem;
}

#section-cashflow .cashflow-date-time > strong,
#section-cashflow .cashflow-date-time > span {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 480px) {
    #section-cashflow > .dashboard-cards {
        grid-template-columns: minmax(0, 1fr);
    }
}