
/* ============================================
   DERSAHNE OTOMASYONu - ANA STİL DOSYASI
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Değişkenleri ---- */
:root {
    --bg-primary: #0f0e17;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.07);
    --border-glass: rgba(255, 255, 255, 0.12);
    --text-primary: #fffffe;
    --text-secondary: #a7a9be;
    --text-muted: #6b6d7b;
    --accent-primary: #7f5af0;
    --accent-primary-hover: #6b46d4;
    --accent-secondary: #2cb67d;
    --accent-danger: #e53170;
    --accent-warning: #ff8906;
    --accent-info: #3da9fc;
    --gradient-primary: linear-gradient(135deg, #7f5af0, #2cb67d);
    --gradient-card: linear-gradient(135deg, rgba(127, 90, 240, 0.1), rgba(44, 182, 125, 0.05));
    --gradient-danger: linear-gradient(135deg, #e53170, #ff6b6b);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(127, 90, 240, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease, opacity 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
    --sidebar-width: 260px;
    --header-height: 70px;
}

/* ---- Light Mode (Açık Tema) ---- */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(0, 0, 0, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
    --accent-primary: #6366f1;
    --accent-primary-hover: #4f46e5;
    --gradient-primary: linear-gradient(135deg, #6366f1, #10b981);
    --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(16, 185, 129, 0.04));
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: background-color 0.5s ease, color 0.5s ease;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-primary-hover);
}

/* ---- Animasyonlar ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ---- LOGIN SAYFASI ---- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(127, 90, 240, 0.15), transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(44, 182, 125, 0.1), transparent 70%);
    bottom: -150px;
    left: -100px;
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;

    position: relative;
    z-index: 1;
}

.login-card {
    background: var(--bg-glass);

    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo {
    width: 72px;
    height: 72px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    box-shadow: var(--shadow-glow);

}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 6px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ---- Form Elemanları ---- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition);
    pointer-events: none;
}

.form-control {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent-primary);
    background: rgba(127, 90, 240, 0.08);
    box-shadow: 0 0 0 3px rgba(127, 90, 240, 0.15);
}

.form-control:focus+.input-icon,
.form-control:focus~.input-icon {
    color: var(--accent-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control-no-icon {
    padding-left: 16px;
}

.form-control-sm {
    padding: 8px 12px !important;
    font-size: 0.85rem;
    height: auto;
}

/* Select stillemesi */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6d7b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

/* Select option dark theme */
select.form-control option,
select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px 12px;
}

select.form-control option:hover,
select option:hover,
select.form-control option:checked,
select option:checked {
    background: var(--accent-primary);
    color: #ffffff;
}

select.form-control option:disabled,
select option:disabled {
    color: var(--text-muted);
}

/* ---- Rol Seçici ---- */
.role-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.role-option {
    flex: 1;
    position: relative;
}

.role-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.role-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.role-option label:hover {
    border-color: rgba(127, 90, 240, 0.4);
    background: rgba(127, 90, 240, 0.05);
}

.role-option input[type="radio"]:checked+label {
    border-color: var(--accent-primary);
    background: rgba(127, 90, 240, 0.12);
    box-shadow: 0 0 0 3px rgba(127, 90, 240, 0.15);
}

.role-icon {
    font-size: 1.8rem;
}

.role-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.role-option input[type="radio"]:checked+label .role-label {
    color: var(--text-primary);
}

/* ---- Butonlar ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    letter-spacing: 0.3px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
    background-size: 200% 200%;

}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(127, 90, 240, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 0 20px rgba(229, 49, 112, 0.4);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--accent-secondary);
    color: white;
}

.btn-success:hover {
    background: #25a06d;
    box-shadow: 0 0 20px rgba(44, 182, 125, 0.4);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ---- Alert Mesajları ---- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: none;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
    border: 1px solid transparent;
}

.alert.show {
    display: flex;
}

.alert-error {
    background: rgba(229, 49, 112, 0.12);
    color: #ff6b8a;
    border-color: rgba(229, 49, 112, 0.3);
}

.alert-success {
    background: rgba(44, 182, 125, 0.12);
    color: #4dd9a0;
    border-color: rgba(44, 182, 125, 0.3);
}

.alert-warning {
    background: rgba(255, 137, 6, 0.12);
    color: #ffb347;
    border-color: rgba(255, 137, 6, 0.3);
}

/* ---- PANEL LAYOUT ---- */
.panel-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex: 1 1 auto;
}

/* ---- TOPBAR (Üst Menü) ---- */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 100;
    transition: var(--transition);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-logo {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.topbar-brand-group {
    display: flex;
    flex-direction: column;
}

.topbar-brand-group h2 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.topbar-brand-group span {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Topbar Navigation & Dropdown */
.topbar-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(127, 90, 240, 0.15);
    color: var(--accent-primary);
}

.nav-item .nav-icon {
    font-size: 1.15rem;
}

.nav-item .nav-badge {
    margin-left: 6px;
    background: var(--accent-primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 600;
}

/* Dropdown styling */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    padding-top: 8px; /* Gap fix */
    background: rgba(15, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-dropdown.active .dropdown-menu,
.nav-dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Caret Icon */
.nav-dropdown .caret {
    font-size: 0.65rem;
    margin-left: auto;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.nav-dropdown.active .caret,
.nav-dropdown:hover .caret {
    transform: rotate(180deg);
}

/* Topbar Sağ Kısım (Kullanıcı) */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: var(--transition);
}

.topbar-user:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-glass);
}

.topbar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.topbar-user-info {
    display: flex;
    flex-direction: column;
}

.topbar-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-user-role {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(229, 49, 112, 0.1);
    border: 1px solid rgba(229, 49, 112, 0.3);
    color: var(--accent-danger);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.btn-logout:hover {
    background: rgba(229, 49, 112, 0.2);
    border-color: var(--accent-danger);
}

/* Mobil Menü Butonu */
.mobile-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ---- Ana İçerik Alanı ---- */
.main-content {
    flex: 1 1 auto;
    margin-top: var(--header-height);
    margin-left: 0;
    min-height: calc(100vh - var(--header-height));
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: visible;
}

/* ---- Sayfa İçeriği ---- */
.page-content {
    padding: 32px;

}

/* ---- İstatistik Kartları ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}



.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(127, 90, 240, 0.3);
    box-shadow: var(--shadow-glow);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-icon.purple {
    background: rgba(127, 90, 240, 0.15);
}

.stat-icon.green {
    background: rgba(44, 182, 125, 0.15);
}

.stat-icon.blue {
    background: rgba(61, 169, 252, 0.15);
}

.stat-icon.orange {
    background: rgba(255, 137, 6, 0.15);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ---- Kartlar ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 24px;
}

/* ---- Tablo ---- */
.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    padding: 14px 16px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-glass);
}

.data-table tbody td {
    padding: 14px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Kullanıcı hücre stili */
.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.user-info-name {
    font-weight: 500;
    color: var(--text-primary);
}

.user-info-email {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ---- Badge ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-active {
    background: rgba(44, 182, 125, 0.15);
    color: var(--accent-secondary);
}

.badge-inactive {
    background: rgba(107, 109, 123, 0.15);
    color: var(--text-muted);
}

/* ---- Modal ---- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);

    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;

}

.modal-header {
    padding: 24px 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(229, 49, 112, 0.15);
    color: var(--accent-danger);
}

.modal-body {
    padding: 24px 28px 28px;
}

.modal-footer {
    padding: 0 28px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ---- Form Grid ---- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ---- Hoşgeldin Kartı ---- */
.welcome-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;

}

.welcome-card::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(127, 90, 240, 0.1), transparent 70%);
    top: -150px;
    right: -50px;
    pointer-events: none;
}

.welcome-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.welcome-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ---- Sayfa bölümleri ---- */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

/* ---- Boş durum ---- */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.95rem;
}

/* ---- Öğrenci Bilgi Kartı ---- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.info-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(127, 90, 240, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ---- Hamburger Menü (Mobil Topbar) ---- */
.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

/* ---- Modal ---- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);

    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;

}

.modal-header {
    padding: 24px 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(229, 49, 112, 0.15);
    color: var(--accent-danger);
}

.modal-body {
    padding: 24px 28px 28px;
}

.modal-footer {
    padding: 0 28px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ---- Form Grid ---- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ---- Hoşgeldin Kartı ---- */
.welcome-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;

}

.welcome-card::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(127, 90, 240, 0.1), transparent 70%);
    top: -150px;
    right: -50px;
    pointer-events: none;
}

.welcome-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.welcome-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ---- Sayfa bölümleri ---- */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

/* ---- Boş durum ---- */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.95rem;
}

/* ---- Öğrenci Bilgi Kartı ---- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.info-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(127, 90, 240, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ---- Hamburger Menü (Mobil Topbar) ---- */
.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-overlay {
    display: none;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .topbar {
        padding: 0 16px;
        height: 56px;
        flex-wrap: nowrap; /* Mobilde bükülmesini engelle */
    }
    
    .topbar-left { 
        gap: 10px; 
        flex: 1; /* Sola yaslanmayı kesinleştir */
    }
    
    .topbar-brand-group span { display: none; }
    .topbar-brand-group h2 { font-size: 1rem; }
    
    .mobile-toggle {
        display: flex;
        order: 99; /* En sağa taşı */
        margin-left: auto;
    }
    
    .topbar-nav {
        position: fixed;
        top: var(--header-height);
        left: unset;
        right: 0;
        bottom: 0;
        width: 280px;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 24px 16px;
        border-left: 1px solid var(--border-glass);
        gap: 8px;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 90;
        overflow-y: auto;
    }
    
    .topbar.mobile-open .topbar-nav {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        display: none;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.05);
        margin-top: 4px;
        margin-left: 12px;
        flex-direction: column;
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: flex; /* Aktif olduğunda göster */
        opacity: 1;
        visibility: visible;
    }

    
    .nav-dropdown .caret {
        display: inline-block; /* Oku geri getir */
        transition: transform 0.3s ease;
    }

    .nav-dropdown.active .caret {
        transform: rotate(180deg);
    }

    /* Profil Kısmının Mobilde Menü İçine Yedirilmesi */
    .topbar-right {
        flex-direction: column;
        align-items: center; /* Merkeze al */
        margin-top: auto; /* En alta it */
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        gap: 16px;
        text-align: center;
    }
    
    .topbar-user {
        background: rgba(255,255,255,0.05); /* Profil kutusunu daha belirgin yap */
        padding: 12px;
        border-radius: 12px;
        width: 100%;
        justify-content: center;
        flex-direction: column;
    }

    .topbar-user-info {
        display: flex; /* Geri göster */
        align-items: center;
    }
    
    .topbar-user-name { font-size: 1rem; }
    .topbar-user-role { font-size: 0.8rem; }
    
    .topbar-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .btn-logout span:last-child,
    .btn-logout span + span {
        display: inline-block; /* Metni geri getir */
    }
    
    .btn-logout {
        padding: 12px 16px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .main-content {
        margin-left: 0;
    }
    .page-content {
        padding: 20px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .login-card {
        padding: 32px 24px;
    }
    .page-header {
        padding: 0 16px;
    }
}
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .topbar-brand-group h2 {
        font-size: 0.85rem;
    }
    
    .topbar-logo {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 6px;
        font-size: 0.72rem;
    }
    
    .page-content {
        padding: 12px;
    }
    
    /* Schedule tablosu */
    .schedule-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ---- Geçiş efekti ---- */
.section-transition {
    animation: fadeIn 0.3s ease;
}

/* ============================================
   DENEME SINAV SİSTEMİ STİLLERİ
   ============================================ */

/* ---- Filtre / Seçici Toolbar ---- */
.filter-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-toolbar label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.filter-toolbar select {
    min-width: 220px;
}

/* ---- Artış / Azalış Badge ---- */
.change-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.change-badge.up {
    background: rgba(44, 182, 125, 0.15);
    color: #4dd9a0;
}

.change-badge.down {
    background: rgba(229, 49, 112, 0.15);
    color: #ff6b8a;
}

.change-badge.same {
    background: rgba(107, 109, 123, 0.15);
    color: var(--text-muted);
}

/* ---- Ders Net Giriş Formu ---- */
.subject-input-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.subject-row {
    display: grid;
    grid-template-columns: 140px 1fr 1fr 1fr 80px;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.subject-row.header-row {
    background: rgba(127, 90, 240, 0.08);
    border-color: rgba(127, 90, 240, 0.15);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 10px 14px;
}

.subject-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.subject-row input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-align: center;
    transition: var(--transition);
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.subject-row input[type="number"]::-webkit-outer-spin-button,
.subject-row input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.subject-row input[type="number"]:focus {
    border-color: var(--accent-primary);
    background: rgba(127, 90, 240, 0.08);
}

.subject-net {
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    color: var(--accent-primary);
}

.subject-net.negative {
    color: var(--accent-danger);
}

/* ---- Toplam Net Göstergesi ---- */
.total-net-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(127, 90, 240, 0.08);
    border: 1px solid rgba(127, 90, 240, 0.2);
    border-radius: var(--radius-md);
    margin-top: 12px;
}

.total-net-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.total-net-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-primary);
}

/* ---- Karşılaştırma Kartları ---- */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.comparison-card {
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.comparison-card:hover {
    border-color: rgba(127, 90, 240, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.comparison-subject {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.comparison-nets {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comparison-prev {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.comparison-arrow {
    font-size: 1.1rem;
}

.comparison-current {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* ---- Bar Grafik ---- */
.chart-container {
    margin-top: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
}

.chart-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-canvas {
    width: 100%;
    height: 280px;
}

/* ---- Sınav Detay Modal (geniş) ---- */
.modal.modal-wide {
    max-width: 720px;
}

/* ---- Detay Tablo ---- */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.detail-table thead th {
    padding: 10px 14px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-glass);
}

.detail-table thead th:first-child {
    text-align: left;
}

.detail-table tbody td {
    padding: 12px 14px;
    text-align: center;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.detail-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-table tfoot td {
    padding: 12px 14px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-primary);
    border-top: 2px solid rgba(127, 90, 240, 0.3);
}

.detail-table tfoot td:first-child {
    text-align: left;
}

/* ---- Responsive Sınav ---- */
@media (max-width: 768px) {
    .subject-row {
        grid-template-columns: 100px 1fr 1fr 1fr 60px;
        gap: 6px;
        padding: 10px;
    }

    .subject-name {
        font-size: 0.78rem;
    }

    .filter-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-toolbar select {
        min-width: 100%;
    }

    .comparison-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .subject-row {
        grid-template-columns: 80px 1fr 1fr 1fr 50px;
        gap: 4px;
        font-size: 0.75rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   TOPLU İÇE AKTARMA STİLLERİ
   ============================================ */

.modal.modal-import {
    max-width: 900px;
    max-height: 92vh;
}

/* Adım göstergesi */
.import-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
}

.import-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.import-step.active {
    color: var(--accent-primary);
    font-weight: 700;
}

.import-step.done {
    color: #4dd9a0;
}

.import-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.import-step.active .import-step-num {
    background: rgba(127, 90, 240, 0.2);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.import-step.done .import-step-num {
    background: rgba(44, 182, 125, 0.2);
    border-color: #4dd9a0;
    color: #4dd9a0;
}

.step-divider {
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
}

/* Dosya yükleme alanı */
.file-drop-zone {
    border: 2px dashed rgba(127, 90, 240, 0.3);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    background: rgba(127, 90, 240, 0.03);
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
    border-color: var(--accent-primary);
    background: rgba(127, 90, 240, 0.08);
}

.file-drop-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.7;
}

.file-drop-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.file-drop-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.file-selected-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(44, 182, 125, 0.08);
    border: 1px solid rgba(44, 182, 125, 0.2);
    border-radius: var(--radius-sm);
    margin-top: 12px;
    font-size: 0.85rem;
    color: #4dd9a0;
}

/* Sütun eşleştirme */
.mapping-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}

.mapping-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mapping-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Önizleme tablosu */
.preview-table-wrapper {
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
}

.match-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.match-status.matched {
    background: rgba(44, 182, 125, 0.15);
    color: #4dd9a0;
}

.match-status.unmatched {
    background: rgba(255, 137, 6, 0.15);
    color: #ffb347;
}

/* İçe aktarma sonuç özeti */
.import-summary {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 16px;
}

.import-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.import-summary-item:last-child {
    border-bottom: none;
}

/* Adım panelleri */
.import-panel {
    display: none;
}

.import-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Loading */
.import-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
}

.import-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(127, 90, 240, 0.15);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .modal.modal-import {
        max-width: 100%;
    }

    .mapping-grid {
        grid-template-columns: 1fr;
    }

    .import-steps {
        flex-wrap: wrap;
        gap: 6px;
    }

    .step-divider {
        width: 16px;
    }
}

/* ============================================
   SIRALAMA TAHMİNİ STİLLERİ
   ============================================ */

.ranking-estimation {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
}

.ranking-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.ranking-icon {
    font-size: 1.2rem;
}

.ranking-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.ranking-year-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    transition: var(--transition);
}

.ranking-year-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(127, 90, 240, 0.2);
    transform: translateY(-2px);
}

.ranking-year-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}

.ranking-year-icon {
    font-size: 1.1rem;
}

.ranking-year-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ranking-year-rank {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
}

.ranking-year-exact {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.ranking-year-comment {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.85;
}

.ranking-disclaimer {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .ranking-cards-grid {
        grid-template-columns: 1fr;
    }

    .ranking-year-rank {
        font-size: 1.2rem;
    }
}

/* ============================================
   AÇILIR-KAPANIR SIDEBAR
   ============================================ */

.sidebar-toggle {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    position: absolute;
    top: 28px;
    right: -16px;
    z-index: 101;
}

.sidebar-toggle:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

/* Collapsed Sidebar */
.sidebar.collapsed {
    width: 72px;
}

.sidebar.collapsed .sidebar-brand,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-section-title,
.sidebar.collapsed .sidebar-user-info {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    padding: 24px 12px;
    justify-content: center;
}

.sidebar.collapsed .sidebar-logo {
    margin: 0;
}

.sidebar.collapsed .nav-item {
    padding: 12px;
    justify-content: center;
}

.sidebar.collapsed .nav-icon {
    margin: 0;
    font-size: 1.2rem;
}

.sidebar.collapsed .sidebar-footer {
    padding: 16px 8px;
}

.sidebar.collapsed .sidebar-user {
    justify-content: center;
}

.sidebar.collapsed .sidebar-toggle {
    right: -16px;
}

.sidebar.collapsed+.main-content,
.panel-layout.sidebar-collapsed .main-content {
    margin-left: 72px;
}

/* ============================================
   YOKLAMA STİLLERİ
   ============================================ */

/* Yoklama toolbar */
.attendance-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.attendance-toolbar .date-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.attendance-toolbar .date-nav button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.attendance-toolbar .date-nav button:hover {
    background: var(--accent-primary);
    color: #fff;
}

.attendance-date-display {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 160px;
    text-align: center;
}

/* Yoklama durum butonları */
.attendance-status-btns {
    display: flex;
    gap: 4px;
}

.att-btn {
    padding: 4px 10px;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-muted);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition);
}

.att-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.att-btn.active-present,
.att-btn.active.present {
    background: rgba(77, 217, 160, 0.15);
    border-color: #4dd9a0;
    color: #4dd9a0;
}

.att-btn.active-absent,
.att-btn.active.absent {
    background: rgba(229, 49, 112, 0.15);
    border-color: #e53170;
    color: #e53170;
}

.att-btn.active-excused,
.att-btn.active.excused {
    background: rgba(61, 169, 252, 0.15);
    border-color: #3da9fc;
    color: #3da9fc;
}

/* Yoklama tablosu */
.attendance-table {
    width: 100%;
    border-collapse: collapse;
}

.attendance-table th,
.attendance-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.attendance-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.attendance-table .student-name {
    font-weight: 500;
    color: var(--text-primary);
}

/* Yoklama durum badge'leri */
.att-status-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.att-status-badge.present {
    background: rgba(77, 217, 160, 0.12);
    color: #4dd9a0;
}

.att-status-badge.absent {
    background: rgba(229, 49, 112, 0.12);
    color: #e53170;
}

.att-status-badge.excused {
    background: rgba(61, 169, 252, 0.12);
    color: #3da9fc;
}

/* Devamsızlık istatistik kartları */
.att-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.att-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
    transition: var(--transition);
}

.att-stat-card:hover {
    border-color: rgba(127, 90, 240, 0.2);
    transform: translateY(-1px);
}

.att-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2px;
}

.att-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Takvim */
.att-calendar {
    margin-top: 16px;
}

.att-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.att-calendar-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.att-calendar-nav {
    display: flex;
    gap: 6px;
}

.att-calendar-nav button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.att-calendar-nav button:hover {
    background: var(--accent-primary);
    color: #fff;
}

.att-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.att-calendar-dayname {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 6px 0;
}

.att-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid transparent;
    position: relative;
    cursor: default;
}

.att-calendar-day.empty {
    visibility: hidden;
}

.att-calendar-day.weekend {
    color: var(--text-muted);
    opacity: 0.5;
}

.att-calendar-day.today {
    border-color: var(--accent-primary);
    font-weight: 700;
    color: var(--accent-primary);
}

.att-calendar-day.present {
    background: rgba(77, 217, 160, 0.15);
    color: #4dd9a0;
    font-weight: 700;
}

.att-calendar-day.absent {
    background: rgba(229, 49, 112, 0.15);
    color: #e53170;
    font-weight: 700;
}

.att-calendar-day.excused {
    background: rgba(61, 169, 252, 0.15);
    color: #3da9fc;
    font-weight: 700;
}

/* Yoklama kayıt listesi */
.att-record-list {
    margin-top: 16px;
}

.att-record-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.att-record-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.att-record-date {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    min-width: 120px;
}

.att-record-day {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 80px;
}

/* Responsive */
@media (max-width: 768px) {
    .att-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .attendance-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .att-calendar-grid {
        gap: 2px;
    }

    .att-calendar-day {
        font-size: 0.65rem;
    }
}

/* ============================================
   ÖDEVLENDİRME STİLLERİ
   ============================================ */

/* Ödev kartları listesi */
.hw-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.hw-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.hw-card:hover {
    border-color: rgba(127, 90, 240, 0.2);
    transform: translateY(-1px);
}

.hw-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.hw-card.status-pending::before {
    background: #ff8906;
}

.hw-card.status-completed::before {
    background: #4dd9a0;
}

.hw-card.status-checked::before {
    background: #7f5af0;
}

.hw-card.status-overdue::before {
    background: #e53170;
}

.hw-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.hw-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.hw-card-subject {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(127, 90, 240, 0.12);
    color: var(--accent-primary);
}

.hw-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.hw-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.73rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.hw-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hw-time-remaining {
    font-weight: 600;
}

.hw-time-remaining.urgent {
    color: #e53170;
}

.hw-time-remaining.ok {
    color: #4dd9a0;
}

/* Ödev durum badge */
.hw-status-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hw-status-badge.pending {
    background: rgba(255, 137, 6, 0.12);
    color: #ff8906;
}

.hw-status-badge.completed {
    background: rgba(77, 217, 160, 0.12);
    color: #4dd9a0;
}

.hw-status-badge.checked {
    background: rgba(127, 90, 240, 0.12);
    color: #7f5af0;
}

.hw-status-badge.overdue {
    background: rgba(229, 49, 112, 0.12);
    color: #e53170;
}

/* Ödev aksiyon butonları */
.hw-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.hw-action-btn {
    padding: 5px 12px;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hw-action-btn:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

.hw-action-btn.done {
    background: rgba(77, 217, 160, 0.12);
    border-color: #4dd9a0;
    color: #4dd9a0;
}

.hw-action-btn.done:hover {
    background: #4dd9a0;
    color: #000;
}

.hw-action-btn.check {
    background: rgba(127, 90, 240, 0.12);
    border-color: #7f5af0;
    color: #7f5af0;
}

.hw-action-btn.check:hover {
    background: #7f5af0;
    color: #fff;
}

.hw-action-btn.danger {
    border-color: rgba(229, 49, 112, 0.3);
    color: var(--accent-danger);
}

.hw-action-btn.danger:hover {
    background: var(--accent-danger);
    color: #fff;
    border-color: var(--accent-danger);
}

/* Ödev istatistik kartları */
.hw-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.hw-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    transition: var(--transition);
}

.hw-stat-card:hover {
    border-color: rgba(127, 90, 240, 0.2);
}

.hw-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2px;
}

.hw-stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Ödev filtre toolbar */
.hw-filter-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.hw-filter-btn {
    padding: 5px 14px;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-muted);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.73rem;
    font-weight: 500;
    transition: var(--transition);
}

.hw-filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.hw-filter-btn.active {
    background: rgba(127, 90, 240, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Öğrenci adı (admin tarafı) */
.hw-student-name {
    font-size: 0.75rem;
    color: var(--accent-info);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .hw-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hw-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .hw-card-actions {
        flex-wrap: wrap;
    }
}

/* ============================================
   ÖĞRENCİ DETAY MODALI
   ============================================ */

.sd-section {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.sd-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-glass);
}

.sd-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}

.sd-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sd-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.sd-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.sd-stats-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sd-stat-card {
    flex: 1;
    min-width: 70px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    transition: var(--transition);
}

.sd-stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
}

.sd-stat-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.sd-stat-lbl {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sd-recent-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sd-recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border-radius: 8px;
    font-size: 0.82rem;
    border: 1px solid rgba(127, 90, 240, 0.06);
    transition: var(--transition);
}

.sd-recent-item:hover {
    background: rgba(127, 90, 240, 0.06);
    border-color: var(--accent-primary);
}

@media (max-width: 600px) {
    .sd-info-grid {
        grid-template-columns: 1fr;
    }

    .sd-stats-row {
        flex-wrap: wrap;
    }

    .sd-stat-card {
        min-width: 60px;
    }

    .sd-recent-item {
        flex-wrap: wrap;
    }
}

/* ============================================
   DERS PROGRAMI TABLOSU
   ============================================ */

.schedule-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
    min-width: 700px;
}

.schedule-time-header {
    padding: 12px 8px;
    text-align: center;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: rgba(127, 90, 240, 0.08);
    border-radius: var(--radius-sm);
    width: 110px;
    min-width: 100px;
}

.schedule-day-header {
    padding: 12px 8px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(127, 90, 240, 0.08);
    border-radius: var(--radius-sm);
}

.schedule-time-cell {
    padding: 8px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    min-width: 100px;
}

.schedule-cell {
    padding: 4px;
    text-align: center;
    vertical-align: top;
    border-radius: var(--radius-sm);
    min-height: 60px;
    height: 70px;
    transition: var(--transition);
}

.schedule-cell-empty {
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    position: relative;
}

.schedule-cell-empty:hover {
    background: rgba(127, 90, 240, 0.08);
    border: 1px dashed rgba(127, 90, 240, 0.3);
}

.schedule-add-hint {
    display: none;
    font-size: 1.4rem;
    color: rgba(127, 90, 240, 0.4);
    font-weight: 300;
    line-height: 60px;
}

.schedule-cell-empty:hover .schedule-add-hint {
    display: inline;
}

.schedule-cell-filled {
    background: color-mix(in srgb, var(--entry-color, #7f5af0) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--entry-color, #7f5af0) 30%, transparent);
    position: relative;
}

.schedule-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    height: 100%;
    transition: var(--transition);
    position: relative;
}

.schedule-entry:hover {
    background: rgba(255, 255, 255, 0.06);
}

.schedule-entry-readonly {
    cursor: default;
}

.schedule-entry-readonly:hover {
    background: transparent;
}

.schedule-entry-subject {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--entry-color, var(--accent-primary));
    line-height: 1.2;
}

.schedule-entry-teacher {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.schedule-entry-room {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.schedule-entry-delete {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border: none;
    background: rgba(229, 49, 112, 0.15);
    color: var(--accent-danger);
    border-radius: 50%;
    font-size: 0.65rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.schedule-entry:hover .schedule-entry-delete {
    display: flex;
}

.schedule-entry-delete:hover {
    background: rgba(229, 49, 112, 0.35);
    transform: scale(1.1);
}

/* Schedule responsive */
@media (max-width: 768px) {
    .schedule-table {
        min-width: 600px;
    }

    .schedule-time-header,
    .schedule-day-header {
        font-size: 0.7rem;
        padding: 8px 4px;
    }

    .schedule-entry-subject {
        font-size: 0.75rem;
    }

    .schedule-time-cell {
        font-size: 0.7rem;
        min-width: 80px;
    }
}

/* ---- Haftalık Program Editörü (Grid) ---- */
.editor-grid-wrapper {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}

.editor-cell {
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;
    min-height: 80px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.editor-header-cell {
    background: rgba(127, 90, 240, 0.1);
    color: var(--accent-primary);
    font-weight: 700;
    min-height: 50px;
    cursor: default;
    position: sticky;
    top: 0;
    z-index: 10;

}

.editor-time-cell {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: default;
    position: sticky;
    left: 0;
    z-index: 5;
}

.editor-content-cell:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Eraser Mode */
.schedule-grid.eraser-mode .editor-content-cell {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e53170' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20H7L3 16C2 15 2 13 3 12L13 2L22 11L20 20Z'/%3E%3Cpath d='M17 17L7 7'/%3E%3C/svg%3E") 12 12, auto;
}

.schedule-grid.eraser-mode .editor-content-cell:hover {
    background: rgba(229, 49, 112, 0.1) !important;
    box-shadow: inset 0 0 0 2px var(--accent-danger);
}

.editor-content-cell.filled {
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
}

.editor-content-cell.filled:hover {
    filter: brightness(1.1);
    transform: scale(0.98);
}

/* ---- Modal Stilleri (Eklendi) ---- */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 9999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;

}

.modal-overlay.show,
.modal-overlay.active {
    display: flex !important;
    animation: fadeIn 0.3s ease;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;

}

.modal-wide {
    max-width: 900px;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: var(--bg-card);
}

.modal-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    background: transparent;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(229, 49, 112, 0.1);
    color: var(--accent-danger);
    border-color: var(--accent-danger);
}

.modal-body {
    padding: 24px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto !important;
    /* Fix for inputs */
}

/* Soru Çözümü Öğrenci Çağrı Animasyonu */
@keyframes pulseCall {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 49, 112, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(229, 49, 112, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(229, 49, 112, 0);
    }
}

.modal-body * {
    pointer-events: auto !important;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    background: var(--bg-card);
}

/* --- Exam Tab Navigation --- */
.exam-detail-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.exam-detail-tab:hover {
    background: rgba(127, 90, 240, 0.1);
    color: var(--text-primary);
}

.exam-detail-tab.active {
    background: rgba(127, 90, 240, 0.2);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    font-weight: 700;
}

/* --- Bulk Entry Table --- */
.bulk-entry-table {
    border-collapse: separate;
    border-spacing: 0;
}

.bulk-entry-table input[type="number"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bulk-entry-table input[type="number"]:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(127, 90, 240, 0.2);
    outline: none;
}

.bulk-entry-table input[type="number"]::-webkit-inner-spin-button,
.bulk-entry-table input[type="number"]::-webkit-outer-spin-button {
    opacity: 0;
}

.bulk-entry-table input[type="number"]:hover::-webkit-inner-spin-button,
.bulk-entry-table input[type="number"]:hover::-webkit-outer-spin-button {
    opacity: 1;
}

/* --- Exam Type Radio Option --- */
.exam-type-option {
    transition: all 0.2s ease;
}

.exam-type-option:hover {
    border-color: var(--accent-primary) !important;
    background: rgba(127, 90, 240, 0.06);
}

.exam-type-option:has(input:checked) {
    border-color: var(--accent-primary) !important;
    background: rgba(127, 90, 240, 0.12);
    box-shadow: 0 0 0 2px rgba(127, 90, 240, 0.15);
}

/* --- Detail Table (Exam result detail modal) --- */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.detail-table th,
.detail-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.85rem;
}

.detail-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-table tfoot td {
    font-weight: 700;
    border-top: 2px solid var(--border-glass);
    color: var(--text-primary);
}

/* ============================================
   ENHANCED MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {

    /* Sidebar: fixed offscreen */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 100;
        transition: transform 0.3s ease;
    }

    /* Welcome card */
    .welcome-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .welcome-title {
        font-size: 1.2rem;
    }

    /* Tables */
    .data-table thead th,
    .data-table tbody td {
        padding: 10px 12px;
        font-size: 0.78rem;
    }

    /* Info grid */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Modals */
    .modal {
        width: 95% !important;
        max-width: none !important;
    }

    .modal-header {
        padding: 16px 20px 0;
    }

    .modal-body {
        padding: 16px 20px 20px;
    }

    .modal-footer {
        padding: 0 20px 16px;
    }

    /* Card headers */
    .card-header {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .card-body {
        padding: 16px;
    }

    /* Topbar */
    .page-header {
        height: auto;
        min-height: var(--header-height);
        gap: 8px;
    }

    .page-title {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-actions {
        gap: 8px;
    }

    .btn-logout span:not(:first-child) {
        display: none;
    }

    /* Login page mobile */
    .login-card {
        width: 95%;
        padding: 28px 20px;
    }

    .login-header h1 {
        font-size: 1.3rem;
    }

    .role-options {
        gap: 8px;
    }

    .role-option label {
        padding: 10px;
    }

    /* Subject input grid (sınav formu) */
    .subject-row {
        grid-template-columns: 80px 1fr 1fr 1fr 50px;
        gap: 4px;
        padding: 8px;
        font-size: 0.75rem;
    }

    .subject-row.header-row {
        font-size: 0.65rem;
        padding: 6px 8px;
    }

    .subject-name {
        font-size: 0.72rem;
    }

    /* Schedule grid */
    .schedule-grid {
        overflow-x: auto;
    }

    /* Stat cards */
    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Quick dashboard */
    .sd-quick-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    /* Tiny screens extra */
    .page-content {
        padding: 12px;
    }

    .welcome-card {
        padding: 16px;
    }

    .welcome-title {
        font-size: 1rem;
    }

    .welcome-subtitle {
        font-size: 0.82rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .subject-row {
        grid-template-columns: 60px 1fr 1fr 1fr 40px;
        gap: 2px;
        padding: 6px;
    }

    .subject-name {
        font-size: 0.65rem;
    }

    .data-table thead th,
    .data-table tbody td {
        padding: 8px 6px;
        font-size: 0.7rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .login-card {
        padding: 24px 16px;
    }

    .form-control {
        padding: 12px 14px 12px 40px;
        font-size: 0.85rem;
    }
}

/* ============================================
   AI ANALİZ KARTLARI - GLASSMORPHISM
   ============================================ */

/* Loading spinner */
@keyframes aiSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes aiSkeletonPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes aiFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(127, 90, 240, 0.15);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: aiSpin 0.8s linear infinite;
    margin: 0 auto;
}

/* Ana Container */
.ai-analysis-container {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
    animation: aiFadeInUp 0.5s ease-out;
}

.ai-analysis-container > .ai-card,
.ai-analysis-container > .ai-grid,
.ai-analysis-container > .ai-footer {
    animation: aiFadeInUp 0.5s ease-out;
    animation-fill-mode: backwards;
}

.ai-analysis-container > .ai-card:nth-child(1) { animation-delay: 0.05s; }
.ai-analysis-container > .ai-grid { animation-delay: 0.15s; }
.ai-analysis-container > .ai-card:nth-child(3) { animation-delay: 0.25s; }
.ai-analysis-container > .ai-card:nth-child(4) { animation-delay: 0.35s; }
.ai-analysis-container > .ai-card:nth-child(5) { animation-delay: 0.45s; }

/* AI Kartları — Glassmorphism */
.ai-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ai-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Kart Türleri */
.ai-card-summary {
    background: linear-gradient(135deg, rgba(127, 90, 240, 0.08), rgba(44, 182, 125, 0.05));
    border-color: rgba(127, 90, 240, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.ai-card-weakness {
    background: linear-gradient(135deg, rgba(229, 49, 112, 0.06), rgba(255, 107, 138, 0.03));
    border-color: rgba(229, 49, 112, 0.15);
}

.ai-card-strength {
    background: linear-gradient(135deg, rgba(44, 182, 125, 0.06), rgba(77, 217, 160, 0.03));
    border-color: rgba(44, 182, 125, 0.15);
}

.ai-card-trend {
    background: linear-gradient(135deg, rgba(127, 90, 240, 0.06), rgba(61, 169, 252, 0.03));
    border-color: rgba(127, 90, 240, 0.15);
}

.ai-card-prediction {
    background: linear-gradient(135deg, rgba(255, 137, 6, 0.06), rgba(255, 193, 7, 0.03));
    border-color: rgba(255, 137, 6, 0.15);
}

.ai-card-plan {
    background: linear-gradient(135deg, rgba(61, 169, 252, 0.06), rgba(127, 90, 240, 0.03));
    border-color: rgba(61, 169, 252, 0.15);
}

/* Kart İç Elemanları */
.ai-card-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.ai-card-body {
    flex: 1;
    min-width: 0;
}

.ai-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-title-icon {
    font-size: 1.1rem;
}

.ai-card-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* İki sütunlu grid */
.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .ai-grid {
        grid-template-columns: 1fr;
    }
}

/* Liste Elemanları */
.ai-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-list-item {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
}

.ai-card-weakness .ai-list-item {
    border-left-color: rgba(229, 49, 112, 0.5);
}

.ai-card-strength .ai-list-item {
    border-left-color: rgba(44, 182, 125, 0.5);
}

.ai-list-subject {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.ai-list-topics {
    font-size: 0.78rem;
    color: var(--accent-danger);
    margin-bottom: 4px;
    font-style: italic;
}

.ai-card-strength .ai-list-topics {
    color: var(--accent-secondary);
}

.ai-list-detail {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Trend Grid */
.ai-trend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.ai-trend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-trend-arrow {
    font-size: 1.5rem;
    font-weight: 800;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.trend-up .ai-trend-arrow {
    color: #4dd9a0;
    background: rgba(44, 182, 125, 0.12);
}

.trend-down .ai-trend-arrow {
    color: #ff6b8a;
    background: rgba(229, 49, 112, 0.12);
}

.trend-stable .ai-trend-arrow {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
}

.ai-trend-info {
    flex: 1;
    min-width: 0;
}

.ai-trend-subject {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ai-trend-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 2px;
}

/* Tahmin Kartı */
.ai-prediction-body {
    text-align: center;
    padding: 12px 0;
}

.ai-prediction-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff8906, #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

.ai-prediction-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 12px;
}

.ai-prediction-detail {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.ai-prediction-potential {
    font-size: 0.8rem;
    color: var(--accent-warning);
    font-style: italic;
}

/* Çalışma Planı */
.ai-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.ai-plan-day {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-plan-day-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-plan-subjects {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-plan-subject {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.ai-plan-subject-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ai-plan-subject-dur {
    font-size: 0.72rem;
    color: var(--accent-secondary);
    background: rgba(44, 182, 125, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
}

.ai-plan-subject-focus {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
    width: 100%;
}

/* Footer */
.ai-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 4px;
    gap: 12px;
    flex-wrap: wrap;
}

.ai-footer-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
}

.ai-refresh-btn {
    gap: 4px;
}

/* Skeleton Loading */
.ai-skeleton-card {
    overflow: hidden;
}

.ai-skeleton-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    animation: aiSkeletonPulse 1.5s ease-in-out infinite;
}

.ai-skeleton-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    animation: aiSkeletonPulse 1.5s ease-in-out infinite;
}

.ai-skeleton-line.w40 { width: 40%; }
.ai-skeleton-line.w50 { width: 50%; }
.ai-skeleton-line.w60 { width: 60%; }
.ai-skeleton-line.w65 { width: 65%; }
.ai-skeleton-line.w70 { width: 70%; }
.ai-skeleton-line.w75 { width: 75%; }
.ai-skeleton-line.w80 { width: 80%; }
.ai-skeleton-line.w85 { width: 85%; }
.ai-skeleton-line.w90 { width: 90%; }
.ai-skeleton-line.w100 { width: 100%; }

/* AI Section Title */
.ai-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-glass);
}

.ai-section-header h4 {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7f5af0, #2cb67d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-section-header .ai-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    background: rgba(127, 90, 240, 0.15);
    color: var(--accent-primary);
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}