/* ============================================================
   OKUL TAKİP SİSTEMİ - PREMIUM CSS
   Modern, Glassmorphism, Responsive Design
   ============================================================ */

/* ---------- CSS Variables (Theming) ---------- */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-sidebar: linear-gradient(180deg, #4f46e5 0%, #7c3aed 50%, #6366f1 100%);

    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;

    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);

    --hover-bg: rgba(99, 102, 241, 0.06);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --sidebar-width: 260px;
    --header-height: 70px;
}

/* ---------- Dark Mode ---------- */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-glass: rgba(30, 41, 59, 0.8);
    --bg-sidebar: linear-gradient(180deg, #1e1b4b 0%, #312e81 50%, #1e293b 100%);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: #334155;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.3);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    --hover-bg: rgba(99, 102, 241, 0.1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    max-width: 100vw;
    transition: var(--transition);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--text-primary); margin-bottom: 0.5em; }
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Layout ---------- */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
}

/* ---------- Sidebar ---------- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1050;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

.sidebar-brand {
    padding: 24px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand .school-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 8px;
    backdrop-filter: blur(10px);
}

.sidebar-brand h5 {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.3px;
}

.sidebar-brand small {
    color: rgba(255,255,255,0.6);
    font-size: 0.72rem;
    display: block;
    margin-top: 2px;
}

.sidebar-nav { padding: 16px 12px; flex: 1; overflow-y: auto; }

.sidebar-nav .nav-item { margin-bottom: 4px; }

.sidebar-nav .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.sidebar-nav .nav-link i { font-size: 1.15rem; width: 22px; text-align: center; }

.sidebar-nav .nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.12);
    transform: translateX(4px);
}

.sidebar-nav .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.18);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-weight: 600;
}

.sidebar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: white;
    border-radius: 0 4px 4px 0;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-clock {
    text-align: center;
    color: rgba(255,255,255,0.9);
}

.sidebar-clock .time {
    font-size: 1.8rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.sidebar-clock .date {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

/* ---------- Main Content ---------- */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    min-width: 0;
    max-width: calc(100vw - var(--sidebar-width));
    padding: 0;
    transition: var(--transition);
    overflow-x: hidden;
}

/* ---------- Top Header ---------- */
.top-header {
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 1040;
}

.top-header .search-box {
    position: relative;
    width: 420px;
}

.top-header .search-box input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.top-header .search-box input:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.top-header .search-box input::placeholder { color: var(--text-muted); }

.top-header .search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.top-header .search-box .search-shortcut {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-primary);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Theme Toggle */
.theme-toggle {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 500;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Search Dropdown ---------- */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: 420px;
    overflow-y: auto;
    display: none;
    z-index: 1060;
    animation: dropdownSlide 0.2s ease;
}

.search-dropdown.active { display: block; }

@keyframes dropdownSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-dropdown .dropdown-section { padding: 8px 0; }
.search-dropdown .dropdown-section:not(:last-child) { border-bottom: 1px solid var(--border-color); }
.search-dropdown .section-title {
    padding: 6px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.search-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    color: var(--text-primary);
}

.search-dropdown .dropdown-item:hover {
    background: var(--bg-primary);
}

.search-dropdown .dropdown-item .item-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.search-dropdown .dropdown-item .item-info { flex: 1; }
.search-dropdown .dropdown-item .item-info .item-name { font-weight: 600; font-size: 0.88rem; }
.search-dropdown .dropdown-item .item-info .item-detail { font-size: 0.78rem; color: var(--text-secondary); }

/* ---------- Page Content ---------- */
.page-content {
    padding: 28px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* ---------- Page Header ---------- */
.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Breadcrumb */
.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.breadcrumb-custom a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-custom a:hover { text-decoration: underline; }
.breadcrumb-custom .separator { color: var(--text-muted); }
.breadcrumb-custom .current { color: var(--text-secondary); font-weight: 600; }

/* ---------- Cards ---------- */
.card-custom {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card-custom:hover {
    box-shadow: var(--shadow-md);
}

.card-custom .card-header-custom {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-custom .card-header-custom h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-custom .card-body-custom { padding: 22px; }

/* ---------- Stat Cards ---------- */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
}

.stat-card.stat-primary::before { background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.stat-card.stat-success::before { background: linear-gradient(90deg, var(--success), #34d399); }
.stat-card.stat-warning::before { background: linear-gradient(90deg, var(--warning), #fbbf24); }
.stat-card.stat-info::before { background: linear-gradient(90deg, var(--info), var(--accent)); }
.stat-card.stat-danger::before { background: linear-gradient(90deg, var(--danger), #f87171); }

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 14px;
}

.stat-card .stat-icon.bg-primary-soft { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.stat-card .stat-icon.bg-success-soft { background: linear-gradient(135deg, var(--success), #34d399); }
.stat-card .stat-icon.bg-warning-soft { background: linear-gradient(135deg, var(--warning), #fbbf24); }
.stat-card .stat-icon.bg-info-soft { background: linear-gradient(135deg, var(--info), var(--accent)); }
.stat-card .stat-icon.bg-danger-soft { background: linear-gradient(135deg, var(--danger), #f87171); }

.stat-card .stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---------- Status Badge ---------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
}

.status-badge.status-derste {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.status-bos {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.status-teneffus {
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.status-badge.status-nobetci {
    background: rgba(6, 182, 212, 0.12);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.status-badge.status-bos-gri {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.15);
}

/* Pulse Animation */
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    animation: pulse-ring 1.5s ease-in-out infinite;
}

.pulse-dot.pulse-green { background: var(--success); }
.pulse-dot.pulse-green::after { border: 2px solid var(--success); }
.pulse-dot.pulse-blue { background: var(--info); }
.pulse-dot.pulse-blue::after { border: 2px solid var(--info); }
.pulse-dot.pulse-yellow { background: var(--warning); }
.pulse-dot.pulse-yellow::after { border: 2px solid var(--warning); }
.pulse-dot.pulse-red { background: var(--danger); }
.pulse-dot.pulse-red::after { border: 2px solid var(--danger); }

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* ---------- Live Status Card ---------- */
.live-status-card {
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
    border: none;
}

.live-status-card.status-bg-success {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
}

.live-status-card.status-bg-warning {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: white;
}

.live-status-card.status-bg-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
}

.live-status-card.status-bg-info {
    background: linear-gradient(135deg, #0284c7, #3b82f6);
    color: white;
}

.live-status-card.status-bg-secondary {
    background: linear-gradient(135deg, #475569, #64748b);
    color: white;
}

.live-status-card .status-icon-large {
    font-size: 2.5rem;
    opacity: 0.9;
}

.live-status-card .status-text h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.live-status-card .status-text p {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    margin: 0;
}

.live-status-card .countdown-badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    text-align: center;
}

.live-status-card .countdown-badge .countdown-number {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.live-status-card .countdown-badge .countdown-label {
    font-size: 0.7rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- Avatar ---------- */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.avatar-sm { width: 32px; height: 32px; font-size: 0.7rem; }
.avatar-md { width: 40px; height: 40px; font-size: 0.8rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1rem; }
.avatar-xl { width: 72px; height: 72px; font-size: 1.3rem; border-radius: var(--radius-lg); }

/* ---------- Schedule Table ---------- */
.schedule-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    -webkit-overflow-scrolling: touch;
}

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 900px;
}

.schedule-table thead th {
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 10px;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 5;
}

.schedule-table thead th:first-child { text-align: left; padding-left: 16px; }

.schedule-table tbody tr { transition: var(--transition-fast); }
.schedule-table tbody tr:hover { background: rgba(99, 102, 241, 0.03); }

.schedule-table tbody td {
    padding: 6px 6px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    vertical-align: middle;
    position: relative;
    height: 70px;
}

.schedule-table tbody td:first-child {
    text-align: left;
    padding-left: 16px;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
    min-width: 80px;
}

.schedule-table tbody td:first-child .ders-saat {
    font-size: 0.68rem;
    color: var(--text-muted);
    display: block;
    font-weight: 400;
}

/* Schedule Cell */
.schedule-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    min-height: 54px;
    transition: var(--transition);
    cursor: default;
    position: relative;
    border-left: 3px solid transparent;
}

.schedule-cell.has-lesson {
    background: rgba(99, 102, 241, 0.06);
    border-left-color: var(--primary);
}

.schedule-cell.has-lesson:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.02);
    box-shadow: var(--shadow-sm);
}

.schedule-cell .cell-class {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.schedule-cell .cell-lesson {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 1px;
}

.schedule-cell .cell-room {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.schedule-cell.cell-empty {
    background: var(--bg-primary);
    opacity: 0.6;
}

.schedule-cell.cell-current {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success);
    animation: currentPulse 2s ease-in-out infinite;
}

@keyframes currentPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.1); }
    50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.05); }
}

/* ---------- Teacher Card ---------- */
.teacher-profile-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
}

.teacher-profile-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 32px 28px 56px;
    position: relative;
    color: white;
}

.teacher-profile-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--bg-card);
    border-radius: 40px 40px 0 0;
}

.teacher-profile-body {
    padding: 0 28px 28px;
    position: relative;
    z-index: 2;
    margin-top: -28px;
}

.teacher-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    border: 4px solid var(--bg-card);
    box-shadow: var(--shadow-lg);
    margin-bottom: 16px;
}

.teacher-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.teacher-info-item {
    text-align: center;
    padding: 14px 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}

.teacher-info-item .info-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.teacher-info-item .info-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 2px;
    font-weight: 500;
}

/* ---------- Nöbet Cards ---------- */
.nobet-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
}

.nobet-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    color: var(--text-primary);
}

.nobet-card .nobet-location {
    background: linear-gradient(135deg, var(--accent), #22d3ee);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ---------- Day Switch Buttons ---------- */
.day-switch {
    display: flex;
    gap: 4px;
    background: var(--bg-primary);
    padding: 4px;
    border-radius: var(--radius-full);
}

.day-switch .day-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.day-switch .day-btn:hover { color: var(--text-primary); background: var(--bg-secondary); }

.day-switch .day-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* ---------- Data Table ---------- */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead th {
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    white-space: nowrap;
}

.data-table thead th:hover { color: var(--primary); }

.data-table thead th.sort-active { color: var(--primary); }
.data-table thead th .sort-icon { font-size: 0.7rem; margin-left: 4px; }

.data-table tbody tr {
    transition: var(--transition-fast);
    cursor: pointer;
}

.data-table tbody tr:hover { background: rgba(99, 102, 241, 0.04); }

.data-table tbody td {
    padding: 14px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
    vertical-align: middle;
}

.data-table .teacher-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.data-table .teacher-cell .teacher-name { font-weight: 600; }
.data-table .teacher-cell .teacher-branch { font-size: 0.78rem; color: var(--text-secondary); }

/* ---------- Progress Bar ---------- */
.progress-custom {
    height: 8px;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-custom .progress-bar-custom {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* ---------- Filter Chips ---------- */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-chip {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.filter-chip .chip-count {
    background: rgba(255,255,255,0.2);
    padding: 1px 6px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
}

.filter-chip.active .chip-count { background: rgba(255,255,255,0.25); }

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state h4 { color: var(--text-secondary); font-size: 1.1rem; }
.empty-state p { font-size: 0.9rem; max-width: 400px; margin: 8px auto 0; }

/* ---------- Quick Access Grid ---------- */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}

.class-btn {
    padding: 12px 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.88rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.class-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* ---------- Live Panel ---------- */
.live-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.live-panel-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.live-panel-header h5 {
    color: white;
    margin: 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-teacher-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.live-teacher-item:last-child { border-bottom: none; }
.live-teacher-item:hover { background: rgba(99, 102, 241, 0.03); }

.live-teacher-item .live-info { flex: 1; }
.live-teacher-item .live-info .teacher-name { font-weight: 600; font-size: 0.88rem; }
.live-teacher-item .live-info .lesson-info { font-size: 0.78rem; color: var(--text-secondary); }
.live-teacher-item .class-badge {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

/* ---------- Day Progress ---------- */
.day-progress-bar {
    background: var(--bg-primary);
    height: 6px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 12px;
}

.day-progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    transition: width 1s ease;
    position: relative;
}

.day-progress-bar .fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    box-shadow: var(--shadow-sm);
}

/* ---------- Nöbet Weekly Grid ---------- */
.nobet-week-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.nobet-day-col {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.nobet-day-col.today { border-color: var(--primary); box-shadow: var(--shadow-glow); }

.nobet-day-col .day-header {
    padding: 10px 12px;
    font-weight: 700;
    font-size: 0.82rem;
    text-align: center;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.nobet-day-col.today .day-header {
    background: var(--primary);
    color: white;
}

.nobet-day-col .day-content { padding: 8px; }

.nobet-mini-card {
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    margin-bottom: 6px;
    font-size: 0.78rem;
}

.nobet-mini-card:last-child { margin-bottom: 0; }
.nobet-mini-card .nobet-name { font-weight: 600; font-size: 0.8rem; }
.nobet-mini-card .nobet-place { color: var(--text-secondary); font-size: 0.72rem; margin-top: 2px; }

/* ---------- Chart placeholders ---------- */
.chart-container {
    padding: 20px;
    position: relative;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 180px;
    padding: 0 8px;
}

.bar-chart .bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.bar-chart .bar {
    width: 100%;
    max-width: 48px;
    border-radius: 8px 8px 0 0;
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.bar-chart .bar:hover { opacity: 0.85; transform: scaleY(1.02); }

.bar-chart .bar-value {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.bar-chart .bar-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 600;
    text-align: center;
}

/* Mini donut chart using CSS */
.donut-chart {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.donut-chart .donut-center {
    width: 72px;
    height: 72px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: absolute;
    z-index: 2;
}

.donut-chart .donut-value { font-size: 1.2rem; font-weight: 800; }
.donut-chart .donut-label { font-size: 0.65rem; color: var(--text-muted); }

/* ---------- Print Styles ---------- */
@media print {
    .sidebar, .top-header, .no-print, .theme-toggle { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .page-content { padding: 10px !important; }
    .card-custom { box-shadow: none !important; border: 1px solid #ddd !important; break-inside: avoid; }
    body { background: white !important; color: black !important; }
    .schedule-cell.has-lesson { background: #f0f0f0 !important; border-left-color: #333 !important; }
}

/* ---------- Mobile Bottom Nav ---------- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 1050;
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
}

.mobile-bottom-nav .nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-bottom-nav .nav-item-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    transition: var(--transition);
}

.mobile-bottom-nav .nav-item-mobile i { font-size: 1.2rem; }

.mobile-bottom-nav .nav-item-mobile.active {
    color: var(--primary);
}

.mobile-bottom-nav .nav-item-mobile.active i { transform: scale(1.1); }

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    padding: 8px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade { animation: fadeIn 0.4s ease forwards; }
.animate-slide { animation: slideInRight 0.4s ease forwards; }

.stagger-1 { animation-delay: 0.05s; opacity: 0; }
.stagger-2 { animation-delay: 0.1s; opacity: 0; }
.stagger-3 { animation-delay: 0.15s; opacity: 0; }
.stagger-4 { animation-delay: 0.2s; opacity: 0; }
.stagger-5 { animation-delay: 0.25s; opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.show { transform: translateX(0); }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1049;
        backdrop-filter: blur(4px);
    }

    .sidebar-overlay.show { display: block; }

    .main-content {
        margin-left: 0;
        max-width: 100vw;
    }

    .mobile-menu-toggle { display: flex; align-items: center; }

    .mobile-bottom-nav { display: block; }

    .page-content { padding: 16px; padding-bottom: 80px; }

    .top-header { padding: 0 16px; }

    .top-header .search-box { width: 100%; max-width: 320px; }

    .teacher-info-grid { grid-template-columns: repeat(3, 1fr); }

    .nobet-week-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card .stat-value { font-size: 1.5rem; }
}

@media (max-width: 767.98px) {
    .top-header .search-box { max-width: 200px; }
    .top-header .search-box .search-shortcut { display: none; }

    .page-header h1 { font-size: 1.35rem; }

    .schedule-table { min-width: 700px; }

    .day-switch { flex-wrap: wrap; }
    .day-switch .day-btn { padding: 6px 14px; font-size: 0.8rem; }

    .teacher-info-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .teacher-info-item { padding: 10px 8px; }
    .teacher-info-item .info-value { font-size: 1.1rem; }

    .nobet-week-grid { grid-template-columns: 1fr; }

    .live-status-card { padding: 16px 18px; }
    .live-status-card .status-icon-large { font-size: 2rem; }

    .bar-chart { height: 140px; gap: 6px; }
}

@media (max-width: 575.98px) {
    .page-content { padding: 12px; padding-bottom: 80px; }
    .top-header .search-box { max-width: 160px; }
    .class-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Utility Classes ---------- */
.gap-3 { gap: 16px; }
.fw-800 { font-weight: 800; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.85rem; }
.rounded-xl { border-radius: var(--radius-xl); }
.bg-gradient-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.bg-gradient-success { background: linear-gradient(135deg, var(--success), #34d399); }
.bg-gradient-warning { background: linear-gradient(135deg, var(--warning), #fbbf24); }
.bg-gradient-info {background: linear-gradient(135deg, var(--info), var(--accent)); }
.bg-gradient-danger { background: linear-gradient(135deg, var(--danger), #f87171); }
.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ---------- Live Tracking Cards (canli.php) ---------- */
.section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}
.live-pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.btn-mode {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-mode:hover { border-color: var(--primary); color: var(--primary); }
.btn-mode.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.live-card {
    display: block;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    overflow: hidden;
}
.live-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: var(--text-primary);
}
.live-card.derste { border-left: 3px solid var(--success); }
.live-card.nobetci { border-left: 3px solid var(--warning); }
.live-card.bos { border-left: 3px solid var(--text-muted); opacity: 0.85; }
.live-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.live-card-body {}
.live-teacher-name { font-weight: 700; font-size: 0.88rem; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-teacher-branch { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 8px; }
.live-info {
    display: flex;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.live-info i { margin-right: 3px; color: var(--primary); }
.live-room { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }

/* ---------- Badge-status variants ---------- */
.badge-status.ders_oncesi { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.badge-status.ders_sonrasi { background: rgba(100, 116, 139, 0.15); color: var(--text-secondary); }
.badge-status.bos_ders { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-status.bos_gun { background: rgba(100, 116, 139, 0.12); color: var(--text-muted); }
.badge-status.hafta_sonu { background: rgba(100, 116, 139, 0.15); color: var(--text-muted); }
.badge-status.bilinmiyor { background: rgba(100, 116, 139, 0.1); color: var(--text-muted); }
.badge-status.derste { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-status.bos { background: rgba(100, 116, 139, 0.12); color: var(--text-muted); }
.badge-status.teneffus { background: rgba(99, 102, 241, 0.15); color: var(--primary); }

/* ---------- Pulse dot color variants ---------- */
.pulse-dot.success { background: var(--success); }
.pulse-dot.success::after { border: 2px solid var(--success); }
.pulse-dot.danger { background: var(--danger); }
.pulse-dot.danger::after { border: 2px solid var(--danger); }
.pulse-dot.warning { background: var(--warning); }
.pulse-dot.warning::after { border: 2px solid var(--warning); }
.pulse-dot.info { background: var(--info); }
.pulse-dot.info::after { border: 2px solid var(--info); }
.pulse-dot.primary { background: var(--primary); }
.pulse-dot.primary::after { border: 2px solid var(--primary); }

/* ---------- Badge-status base ---------- */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Text overflow utilities ---------- */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Nobet card responsive ---------- */
.nobet-card {
    flex-wrap: wrap;
}

.nobet-card .nobet-info {
    min-width: 0;
    flex: 1;
}

.nobet-card .nobet-info .nobet-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Teacher cell overflow ---------- */
.data-table .teacher-cell .teacher-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* ---------- Schedule cell overflow ---------- */
.schedule-cell .cell-class,
.schedule-cell .cell-lesson,
.schedule-cell .cell-room {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* ---------- Teacher profile responsive ---------- */
.teacher-profile-body .teacher-name-lg {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ---------- Card body overflow ---------- */
.card-body-custom {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.card-custom {
    overflow: hidden;
    max-width: 100%;
}

/* ---------- Improved Mobile Responsive ---------- */
@media (max-width: 991.98px) {
    .nobet-card {
        padding: 14px;
        gap: 10px;
    }
    
    .nobet-card .nobet-location {
        max-width: 180px;
        font-size: 0.72rem;
        padding: 4px 10px;
    }
    
    .teacher-info-grid {
        gap: 8px;
    }
    
    .teacher-info-item .info-value {
        font-size: 1.2rem;
    }
    
    .live-card {
        padding: 12px;
    }
    
    .live-info {
        flex-wrap: wrap;
        gap: 6px;
    }
}

@media (max-width: 767.98px) {
    .page-header h1 { font-size: 1.25rem; }
    .page-header p { font-size: 0.82rem; }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-card .stat-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .stat-card .stat-value {
        font-size: 1.4rem;
    }
    
    .stat-card .stat-label {
        font-size: 0.75rem;
    }
    
    .teacher-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .teacher-info-item {
        padding: 8px 6px;
    }
    
    .teacher-info-item .info-value {
        font-size: 1rem;
    }
    
    .teacher-info-item .info-label {
        font-size: 0.65rem;
    }
    
    .nobet-card .nobet-location {
        max-width: 150px;
        font-size: 0.7rem;
    }
    
    .live-card-header {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .section-title {
        font-size: 0.9rem;
    }
    
    .data-table tbody td {
        padding: 10px 8px;
        font-size: 0.82rem;
    }
    
    .data-table thead th {
        padding: 10px 8px;
        font-size: 0.72rem;
    }
    
    .data-table .teacher-cell .teacher-name {
        max-width: 140px;
    }
    
    /* Schedule table mobile */
    .schedule-table { min-width: 700px; }
    
    .schedule-table tbody td {
        height: 60px;
        padding: 4px;
    }
    
    .schedule-cell {
        padding: 4px 4px;
        min-height: 44px;
    }
    
    .schedule-cell .cell-class { font-size: 0.75rem; }
    .schedule-cell .cell-lesson { font-size: 0.65rem; }
    .schedule-cell .cell-room { font-size: 0.58rem; }
    
    .breadcrumb-custom {
        font-size: 0.78rem;
    }
    
    .card-custom .card-header-custom {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .card-custom .card-header-custom h5 {
        font-size: 0.9rem;
    }
    
    .filter-chips {
        gap: 6px;
    }
    
    .filter-chip {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .top-header {
        height: 56px;
        padding: 0 10px;
    }
    
    .top-header .search-box {
        max-width: calc(100vw - 120px);
    }
    
    .top-header .search-box input {
        padding: 8px 12px 8px 36px;
        font-size: 0.82rem;
    }
    
    .page-content {
        padding: 10px;
        padding-bottom: 80px;
    }
    
    .page-header {
        margin-bottom: 16px;
    }
    
    .page-header h1 {
        font-size: 1.1rem;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-card .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .stat-card .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-card .stat-label {
        font-size: 0.7rem;
    }
    
    .teacher-profile-header {
        padding: 20px 16px 40px;
    }
    
    .teacher-profile-body {
        padding: 0 16px 20px;
    }
    
    .teacher-profile-avatar {
        width: 64px;
        height: 64px;
        font-size: 1.2rem;
    }
    
    .teacher-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    
    .teacher-info-item {
        padding: 6px 4px;
    }
    
    .teacher-info-item .info-value {
        font-size: 0.9rem;
    }
    
    .teacher-info-item .info-label {
        font-size: 0.6rem;
    }
    
    .nobet-card {
        padding: 10px;
        gap: 8px;
    }
    
    .nobet-card .nobet-location {
        max-width: 120px;
        font-size: 0.65rem;
        padding: 3px 8px;
    }
    
    .live-card {
        padding: 10px;
    }
    
    .live-teacher-name {
        font-size: 0.82rem;
    }
    
    .live-info {
        font-size: 0.72rem;
        gap: 8px;
    }
    
    .live-pulse-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
    
    .day-switch {
        gap: 2px;
        padding: 3px;
    }
    
    .day-switch .day-btn {
        padding: 5px 10px;
        font-size: 0.72rem;
    }
    
    .data-table .teacher-cell {
        gap: 8px;
    }
    
    .data-table .teacher-cell .teacher-name {
        max-width: 100px;
        font-size: 0.78rem;
    }
    
    .class-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .class-btn {
        padding: 8px 4px;
        font-size: 0.78rem;
    }
    
    .bar-chart {
        height: 120px;
        gap: 4px;
    }
    
    .bar-chart .bar-label {
        font-size: 0.6rem;
    }
    
    .bar-chart .bar-value {
        font-size: 0.65rem;
    }
    
    .section-title {
        font-size: 0.85rem;
    }
    
    /* Search dropdown mobile */
    .search-dropdown {
        position: fixed;
        top: 56px;
        left: 8px;
        right: 8px;
        max-height: calc(100vh - 140px);
        border-radius: var(--radius-md);
    }
}

/* ============================================================
   TIMELINE - Zaman Çizelgesi
   ============================================================ */

.timeline-container {
    position: relative;
    padding-left: 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    padding-bottom: 8px;
    transition: all 0.2s ease;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 18px;
    bottom: -4px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item.timeline-active:not(:last-child)::before {
    background: var(--success);
}

.timeline-item.timeline-past:not(:last-child)::before {
    background: var(--border-color);
    opacity: 0.5;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    min-width: 12px;
    border-radius: 50%;
    margin-top: 6px;
    background: var(--border-color);
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-active .timeline-dot {
    background: var(--success) !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    animation: timeline-pulse 2s ease-in-out infinite;
}

.timeline-past .timeline-dot {
    opacity: 0.4;
}

@keyframes timeline-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 12px rgba(16, 185, 129, 0.6); }
}

.timeline-time {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 42px;
    padding-top: 4px;
    font-variant-numeric: tabular-nums;
}

.timeline-active .timeline-time {
    color: var(--success);
    font-weight: 800;
}

.timeline-past .timeline-time {
    opacity: 0.5;
}

.timeline-content {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    transition: all 0.2s ease;
    min-height: 40px;
}

.timeline-content:hover {
    border-color: var(--primary);
    transform: translateX(2px);
}

.timeline-active .timeline-content {
    border-color: var(--success) !important;
    background: rgba(16, 185, 129, 0.04);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.timeline-past .timeline-content {
    opacity: 0.5;
}

/* ============================================================
   PROFILE CARD (Öğrenci/Öğretmen Detay)
   ============================================================ */

.profile-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.profile-card-header {
    padding: 24px;
    text-align: center;
    position: relative;
}

.profile-card-body {
    padding: 16px 20px;
}

.profile-avatar-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 12px;
    border: 3px solid rgba(255,255,255,0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.profile-stat-item {
    text-align: center;
    padding: 8px 4px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.profile-stat-item .stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.profile-stat-item .stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ============================================================
   CONTACT CARD (Veli İletişim)
   ============================================================ */

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    text-decoration: none;
    color: var(--text-primary);
}

.contact-item:hover {
    background: var(--bg-primary);
}

.contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
}

.contact-info .contact-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.contact-info .contact-number {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   QUICK BADGES (Ders/Sınıf tag'leri)
   ============================================================ */

.ders-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.ders-badge:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.class-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.class-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
    transform: translateY(-1px);
}

/* ============================================================
   ENHANCED RESPONSIVE - Timeline
   ============================================================ */

@media (max-width: 768px) {
    .timeline-time {
        font-size: 0.65rem;
        min-width: 36px;
    }
    
    .timeline-content {
        padding: 6px 10px;
    }
    
    .profile-avatar-lg {
        width: 56px;
        height: 56px;
        font-size: 1.2rem;
    }
    
    .profile-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
