/* ========================================================================
   ESPA WEBSITE - ANA TASARIM SISTEMI
   Hedef Kitle: 40+ yas, kolay kullanim, buyuk yazilar
   ======================================================================== */

/* -- Google Fonts -- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,1,0&display=swap');

/* -- CSS Degiskenler (Design Tokens) -- */
:root {
    /* Ana Renkler */
    --primary: #1B4D8E;
    --primary-light: #2A6BC5;
    --primary-dark: #0F3460;
    --primary-surface: #E8F0FE;

    /* Vurgu Renkleri */
    --accent: #F5A623;
    --accent-light: #FFD07B;
    --accent-dark: #D48B0A;

    /* Durum Renkleri */
    --success: #2ECC71;
    --success-surface: #E8FAF0;
    --warning: #F39C12;
    --warning-surface: #FEF5E7;
    --danger: #E74C3C;
    --danger-surface: #FDEDEC;
    --info: #3498DB;
    --info-surface: #EBF5FB;

    /* Notr Renkler */
    --bg-body: #F4F6FA;
    --bg-card: #FFFFFF;
    --bg-sidebar: #0F2540;
    --bg-header: #FFFFFF;
    --bg-input: #F7F9FC;

    --text-primary: #1A1D26;
    --text-secondary: #5A6275;
    --text-muted: #8E95A5;
    --text-inverse: #FFFFFF;

    --border-color: #E2E6EF;
    --border-light: #F0F2F7;

    /* Golgeler */
    --shadow-sm: 0 1px 3px rgba(15, 52, 96, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 52, 96, 0.08);
    --shadow-lg: 0 8px 30px rgba(15, 52, 96, 0.12);
    --shadow-xl: 0 16px 48px rgba(15, 52, 96, 0.16);

    /* Tipografi - 40+ yas icin buyuk boyutlar */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 0.85rem;    /* 13.6px */
    --font-size-sm: 0.95rem;    /* 15.2px */
    --font-size-base: 1.1rem;   /* 17.6px */
    --font-size-lg: 1.25rem;    /* 20px */
    --font-size-xl: 1.5rem;     /* 24px */
    --font-size-2xl: 1.85rem;   /* 29.6px */
    --font-size-3xl: 2.25rem;   /* 36px */
    --font-size-4xl: 2.75rem;   /* 44px */

    /* Araliklar */
    --space-xs: 0.35rem;
    --space-sm: 0.65rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Kenar Yuvarlakligi */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Gecisler */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Sidebar Genisligi */
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --header-height: 72px;
}

/* -- DARK MODE -- */
[data-theme="dark"] {
    /* Ana Renkler */
    --primary: #4B8FD9;
    --primary-light: #6BABEF;
    --primary-dark: #2A6BC5;
    --primary-surface: rgba(75, 143, 217, 0.12);

    /* Vurgu Renkleri */
    --accent: #F5A623;
    --accent-light: #FFD07B;
    --accent-dark: #D48B0A;

    /* Durum Renkleri */
    --success: #2ECC71;
    --success-surface: rgba(46, 204, 113, 0.12);
    --warning: #F39C12;
    --warning-surface: rgba(243, 156, 18, 0.12);
    --danger: #E74C3C;
    --danger-surface: rgba(231, 76, 60, 0.12);
    --info: #3498DB;
    --info-surface: rgba(52, 152, 219, 0.12);

    /* Notr Renkler */
    --bg-body: #0D1117;
    --bg-card: #161B22;
    --bg-sidebar: #0D1117;
    --bg-header: #161B22;
    --bg-input: #1C2333;

    --text-primary: #E6EDF3;
    --text-secondary: #8B949E;
    --text-muted: #6E7681;
    --text-inverse: #FFFFFF;

    --border-color: #30363D;
    --border-light: #21262D;

    /* Golgeler */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
}

/* Dark mode ozel ayarlar */
[data-theme="dark"] .auth-page {
    background: linear-gradient(135deg, #0D1117 0%, #161B22 50%, #1C2333 100%);
}

[data-theme="dark"] .badge-success { color: #2ECC71; }
[data-theme="dark"] .badge-warning { color: #F39C12; }
[data-theme="dark"] .badge-danger { color: #E74C3C; }
[data-theme="dark"] .badge-info { color: #3498DB; }

[data-theme="dark"] .stat-card-icon.blue { background: linear-gradient(135deg, #2A6BC5, #4B8FD9); }
[data-theme="dark"] .btn-primary { background: linear-gradient(135deg, #2A6BC5 0%, #4B8FD9 100%); box-shadow: 0 4px 15px rgba(75, 143, 217, 0.3); }
[data-theme="dark"] .btn-primary:hover { box-shadow: 0 6px 22px rgba(75, 143, 217, 0.4); }
[data-theme="dark"] .btn-secondary { background: var(--bg-input); border-color: var(--border-color); }

[data-theme="dark"] .sidebar { border-right: 1px solid var(--border-color); }
[data-theme="dark"] .sidebar-link.active { box-shadow: 0 4px 15px rgba(75, 143, 217, 0.3); }

[data-theme="dark"] .table tbody tr:hover { background: rgba(75, 143, 217, 0.08); }
[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus { box-shadow: 0 0 0 4px rgba(75, 143, 217, 0.15); }

[data-theme="dark"] .landing-hero { background: linear-gradient(135deg, #0D1117 0%, #161B22 50%, #1C2333 100%); }
[data-theme="dark"] .landing-nav { background: rgba(13, 17, 23, 0.95); border-bottom-color: var(--border-color); }
[data-theme="dark"] .landing-feature-card { background: var(--bg-card); border-color: var(--border-color); }
[data-theme="dark"] .landing-footer { background: #0D1117; }

/* Tema Toggle Butonu */
.theme-toggle {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
}
.theme-toggle:hover {
    background: var(--bg-input);
    color: var(--accent);
}
.theme-toggle .icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-toggle:hover .icon {
    transform: rotate(30deg);
}

/* Tema Ayar Karti */
.theme-option-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-input);
}
.theme-option-card:hover {
    border-color: var(--primary);
    background: var(--primary-surface);
}
.theme-option-card.active {
    border-color: var(--primary);
    background: var(--primary-surface);
    box-shadow: 0 0 0 4px rgba(75, 143, 217, 0.15);
}
.theme-option-card .theme-preview {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.theme-preview-light {
    background: #F4F6FA;
    border: 2px solid #E2E6EF;
    color: #1A1D26;
}
.theme-preview-dark {
    background: #161B22;
    border: 2px solid #30363D;
    color: #E6EDF3;
}
.theme-preview-auto {
    background: linear-gradient(135deg, #F4F6FA 50%, #161B22 50%);
    border: 2px solid #E2E6EF;
    position: relative;
    overflow: hidden;
}
.theme-preview-auto .icon {
    color: #1B4D8E;
}


/* -- Reset & Base -- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background-color: var(--bg-body);
    line-height: 1.65;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    display: block;
}

/* -- Tipografi -- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}
h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}


/* -- Material Symbols (Ikonlar) -- */
.icon {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}
.icon-sm { font-size: 20px; }
.icon-lg { font-size: 32px; }
.icon-xl { font-size: 40px; }


/* ==============================================================
   BUTONLAR - Buyuk ve rahat tiklanabilir
   ============================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    min-height: 52px;
    text-decoration: none;
    user-select: none;
    position: relative;
    overflow: hidden;
}
.btn:active {
    transform: scale(0.97);
}

/* Ana Buton */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-inverse);
    box-shadow: 0 4px 15px rgba(27, 77, 142, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 6px 22px rgba(27, 77, 142, 0.4);
    transform: translateY(-1px);
    color: var(--text-inverse);
}

/* Ikincil Buton */
.btn-secondary {
    background: var(--bg-card);
    color: var(--primary);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background: var(--primary-surface);
    border-color: var(--primary);
    color: var(--primary);
}

/* Vurgu Buton */
.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #1A1D26;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}
.btn-accent:hover {
    box-shadow: 0 6px 22px rgba(245, 166, 35, 0.4);
    transform: translateY(-1px);
}

/* Tehlike Buton */
.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #C0392B 100%);
    color: var(--text-inverse);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}
.btn-danger:hover {
    box-shadow: 0 6px 22px rgba(231, 76, 60, 0.4);
    transform: translateY(-1px);
    color: var(--text-inverse);
}

/* Basari Buton */
.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #27AE60 100%);
    color: var(--text-inverse);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}
.btn-success:hover {
    box-shadow: 0 6px 22px rgba(46, 204, 113, 0.4);
    transform: translateY(-1px);
    color: var(--text-inverse);
}

/* Ghost Buton */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover {
    background: var(--bg-input);
    color: var(--text-primary);
}

/* Boyutlar */
.btn-sm {
    padding: 10px 20px;
    font-size: var(--font-size-sm);
    min-height: 42px;
}
.btn-lg {
    padding: 18px 36px;
    font-size: var(--font-size-lg);
    min-height: 60px;
}
.btn-xl {
    padding: 22px 44px;
    font-size: var(--font-size-xl);
    min-height: 68px;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}


/* ==============================================================
   FORM ELEMANLARI - Buyuk, rahat, okunakli
   ============================================================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.form-label .required {
    color: var(--danger);
    margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    min-height: 52px;
    outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(27, 77, 142, 0.1);
}
.form-input::placeholder {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.form-error {
    font-size: var(--font-size-sm);
    color: var(--danger);
    margin-top: var(--space-xs);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Input with icon */
.input-icon-wrapper {
    position: relative;
}
.input-icon-wrapper .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
.input-icon-wrapper .form-input {
    padding-left: 50px;
}

/* Checkbox & Radio - Buyuk */
.form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 0;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 24px;
    height: 24px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}
.form-check-label {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}


/* ==============================================================
   KARTLAR
   ============================================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
}
.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}
.card-header h3,
.card-header h4 {
    margin: 0;
}

.card-body {
    padding: var(--space-xl);
}

.card-footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-md);
}


/* ==============================================================
   GRID SISTEMI
   ============================================================== */
.grid {
    display: grid;
    gap: var(--space-lg);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ==============================================================
   STAT KARTLARI (Dashboard)
   ============================================================== */
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    transition: all var(--transition-base);
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-card-icon .icon {
    font-size: 28px;
    color: var(--text-inverse);
}
.stat-card-icon.blue { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.stat-card-icon.green { background: linear-gradient(135deg, var(--success), #27AE60); }
.stat-card-icon.orange { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.stat-card-icon.red { background: linear-gradient(135deg, var(--danger), #C0392B); }
.stat-card-icon.purple { background: linear-gradient(135deg, #8E44AD, #9B59B6); }

.stat-card-content {
    flex: 1;
    min-width: 0;
}
.stat-card-label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.stat-card-value {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}
.stat-card-change {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.stat-card-change.up { color: var(--success); }
.stat-card-change.down { color: var(--danger); }


/* ==============================================================
   TABLO
   ============================================================== */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-base);
}
.table thead th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-input);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}
.table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}
.table tbody tr:last-child td {
    border-bottom: none;
}
.table tbody tr:hover {
    background: var(--primary-surface);
}
.table tbody tr {
    transition: background var(--transition-fast);
}

/* Durum Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    white-space: nowrap;
}
.badge-success {
    background: var(--success-surface);
    color: #1B7A41;
}
.badge-warning {
    background: var(--warning-surface);
    color: #8A6D12;
}
.badge-danger {
    background: var(--danger-surface);
    color: #922B21;
}
.badge-info {
    background: var(--info-surface);
    color: #1A5276;
}
.badge-neutral {
    background: var(--bg-input);
    color: var(--text-secondary);
}


/* ==============================================================
   ADMIN HORIZONTAL TOP NAV
   ============================================================== */
.admin-topnav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--bg-sidebar);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.topnav-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    height: 60px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Brand */
.topnav-left { display: flex; align-items: center; flex-shrink: 0; }
.topnav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}
.topnav-brand-logo {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.topnav-brand-logo .icon { font-size: 20px; color: #1A1D26; }
.topnav-brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px; }

/* Center nav links */
.topnav-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.topnav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.topnav-links::-webkit-scrollbar { display: none; }

.topnav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    position: relative;
}
.topnav-btn .icon {
    font-size: 20px;
    flex-shrink: 0;
}
.topnav-btn:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
}
.topnav-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 2px 12px rgba(27, 77, 142, 0.4);
    font-weight: 600;
}

/* Right side - profile */
.topnav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.topnav-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}
.topnav-profile-info {
    text-align: right;
    line-height: 1.2;
}
.topnav-profile-info .sidebar-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}
.topnav-profile-info .sidebar-user-role {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    opacity: 1;
}
.topnav-logout {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    color: rgba(255,255,255,0.4);
    transition: all 0.2s;
    text-decoration: none;
}
.topnav-logout:hover {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
}
.topnav-hamburger {
    display: none;
    width: 40px; height: 40px;
    border: none; background: transparent;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.topnav-hamburger:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.admin-topnav .theme-toggle {
    width: 36px; height: 36px;
    color: rgba(255,255,255,0.5);
    border-radius: 8px;
}
.admin-topnav .theme-toggle:hover {
    background: rgba(255,255,255,0.08);
    color: var(--accent);
}

/* Admin page wrapper (replaces layout-dashboard) */
.admin-page-wrap {
    min-height: calc(100vh - 60px);
    background: var(--bg-body);
}

/* ==============================================================
   SIDEBAR (Yan Menu) - DEVRE DISI
   ============================================================== */
.layout-dashboard {
    display: block;
    min-height: 100vh;
}

.sidebar {
    display: none !important;
}
.sidebar-overlay {
    display: none !important;
}

.sidebar-brand, .sidebar-nav, .sidebar-section, .sidebar-link,
.sidebar-footer, .sidebar-brand-logo, .sidebar-brand-name, .sidebar-brand-sub,
.sidebar-section-title, .sidebar-link-badge { /* keep declarations for avatar/username reuse */ }

.sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-base);
    flex-shrink: 0;
}
.sidebar-user-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
}
.sidebar-user-role {
    font-size: var(--font-size-xs);
    opacity: 0.5;
}


/* ==============================================================
   ANA ICERIK ALANI
   ============================================================== */
.main-content {
    flex: 1;
    margin-left: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ust Bar */
.top-bar {
    height: var(--header-height);
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-2xl);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.top-bar-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.top-bar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}
.top-bar-breadcrumb span {
    color: var(--text-muted);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.top-bar-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
}
.top-bar-icon-btn:hover {
    background: var(--bg-input);
    color: var(--primary);
}
.top-bar-icon-btn .notification-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--bg-header);
}

/* Hamburger Menu (mobil) */
.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 28px;
}

/* Sayfa Icerigi */
.page-content {
    flex: 1;
    padding: var(--space-2xl);
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.page-title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
}
.page-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 4px;
}

/* Grid */
.grid {
    display: grid;
    gap: var(--space-lg);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }


/* ==============================================================
   GIRIS / KAYIT SAYFALARI
   ============================================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(245, 166, 35, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.auth-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-3xl);
    color: var(--text-inverse);
    position: relative;
    z-index: 1;
}

.auth-left h1 {
    color: var(--text-inverse);
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-lg);
}
.auth-left p {
    color: rgba(255,255,255,0.75);
    font-size: var(--font-size-lg);
    max-width: 480px;
}

.auth-features {
    list-style: none;
    margin-top: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}
.auth-features li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-size-lg);
    color: rgba(255,255,255,0.85);
}
.auth-features li .icon {
    color: var(--accent);
    font-size: 28px;
}

.auth-right {
    width: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-2xl);
    box-shadow: var(--shadow-xl);
}

.auth-card-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-xs);
    text-align: center;
}
.auth-card-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: var(--space-2xl);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}
.auth-footer a {
    font-weight: 600;
    color: var(--primary);
}


/* ==============================================================
   URUN KARTLARI
   ============================================================== */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-card-image {
    width: 100%;
    height: 220px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card-image .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

.product-card-body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-category {
    font-size: var(--font-size-xs);
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
}

.product-card-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
    color: var(--text-primary);
}

.product-card-stock {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 6px;
}
.product-card-stock .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.product-card-stock .dot.green { background: var(--success); }
.product-card-stock .dot.red { background: var(--danger); }
.product-card-stock .dot.orange { background: var(--warning); }

.product-card-footer {
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.product-card-price {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--primary);
}
.product-card-price .unit {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-muted);
}


/* ==============================================================
   URUN DETAY
   ============================================================== */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.quantity-selector button {
    width: 52px;
    height: 52px;
    border: none;
    background: var(--bg-input);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    transition: background var(--transition-fast);
}
.quantity-selector button:hover {
    background: var(--primary-surface);
    color: var(--primary);
}
.quantity-selector input {
    width: 70px;
    height: 52px;
    border: none;
    border-left: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    text-align: center;
    font-size: var(--font-size-lg);
    font-weight: 700;
    font-family: var(--font-family);
    outline: none;
    background: var(--bg-card);
}


/* ==============================================================
   SEPET
   ============================================================== */
.cart-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}
.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    flex-shrink: 0;
    overflow: hidden;
}
.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-name {
    font-size: var(--font-size-lg);
    font-weight: 600;
}
.cart-item-meta {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.cart-item-price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.cart-summary {
    background: var(--primary-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    font-size: var(--font-size-lg);
}
.cart-summary-row.total {
    border-top: 2px solid var(--primary);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    font-size: var(--font-size-xl);
    font-weight: 800;
}


/* ==============================================================
   MODAL / DIYALOG
   ============================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 37, 64, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: transform var(--transition-base);
}
.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 {
    margin: 0;
}
.modal-close {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}
.modal-close:hover {
    background: var(--danger-surface);
    color: var(--danger);
}

.modal-body {
    padding: var(--space-xl);
}

.modal-footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
}


/* ==============================================================
   BILDIRIM / ALERT
   ============================================================== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    margin-bottom: var(--space-lg);
}
.alert-success {
    background: var(--success-surface);
    color: #1B7A41;
    border: 1px solid #A3E4BA;
}
.alert-warning {
    background: var(--warning-surface);
    color: #8A6D12;
    border: 1px solid #F5D78E;
}
.alert-danger {
    background: var(--danger-surface);
    color: #922B21;
    border: 1px solid #F1948A;
}
.alert-info {
    background: var(--info-surface);
    color: #1A5276;
    border: 1px solid #85C1E9;
}


/* ==============================================================
   PAGINATION (Sayfalama) - Buyuk butonlar
   ============================================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-xl) 0;
}
.pagination-btn {
    width: 48px;
    height: 48px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.pagination-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-surface);
}
.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-inverse);
}


/* ==============================================================
   SEARCH BAR - Arama Cubugu
   ============================================================== */
.search-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition-fast);
    max-width: 480px;
}
.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(27, 77, 142, 0.1);
}
.search-bar .icon {
    padding: 14px 16px;
    color: var(--text-muted);
}
.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 16px 14px 0;
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    background: transparent;
}
.search-bar input::placeholder {
    color: var(--text-muted);
}


/* ==============================================================
   TAB SISTEMI
   ============================================================== */
.tabs {
    display: flex;
    gap: var(--space-xs);
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
}
.tab {
    padding: 14px 24px;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
    white-space: nowrap;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    gap: 8px;
}
.tab:hover {
    color: var(--primary);
}
.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}


/* ==============================================================
   EMPTY STATE
   ============================================================== */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
}
.empty-state .icon {
    font-size: 72px;
    color: var(--text-muted);
    opacity: 0.4;
    margin-bottom: var(--space-lg);
}
.empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}
.empty-state p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto var(--space-xl);
}


/* ==============================================================
   LOADING / SKELETON
   ============================================================== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-input) 25%,
        var(--border-light) 50%,
        var(--bg-input) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}


/* ==============================================================
   SCROLLBAR
   ============================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}


/* ==============================================================
   YARDIMCI SINIFLAR (Utility)
   ============================================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.w-full { width: 100%; }
.flex-1 { flex: 1; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}


/* ==============================================================
   RESPONSIVE TASARIM
   ============================================================== */

/* Tablet (< 1024px) */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }

    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; max-width: 100vw; overflow-x: hidden; }
    .menu-toggle { display: flex; }

    .sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; display: none; }
    .sidebar-overlay.active { display: block; }

    .auth-left { display: none; }
    .auth-right { width: 100%; }

    .page-content { padding: var(--space-xl); }
    .top-bar { padding: 0 var(--space-xl); }

    /* TOPNAV - tablet: hide labels */
    .topnav-btn-label { display: none; }
    .topnav-btn { padding: 8px 10px; }
    .topnav-profile-info { display: none; }
}

/* TOPNAV - mobile collapse */
@media (max-width: 768px) {
    .topnav-hamburger { display: flex; }
    .topnav-center {
        position: absolute;
        top: 60px; left: 0; right: 0;
        background: var(--bg-sidebar);
        border-bottom: 1px solid rgba(255,255,255,0.06);
        box-shadow: 0 8px 24px rgba(0,0,0,0.25);
        display: none;
        padding: 12px;
        z-index: 199;
    }
    .topnav-center.open { display: flex; }
    .topnav-links { flex-direction: column; width: 100%; gap: 4px; }
    .topnav-btn { width: 100%; padding: 12px 16px; border-radius: 10px; font-size: 0.95rem; }
    .topnav-btn .icon { font-size: 22px; }
    .topnav-btn-label { display: inline; }
    .topnav-profile-info { display: none; }
    .admin-topnav { position: relative; }
}

/* Telefon (< 640px) */
@media (max-width: 640px) {
    :root {
        --font-size-base: 0.9rem;
        --font-size-sm: 0.78rem;
        --font-size-lg: 1.05rem;
        --font-size-xl: 1.2rem;
        --font-size-2xl: 1.4rem;
        --font-size-3xl: 1.7rem;
        --font-size-4xl: 2rem;
        --space-lg: 14px;
        --space-xl: 18px;
        --space-2xl: 24px;
        --space-3xl: 32px;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: 1fr;
    }

    /* Top Bar */
    .top-bar {
        padding: 0 12px;
        height: 56px;
    }
    .top-bar-right {
        gap: 2px;
    }
    .top-bar-icon-btn {
        width: 38px;
        height: 38px;
    }
    .top-bar-icon-btn .icon {
        font-size: 20px;
    }
    .theme-toggle {
        width: 38px;
        height: 38px;
    }
    .page-title {
        font-size: var(--font-size-xl);
    }
    .breadcrumb {
        font-size: 0.75rem;
    }

    /* Sidebar */
    .sidebar {
        width: 240px;
    }
    .sidebar-brand-name {
        font-size: 1.2rem;
    }

    /* Page Content */
    .page-content {
        padding: 12px;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 16px;
        gap: 8px;
    }
    /* Grid Mobil */
    .grid { gap: 8px; }
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }

    /* Stat Kartlari */
    .stat-card {
        padding: 10px;
        min-width: 0;
    }
    .stat-card-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    .stat-card-icon .icon {
        font-size: 16px;
    }
    .stat-card-value {
        font-size: 1.15rem;
    }
    .stat-card-label {
        font-size: 0.6rem;
    }
    .stat-card-change {
        font-size: 0.65rem;
    }

    /* Tablo */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Kartlar */
    .card-header {
        padding: 14px;
    }
    .card-body {
        padding: 14px;
    }
    .card-footer {
        padding: 14px;
    }

    /* Tablo */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table {
        font-size: 0.8rem;
        min-width: 500px;
    }
    .table th,
    .table td {
        padding: 10px 8px;
    }

    /* Butonlar */
    .btn {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    .btn-sm {
        min-height: 36px;
        padding: 6px 12px;
        font-size: 0.78rem;
    }
    .btn-lg {
        min-height: 48px;
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    .btn-xl {
        min-height: 52px;
        padding: 14px 28px;
        font-size: 1rem;
    }

    /* Form Elemanlari */
    .form-input,
    .form-select,
    .form-textarea {
        padding: 10px 14px;
        min-height: 44px;
        font-size: 0.9rem;
    }

    /* Badge */
    .badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    /* Urun Kartlari */
    .product-card-image {
        height: 160px;
    }
    .product-card-body {
        padding: 12px;
    }
    .product-card-title {
        font-size: 0.9rem;
    }
    .product-card-price {
        font-size: 1.1rem;
    }

    /* Sepet */
    .cart-item {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Auth Sayfalari */
    .auth-card {
        padding: 20px;
        margin: 12px;
    }
    .auth-card-title {
        font-size: 1.3rem;
    }
    .auth-page {
        padding: 0;
    }
    .auth-right {
        padding: 16px;
    }

    /* Musteri navigasyon */
    .customer-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
        padding: 0 8px;
    }
    .customer-nav-link {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 8px 10px;
    }
    .customer-nav-link .icon {
        font-size: 18px;
    }

    /* Kategori pilleri */
    .category-pills {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        gap: 6px;
        padding-bottom: 4px;
    }

    /* Modal / Popup */
    .modal-content {
        margin: 8px;
        max-height: 90vh;
    }

    /* Tabs */
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .tab {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    /* Pagination */
    .pagination {
        gap: 4px;
    }
    .pagination-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    /* Arama */
    .search-bar {
        max-width: 100%;
    }
    .search-bar input {
        padding: 10px 12px 10px 0;
        font-size: 0.85rem;
    }
    .search-bar .icon {
        padding: 10px 12px;
    }

    /* Kritik stok */
    .critical-stock-item {
        padding: 10px;
    }

    /* Toast */
    #toast-container {
        left: 12px;
        right: 12px;
        top: 12px;
    }

    /* Ayarlar modal */
    .theme-option-card {
        padding: 12px 14px;
        gap: 12px;
    }
    .theme-option-card .theme-preview {
        width: 40px;
        height: 40px;
    }
}
