/*
* =========================================================
* style.css
* Progressive Web App (PWA) Uyumlu Ana Stil Dosyası
* Tüm dahili CSS'ler buraya taşınarak kod tekrarı giderilmiştir.
* =========================================================
*/

/* === MODERN CSS RESET & VARIABLES === */
:root {
    /* Ana Tema Renkleri */
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #eef2ff;
    --secondary: #7209b7;
    --accent: #f72585;
    --success: #06d6a0;
    /* PWA/AI Success Color */
    --warning: #ffd166;
    --danger: #ef476f;
    --dark: #1a1a2e;
    --dark-light: #2d3047;
    --gray: #8d99ae;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray-light: #e5e7eb;
    --border: #e2e8f0;
    /* Added for Admin Panel compatibility */
    --radius: 12px;
    /* Added for Admin Panel compatibility */

    /* YENİ AI / PWA ODAKLI RENK DEĞİŞKENLERİ */
    --ai-color: #06d6a0;
    /* Zümrüt Yeşili */
    --ai-dark: #1b9aaa;
    --ai-gradient: linear-gradient(135deg, #06d6a0 0%, #1b9aaa 100%);
    --ai-gradient-light: linear-gradient(135deg, rgba(6, 214, 160, 0.1) 0%, rgba(27, 154, 170, 0.1) 100%);

    /* Gradientler */
    --gradient-primary: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    --gradient-secondary: linear-gradient(135deg, #7209b7 0%, #560bad 100%);
    --gradient-accent: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
    --gradient-ozet: linear-gradient(135deg, #06d6a0 0%, #1b9aaa 100%);

    /* Gölgeler ve Köşeler */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;

    /* Animasyonlar ve Yükseklikler */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s ease;
    --header-height: 70px;
    --mobile-header-height: 60px;

    /* Dashboard Özel Renkleri */
    --danger-light: #ffebeb;
    --success-light: #e6fcf5;
    --custom-add-bg: linear-gradient(45deg, #8b5cf6 0%, #6366f1 100%);
    /* Mor-Mavi gradyan */
    --custom-add-hover: linear-gradient(45deg, #6366f1 0%, #8b5cf6 100%);
    --custom-test-bg: linear-gradient(45deg, #f59e0b 0%, #fbbf24 100%);
    /* Yeni eklenen test butonu için */
    --custom-test-hover: linear-gradient(45deg, #fbbf24 0%, #f59e0b 100%);

    /* KARANLIK MOD DEĞİŞKENLERİ - Varsayılan (Light) */
    --bg-color: #f8f9fa;
    --text-color: #1a1a2e;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-border: #e2e8f0;
    --link-hover-bg: #f1f5f9;
    --loading-bg: rgba(15, 23, 42, 0.98);
}

/* KARANLIK MOD STİLLERİ */
body.dark-mode {
    --dark: #f0f0f0;
    --dark-light: #2d3748;
    --gray: #a0aec0;
    --white: #1a1a2e;

    --bg-color: #121212;
    --text-color: #f0f0f0;
    --header-bg: rgba(26, 26, 46, 0.95);
    --header-border: #333333;
    --link-hover-bg: #2d3748;
    --loading-bg: rgba(0, 0, 0, 0.98);

    background: var(--bg-color);
    color: var(--text-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overscroll-behavior-y: none;
    /* Pull-to-refresh'i engelle (Native hissi için) */
    -webkit-tap-highlight-color: transparent;
    /* Tıklama vurgusunu kaldır */
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    /* Native App gibi hissetmesi için seçimleri kapat */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Çentikli telefonlar için güvenli alan */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Form elemanlarında seçimi ve kopyalamayı tekrar aç */
input,
textarea,
[contenteditable] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-normal);
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
}

/* === HEADER (Üst Çubuk) === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    /* Increased z-index */
    display: flex;
    justify-content: space-between;
    /* Ensure logo and user info are pushed to edges */
    align-items: center;
    padding: 0 40px;
    /* More breathing room */
    transition: all var(--transition-normal);
    backdrop-filter: blur(16px);
    /* Stronger blur */
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.85);
    /* Slightly more transparent */
}

/* LOGO */
.logo-panel {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--ai-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

/* NAV LİNKLERİ (Masaüstü) */
.nav-link-container {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center navigation */
    flex-grow: 1;
    gap: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--gray);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    /* Pill shape */
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.nav-link i {
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
    /* Very subtle hover bg */
}

.nav-link:hover i {
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--primary);
    /* Solid primary color */
    color: var(--white);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
    /* Glow effect */
}

.nav-link.active i {
    color: var(--white);
    transform: none;
}

/* --- DROPDOWN MENU STYLES (Desktop) --- */
.nav-group {
    position: relative;
    padding: 10px 0;
    /* Create hover bridge */
}

.nav-group-title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    /* Reduced specific padding */
    color: var(--gray);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 50px;
}

.nav-group:hover .nav-group-title {
    color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
}

.nav-group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu .nav-link {
    border-radius: 8px;
    /* Square edges inside dropdown */
    margin-bottom: 2px;
    padding: 10px 15px;
    width: 100%;
    justify-content: flex-start;
    /* Left align items */
}

/* Özel Buton Boyutlandırmaları (Küçültme) */
.nav-link.active {
    padding: 8px 16px !important;
    /* Smaller active button */
}

.btn-sidebar-cikis {
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
    margin-top: 0 !important;
    /* Reset margin */
}

/* Kullanıcı Bilgileri - Sağ Üst */
.user-info-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    flex-shrink: 0;
}

.credit-badge {
    background: linear-gradient(135deg, var(--warning) 0%, #fbbf24 100%);
    color: var(--dark);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    transition: all var(--transition-normal);
}

.credit-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.credit-badge.zero-credit {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: var(--white);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.user-avatar {
    width: 42px;
    height: 42px;
    background: var(--ai-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    border: 3px solid var(--white);
    cursor: pointer;
    transition: all var(--transition-normal);
}

body.dark-mode .user-avatar {
    border: 3px solid var(--dark-light);
}

.user-welcome {
    display: flex;
    flex-direction: column;
}

.user-welcome span:first-child {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-welcome strong {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Hamburger Butonu */
.hamburger-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--ai-gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 15px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1001;
}

.hamburger-btn.open i.fa-bars {
    display: none;
}

.hamburger-btn.open i.fa-times {
    display: inline-block;
}

.hamburger-btn i.fa-times {
    display: none;
}

/* Ana İçerik Alanı */
.content-container {
    margin-top: var(--header-height);
    padding: 30px 35px 40px 35px;
    min-height: calc(100vh - var(--header-height));
    width: 100%;
}

/* Yükleniyor Ekranı */
#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--loading-bg);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 99999;
    backdrop-filter: blur(10px);
}

#loadingScreen .loader {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--ai-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

#loadingScreen .loading-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #8b5cf6 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === BUTONLAR === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-ai {
    background: var(--ai-gradient);
    color: var(--white);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(247, 37, 133, 0.4);
}

.btn-lg {
    padding: 15px 32px;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.9rem;
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #d90429 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 71, 111, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 71, 111, 0.4);
}

/* === FORM ELEMANLARI === */
.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--dark);
    transition: var(--transition-normal);
    background-color: var(--white);
    margin-bottom: 15px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.2);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-light);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* === EKSTRA BİLEŞENLER (Dashboard) === */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px;
    border-radius: 16px;
    color: white;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.2);
}

.dashboard-header h2 {
    margin: 0 0 10px 0;
    font-size: 2rem;
}

.dashboard-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #f0f0f0;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.bg-blue {
    background: #eef2ff;
    color: var(--primary);
}

.bg-green {
    background: #e6fcf5;
    color: var(--ai-color);
}

.bg-orange {
    background: #fff4e6;
    color: #ff922b;
}

.bg-purple {
    background: #f3f0ff;
    color: #845ef7;
}

.quick-btn {
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    background: white;
    color: var(--dark);
    margin-bottom: 10px;
}

.btn-create {
    background: linear-gradient(45deg, var(--ai-color) 0%, #059669 100%);
    color: white;
}


/* Content Box (Kart Yapısı) */
.content-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--gray-light);
    transition: var(--transition-normal);
}

.content-box:hover {
    box-shadow: var(--shadow-md);
}

.content-box h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--dark);
    border-bottom: 2px solid var(--gray-light);
    padding-bottom: 15px;
}

/* Tablolar */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.results-table th,
.results-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.results-table th {
    font-weight: 700;
    color: var(--dark);
    background: var(--light);
}

.results-table tr:hover {
    background: var(--link-hover-bg);
}

/* Success Alert */
.alert {
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: var(--success-light);
    color: #059669;
    border: 1px solid #d1fae5;
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid #fecaca;
}


/* === LANDING PAGE STYLES (Ana Sayfa) === */
.page-header {
    background: var(--white);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark);
}

.logo-icon {
    font-size: 1.8rem;
}

.main-menu {
    display: flex;
    gap: 30px;
}

.main-menu .nav-link {
    color: var(--dark-light);
    font-weight: 500;
    font-size: 1rem;
    background: none;
    box-shadow: none;
    padding: 0;
}

.main-menu .nav-link:hover {
    color: var(--primary);
    background: none;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-menu a {
    padding: 15px;
    border-bottom: 1px solid var(--gray-light);
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    padding-top: 150px;
    padding-bottom: 100px;
    background: radial-gradient(circle at top right, rgba(67, 97, 238, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(6, 214, 160, 0.1), transparent 40%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--dark);
}

.hero-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 500px;
    background-image: url('https://img.freepik.com/free-vector/online-test-concept-illustration_114360-5474.jpg?w=826&t=st=1709669678~exp=1709670278~hmac=621720875c786522778732560389363717522076063468875638202273685028');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
    min-width: 200px;
}

.card-icon {
    width: 45px;
    height: 45px;
    background: var(--ai-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Features */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card,
.step-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--gray-light);
    position: relative;
    overflow: hidden;
}

.feature-card:hover,
.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon-lg {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 25px;
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-description {
    color: var(--gray);
    line-height: 1.7;
}

.step-number {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px;
    font-size: 3rem;
    font-weight: 800;
    opacity: 0.3;
}

/* CTA Section */
.cta-section {
    background: var(--dark);
    padding: 100px 0;
    text-align: center;
    color: white;
    margin-top: 50px;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-footer {
    background: #111;
    color: #888;
    padding: 40px 0;
    text-align: center;
}

/* === AUTH PAGES (Giriş/Kayıt) === */
.auth-page-body {
    background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.card-subtitle {
    color: var(--gray);
    font-size: 0.95rem;
}

.btn-primary-auth {
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

.alt-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    text-align: center;
    margin-top: 15px;
}

.alt-link:hover {
    text-decoration: underline;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--gray);
    margin: 25px 0;
    font-size: 0.9rem;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-light);
}

.separator::before {
    margin-right: 15px;
}

.separator::after {
    margin-left: 15px;
}


/* === RESPONSIVE DÜZENLEMELER === */

/* Tablet ve Altı (GÜNCELLENDİ: Laptoplarda da hamburger görünsün diye 1366px yapıldı) */
@media (max-width: 1366px) {
    .header {
        height: var(--mobile-header-height);
        padding: 0 20px;
        /* Adjusted mobile padding */
        background: rgba(255, 255, 255, 0.95);
        /* Less transparent on mobile for readibility */
    }

    .content-container {
        margin-top: var(--mobile-header-height);
        padding: 20px 15px 40px 15px;
    }

    /* Mobil Menü */
    .nav-link-container {
        display: none;
        position: fixed;
        top: var(--mobile-header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--mobile-header-height));
        background: rgba(255, 255, 255, 0.98);
        /* Less transparent mobile menu */
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        transform: translateY(-100%);
        transition: transform var(--transition-normal);
        z-index: 998;
        overflow-y: auto;
        margin-left: 0;
    }

    .nav-link-container.open {
        display: flex;
        transform: translateY(0);
    }

    /* Mobil Menüdeki Dropdown Davranışı (Flat List) */
    .nav-group {
        display: block;
        width: 100%;
        padding: 0;
    }

    .nav-group-title {
        display: none;
        /* Mobilde grup başlığını gizle, direkt linkleri göster veya başlık yap */
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        border: none;
        backdrop-filter: none;
        min-width: auto;
    }

    .dropdown-menu .nav-link {
        border-radius: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        margin: 0;
        padding: 15px;
        /* Mobilde geniş tıklama alanı */
    }

    .nav-link {
        width: 100%;
        margin: 0;
        padding: 15px;
        font-size: 1.1rem;
        /* Mobilde daha büyük yazı */
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 0;
        /* Mobilde kare olsun */
        justify-content: flex-start;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .hamburger-btn {
        display: flex;
        order: -1;
    }

    .logo-panel {
        margin-left: 10px;
        flex-grow: 1;
    }

    .user-welcome {
        display: none;
    }

    .credit-badge span {
        display: none;
    }

    .credit-badge {
        padding: 8px 10px;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
    }

    /* Grid Sistemleri Mobilde Tek Kolon */
    .dashboard-main {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .row {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    /* Mobilde tek kolon */

    /* Formlar Mobilde Tam Genişlik */
    .form-group {
        width: 100%;
        margin-bottom: 20px;
    }

    select.form-control {
        width: 100%;
    }

    /* Landing Page Responsive */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    /* Mobilde görseli gizle */
    .main-menu {
        display: none;
    }

    /* Masaüstü menüyü gizle */
    .hamburger-menu {
        display: block;
    }

    /* Mobil menü ikonunu aç */
}

/* Telefon */
@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Kartlar Mobilde Daha Kompakt */
    .content-box {
        padding: 20px;
    }

    .dashboard-header {
        padding: 25px;
    }

    .dashboard-header h2 {
        font-size: 1.5rem;
    }

    /* Butonlar Mobilde Tam Genişlik */
    .btn,
    .quick-btn {
        width: 100%;
        justify-content: center;
    }

    /* Login/Register */
    .login-container,
    .register-container {
        padding: 20px;
    }

    /* Alert İkonu Küçültme */
    .definition-alert div:first-child {
        font-size: 2rem !important;
    }
}

/* Masaüstünde Menüyü Göster */
@media (min-width: 1367px) {
    .nav-link-container {
        display: flex !important;
        transform: translateY(0) !important;
    }
}

/* Mobil Kapat Butonu */
.mobil-kapat-btn {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--danger);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1002;
    transition: transform 0.3s ease;
}

.mobil-kapat-btn:hover {
    transform: rotate(90deg);
}

@media (max-width: 1366px) {
    .mobil-kapat-btn {
        display: block;
    }
}

/* ==========================================================================
   CSS REFACTORING - UNIFIED STYLES (Added via Refactoring)
   ========================================================================== */

/* --- AUTH PAGES (giris.php, kayit.php) --- */
.auth-page-body {
    background: linear-gradient(135deg, #4361ee 0%, #3f37c9 100%);
    /* Rich Blue Gradient */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Background Shapes for Depth */
.auth-page-body::before,
.auth-page-body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Soft blur for ambiance */
    z-index: 0;
}

.auth-page-body::before {
    width: 400px;
    height: 400px;
    background: rgba(76, 201, 240, 0.4);
    /* Light Blue */
    top: -100px;
    left: -100px;
}

.auth-page-body::after {
    width: 300px;
    height: 300px;
    background: rgba(247, 37, 133, 0.3);
    /* Pink Accent */
    bottom: -50px;
    right: -50px;
}

.login-container {
    background: rgba(255, 255, 255, 0.9);
    /* Glassmorphism Base */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 440px;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    /* Above background blobs */
    transition: max-width 0.3s ease;
}

/* Horizontal Layout Grid */
.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 Columns */
    gap: 20px;
}

/* Make container wider for horizontal layout */
.auth-page-body .login-container {
    max-width: 800px;
    /* Wider container */
}

/* Full width elements in grid */
.form-group-full {
    grid-column: 1 / -1;
    /* Span all columns */
}

/* Mobile Responsive: Stack them back */
@media (max-width: 768px) {
    .auth-page-body .login-container {
        max-width: 100%;
        padding: 25px 20px;
        /* Adjusted padding for mobile */
        margin: 15px;
        /* Add margin to prevent sticking to edges */
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
        /* 1 Column */
        gap: 15px;
        /* Smaller gap on mobile */
    }

    .form-control {
        height: 50px;
        /* Slightly smaller on mobile */
    }
}

.form-group {
    position: relative;
    margin-bottom: 0;
    /* Let grid handle gap */
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    padding-left: 48px;
    /* Space for left icon */
    padding-right: 48px;
    /* Space for right icon (eye) */
    height: 54px;
    font-size: 1rem;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
    color: var(--dark);
    font-weight: 500;
}

.form-control:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
    outline: none;
}

.bostuzak {
    display: none;
    visibility: hidden;
    position: absolute;
    left: -9999px;
}

.bostuzak-wrapper {
    display: none !important;
}

/* BETTER ICON POSITIONING */
.input-wrapper {
    position: relative;
    width: 100%;
}

.form-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--gray);
    pointer-events: none;
    transition: color 0.3s;
    z-index: 5;
}

.form-control:focus+.form-icon,
.form-control:focus~.form-icon {
    color: var(--primary);
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 5;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--dark);
}

.card-header-auth {
    text-align: center;
    margin-bottom: 25px;
}

.card-icon-auth {
    font-size: 3rem;
    margin-bottom: 10px;
}

.card-title-auth {
    font-size: 1.6rem;
    color: var(--dark);
    font-weight: 800;
    margin-bottom: 5px;
}

.card-subtitle-auth {
    color: var(--gray);
    font-size: 0.95rem;
}

.btn-primary-auth {
    background: var(--primary);
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 5px;
    border: none;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--gray);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e9ecef;
}

.divider span {
    padding: 0 10px;
}


/* --- PROFILE / DASHBOARD (profil.php) --- */
:root {
    /* Additional vars from profil.php if not already present */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 40px -5px rgba(99, 102, 241, 0.15);
}

.dashboard-container {
    padding: 40px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

/* 🚀 1. CANLI, HAREKETLİ VE NEFES ALAN HERO ALANI (V8 PREMIUM) */
.hero-profile {
    border-radius: 28px;
    padding: 50px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
    background-size: 250% 250%;
    animation: gradientFlow 15s ease infinite;
    box-shadow: 0 25px 60px -15px rgba(124, 58, 237, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-profile::before,
.hero-profile::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    animation: blobMorph 10s infinite alternate;
}

.hero-profile::before {
    top: -150px;
    right: -100px;
    width: 450px;
    height: 450px;
    background: rgba(255, 255, 255, 0.25);
}

.hero-profile::after {
    bottom: -150px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: rgba(99, 102, 241, 0.3);
    animation-delay: 2s;
}

@keyframes blobMorph {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-20px, 20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.user-welcome h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-welcome p {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 400;
}

.date-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

/* 💎 2. HOLOGRAFİK İSTATİSTİK KARTLARI (İÇTEN IŞIKLI) */
.stat-glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: white;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.stat-glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.stat-glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), inset 0 0 20px rgba(255,255,255,0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.stat-glass-card:hover::before {
    left: 200%;
}

.stat-icon-box {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.stat-info span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.stat-info strong {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-title {
    color: var(--gray-800);
    font-weight: 800;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    height: 80%;
    width: 6px;
    background: linear-gradient(to bottom, #7c3aed, #ec4899);
    border-radius: 6px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* 🕹️ 3. BENTO UI MODÜL KARTLARI (3D HOVER EFEKTİ) */
.module-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    z-index: 1;
}

.module-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.module-card:hover {
    transform: translateY(-10px) scale(1.02) perspective(1000px) rotateX(2deg);
    box-shadow: 0 30px 60px -10px rgba(99, 102, 241, 0.2), 0 0 20px rgba(99, 102, 241, 0.1);
    background: rgba(255, 255, 255, 1);
}

.module-icon {
    width: 65px;
    height: 65px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    position: relative;
}

.module-icon::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: inherit;
    filter: blur(15px);
    opacity: 0.6;
    z-index: -1;
    border-radius: 25px;
    transition: opacity 0.3s ease;
}

.module-card:hover .module-icon {
    transform: translateY(-8px) scale(1.15) rotate(8deg);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
}

.module-card:hover .module-icon::before {
    opacity: 1;
    filter: blur(20px);
}

.module-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    transition: color 0.3s;
}

.module-card:hover .module-title {
    color: #4f46e5;
}

.module-desc {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
}

.lock-badge {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- ADMIN PANEL (Sidebar Layout) --- */
:root {
    --sidebar-width: 260px;
    --topbar-height: 70px;
    --sidebar-bg: #1e293b;
    --sidebar-color: #94a3b8;
    --sidebar-active-bg: #4361ee;
    --sidebar-active-color: #ffffff;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-color);
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 25px;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 1.4rem;
}

.sidebar-menu {
    padding: 20px 0;
    overflow-y: auto;
    flex: 1;
}

.sidebar-menu-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 25px;
    margin-top: 10px;
    opacity: 0.6;
    font-weight: 600;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: var(--sidebar-color);
    text-decoration: none;
    transition: 0.2s;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-link.active {
    color: var(--sidebar-active-color);
    background: rgba(67, 97, 238, 0.1);
    border-left-color: var(--sidebar-active-bg);
}

.sidebar-link i {
    width: 25px;
    font-size: 1.1rem;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Prevent overflow */
}

/* TOPBAR */
.admin-topbar {
    height: var(--topbar-height);
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 4px 15px -5px rgba(0, 0, 0, 0.03);
}

.topbar-title h2 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--dark);
    font-weight: 600;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-content-area {
    padding: 30px;
}

/* Responsive Sidebar */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .admin-mobile-toggle {
        display: block;
    }
}

/* --- Old Admin Styles Reset/Preserve --- */
.main-container-admin {
    /* Deprecated, mapped to .admin-content-area */
    padding: 0;
    margin: 0;
    max-width: 100%;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.action-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    border: 1px solid var(--border-color, #e2e8f0);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.badge-counter {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    position: absolute;
    top: 10px;
    right: 10px;
}

.section-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    overflow: hidden;
}

.section-header-admin {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fcfcfc;
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideUp 0.3s ease;
    margin: auto;
    /* Center horizontally if flex fails */
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--danger);
}


gap: 1.5rem;
margin-bottom: 2rem;
}

.action-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    border: 1px solid var(--border-color, #e2e8f0);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.badge-counter {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    position: absolute;
    top: 10px;
    right: 10px;
}

.section-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    overflow: hidden;
}

.section-header-admin {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fcfcfc;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    background: #f8fafc;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--secondary);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    color: var(--dark);
}

.admin-table tr:hover td {
    background: #f8fafc;
}

/* Badges (General usage) */
.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #e0f2fe;
    color: #075985;
}

.badge-primary {
    background: #e0e7ff;
    color: #3730a3;
}

/* Buttons (General usage) */
.btn {
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: opacity 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn:hover {
    opacity: 0.9;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 4px 10px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-site {
    background: var(--light);
    color: var(--dark);
}

.btn-logout {
    background: #fee2e2;
    color: var(--danger);
}

/* --- EXAM LIST (sinav_listesi.php) --- */
.faculty-section {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
    border: 1px solid var(--gray-light);
    overflow: hidden;
}

.faculty-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.faculty-icon {
    font-size: 1.8rem;
    opacity: 0.9;
}

.faculty-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.dept-section {
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray-light);
}

.dept-section:last-child {
    border-bottom: none;
}

.dept-title {
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dept-title i {
    color: var(--secondary);
}

.lesson-group {
    margin-left: 15px;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 3px solid var(--gray-light);
}

.lesson-title {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.exam-card {
    background: var(--light);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
}

.exam-card:hover {
    background: var(--white);
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.70rem;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-admin-card {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fdba74;
}

.badge-ai-card {
    background: #d1fae5;
    color: #065f46;
}

.badge-user-card {
    background: #e0e7ff;
    color: #3730a3;
}

.exam-name {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.4;
    padding-right: 70px;
}

.exam-info {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-start {
    margin-top: auto;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-start:hover {
    background: var(--primary-dark);
}

.btn-start.btn-ai {
    background: var(--ai-color);
}

.btn-start.btn-ai:hover {
    background: var(--ai-dark);
}

.btn-start.btn-admin {
    background: #ea580c;
}

.btn-start.btn-admin:hover {
    background: #c2410c;
}
