/* ============================================================
   INCI - Modern Light Theme
   Clean, Professional, Premium Admin Panel
   ============================================================ */

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-50: #e0e7ff;
    --primary-100: #c7d2fe;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --secondary: #64748b;
    --success: #059669;
    --success-light: #ecfdf5;
    --success-bg: #d1fae5;
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --danger-bg: #fee2e2;
    --warning: #d97706;
    --warning-light: #fffbeb;
    --warning-bg: #fef3c7;
    --info: #0284c7;
    --info-light: #f0f9ff;
    --info-bg: #e0f2fe;

    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-solid: #ffffff;
    --bg-sidebar: #1e293b;
    --bg-sidebar-hover: rgba(255,255,255,0.06);
    --bg-sidebar-active: rgba(99,102,241,0.15);
    --bg-input: #ffffff;
    --bg-hover: #f8fafc;
    --bg-light: #f8fafc;
    --bg-muted: #f1f5f9;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    --text-sidebar: #94a3b8;

    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-focus: var(--primary);

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);

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

    --sidebar-width: 260px;
    --header-height: 64px;
    --transition: all 0.2s ease;
    --transition-fast: all 0.15s ease;

    --gradient-1: linear-gradient(135deg, #4f46e5, #7c3aed);
    --gradient-2: linear-gradient(135deg, #0284c7, #4f46e5);
    --gradient-3: linear-gradient(135deg, #dc2626, #ea580c);
    --gradient-sidebar: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--bg-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ============================================================
   LOGIN SAYFASI (Dark - Ayri Tema)
   ============================================================ */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050a18;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }

.login-bg .orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.5;
    animation: orbFloat 12s ease-in-out infinite alternate;
}
.login-bg .orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(99,102,241,0.4), transparent 70%); top: -15%; right: -10%; animation-duration: 14s; }
.login-bg .orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(139,92,246,0.35), transparent 70%); bottom: -10%; left: -8%; animation-duration: 18s; animation-delay: -4s; }
.login-bg .orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(6,182,212,0.25), transparent 70%); top: 40%; left: 50%; transform: translateX(-50%); animation-duration: 16s; animation-delay: -8s; }

.login-bg .grid-overlay {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(99,102,241,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(99,102,241,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.login-bg .particles { position: absolute; inset: 0; }
.login-bg .particle { position: absolute; width: 3px; height: 3px; background: rgba(99,102,241,0.5); border-radius: 50%; animation: particleFloat 8s ease-in-out infinite; }
.login-bg .particle:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; animation-duration: 10s; }
.login-bg .particle:nth-child(2) { top: 60%; left: 80%; animation-delay: -2s; animation-duration: 12s; }
.login-bg .particle:nth-child(3) { top: 35%; left: 45%; animation-delay: -4s; animation-duration: 9s; width: 2px; height: 2px; }
.login-bg .particle:nth-child(4) { top: 80%; left: 25%; animation-delay: -6s; animation-duration: 11s; }
.login-bg .particle:nth-child(5) { top: 15%; left: 70%; animation-delay: -3s; animation-duration: 13s; width: 4px; height: 4px; opacity: 0.3; }
.login-bg .particle:nth-child(6) { top: 50%; left: 10%; animation-delay: -7s; animation-duration: 14s; }

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
    100% { transform: translate(10px, -10px) scale(1.02); }
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.4; }
    25% { transform: translateY(-30px) translateX(10px); opacity: 0.8; }
    50% { transform: translateY(-15px) translateX(-15px); opacity: 0.3; }
    75% { transform: translateY(-40px) translateX(5px); opacity: 0.7; }
}

.login-container {
    display: flex; width: 100%; max-width: 960px; min-height: 560px;
    border-radius: 24px; overflow: hidden; position: relative; z-index: 1;
    animation: loginEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    box-shadow: 0 0 0 1px rgba(99,102,241,0.15), 0 25px 60px -12px rgba(0,0,0,0.6), 0 0 40px rgba(99,102,241,0.08);
}

@keyframes loginEnter {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-brand-panel {
    flex: 0 0 380px; background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 50%, #0c1222 100%);
    padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; align-items: center;
    position: relative; overflow: hidden;
}
.login-brand-panel::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(99,102,241,0.2) 0%, transparent 50%), radial-gradient(circle at 70% 80%, rgba(139,92,246,0.15) 0%, transparent 50%); }
.login-brand-panel::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(99,102,241,0.3), transparent); }
.login-brand-content { position: relative; z-index: 1; text-align: center; }
.login-brand-logo { margin-bottom: 32px; animation: logoPulse 3s ease-in-out infinite; }
.login-brand-logo img { max-height: 64px; max-width: 220px; filter: drop-shadow(0 0 20px rgba(99,102,241,0.3)); }
.login-brand-icon { width: 80px; height: 80px; background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.2)); border: 1px solid rgba(99,102,241,0.3); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 32px; animation: logoPulse 3s ease-in-out infinite; }
.login-brand-icon svg { color: #818cf8; width: 40px; height: 40px; }

@keyframes logoPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(99,102,241,0.2)); }
    50% { transform: scale(1.03); filter: drop-shadow(0 0 30px rgba(99,102,241,0.35)); }
}

.login-brand-title { font-size: 28px; font-weight: 800; background: linear-gradient(135deg, #e0e7ff, #c7d2fe, #a5b4fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 12px; letter-spacing: -0.5px; }
.login-brand-desc { color: #64748b; font-size: 14px; line-height: 1.7; max-width: 280px; margin: 0 auto; }
.login-brand-features { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 260px; }
.login-brand-feature { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #94a3b8; }
.login-brand-feature-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.login-brand-feature-icon svg { width: 16px; height: 16px; color: #818cf8; }

.login-form-panel {
    flex: 1; background: rgba(15,23,42,0.95); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
    padding: 48px 44px; display: flex; flex-direction: column; justify-content: center;
}
.login-form-header { margin-bottom: 36px; }
.login-form-header h2 { font-size: 24px; font-weight: 700; color: #f1f5f9; margin-bottom: 8px; }
.login-form-header p { color: #64748b; font-size: 14px; }

.login-input-group { position: relative; margin-bottom: 20px; }
.login-input-group .input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #64748b; transition: var(--transition); z-index: 2; pointer-events: none; }
.login-input-group .form-control { padding-left: 48px; height: 52px; font-size: 14px; background: rgba(15,23,42,0.8); border: 1px solid rgba(148,163,184,0.1); border-radius: 12px; color: #f1f5f9; }
.login-input-group .form-control:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.15); background: rgba(15,23,42,1); }
.login-input-group .form-control:focus ~ .input-icon, .login-input-group .form-control:focus + .input-icon { color: #6366f1; }
.login-input-group .form-control::placeholder { color: #475569; }
.login-input-label { display: block; font-size: 12px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }

.login-btn {
    width: 100%; height: 52px; border: none; border-radius: 12px;
    background: var(--gradient-1); color: white; font-size: 15px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; margin-top: 28px;
}
.login-btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent); opacity: 0; transition: opacity 0.3s; }
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(99,102,241,0.4); }
.login-btn:hover::before { opacity: 1; }
.login-btn:active { transform: translateY(0); }
.login-btn svg { transition: transform 0.3s; }
.login-btn:hover svg { transform: translateX(3px); }

.login-footer { text-align: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(148,163,184,0.08); color: #64748b; font-size: 12px; }

.login-card { background: rgba(15,23,42,0.95); backdrop-filter: blur(40px); border: 1px solid rgba(99,102,241,0.15); border-radius: 24px; box-shadow: 0 25px 60px -12px rgba(0,0,0,0.6); width: 100%; max-width: 440px; padding: 48px 40px; animation: loginEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; position: relative; z-index: 1; }
.login-logo { text-align: center; margin-bottom: 36px; }
.login-logo h1 { font-size: 32px; font-weight: 800; background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -1px; }
.login-logo p { color: #94a3b8; font-size: 14px; margin-top: 6px; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 768px) {
    .login-container { flex-direction: column; max-width: 480px; min-height: auto; }
    .login-brand-panel { flex: 0 0 auto; padding: 32px 24px; }
    .login-brand-features { display: none; }
    .login-form-panel { padding: 32px 28px; }
    .login-brand-logo img { max-height: 48px; }
    .login-brand-icon { width: 56px; height: 56px; margin-bottom: 20px; }
    .login-brand-icon svg { width: 28px; height: 28px; }
    .login-brand-title { font-size: 22px; }
    .login-brand-desc { font-size: 13px; }
}
@media (max-width: 480px) {
    .login-container { border-radius: 16px; }
    .login-form-panel { padding: 24px 20px; }
    .login-form-header h2 { font-size: 20px; }
}

/* ============================================================
   FORM ELEMANLARI (Light Theme)
   ============================================================ */

.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-size: 13px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-input);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.form-control::placeholder { color: var(--text-muted); }
.form-control.is-invalid { border-color: var(--danger); }

.form-text { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-text.text-danger { color: var(--danger); }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-control { resize: vertical; min-height: 80px; }

/* Form Section - Grouped */
.page-form-wrapper { max-width: 820px; }

.form-header-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.form-page-title { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.form-page-desc { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

.form-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
}

.form-section:hover { box-shadow: var(--shadow-sm); }

.form-section-header {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
}

.form-section-icon {
    width: 38px; height: 38px; border-radius: var(--radius);
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.form-section-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.form-section-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.form-section-body { padding: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-actions { display: flex; gap: 10px; padding-top: 8px; margin-top: 8px; }

/* ============================================================
   BUTONLAR
   ============================================================ */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 18px; font-size: 13px; font-weight: 500; font-family: inherit;
    border: 1px solid transparent; border-radius: var(--radius);
    cursor: pointer; transition: var(--transition); text-decoration: none;
    white-space: nowrap; line-height: 1.5;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
    background: var(--primary); color: white; border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: white; box-shadow: var(--shadow-sm); }

.btn-secondary { background: white; color: var(--text-secondary); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-light); color: var(--text-primary); }

.btn-success { background: var(--success); color: white; border-color: var(--success); }
.btn-success:hover { background: #047857; color: white; }

.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; color: white; }

.btn-warning { background: var(--warning); color: white; border-color: var(--warning); }
.btn-warning:hover { background: #b45309; color: white; }

.btn-outline { background: white; color: var(--text-secondary); border-color: var(--border); }
.btn-outline:hover { background: var(--bg-light); color: var(--text-primary); border-color: #cbd5e1; }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-icon.btn-sm { width: 30px; height: 30px; }

/* ============================================================
   ALERTS
   ============================================================ */

.alert {
    padding: 12px 16px; border-radius: var(--radius);
    font-size: 13px; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
    border: 1px solid;
}

.alert-success { background: var(--success-light); color: #065f46; border-color: #a7f3d0; }
.alert-danger { background: var(--danger-light); color: #991b1b; border-color: #fecaca; }
.alert-warning { background: var(--warning-light); color: #92400e; border-color: #fde68a; }
.alert-info { background: var(--info-light); color: #075985; border-color: #bae6fd; }

/* ============================================================
   APP LAYOUT
   ============================================================ */

.app-layout { display: flex; min-height: 100vh; background: var(--bg-body); }

/* ============================================================
   SIDEBAR (Dark)
   ============================================================ */

.app-sidebar {
    width: var(--sidebar-width);
    background: var(--gradient-sidebar);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sidebar-header {
    padding: 20px 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.sidebar-logo-img { max-height: 32px; max-width: 150px; }
.sidebar-logo-text { display: flex; align-items: center; gap: 10px; }

.logo-icon {
    width: 34px; height: 34px;
    background: var(--gradient-1); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; color: white;
}
.logo-icon svg { width: 17px; height: 17px; }

.logo-name { font-size: 17px; font-weight: 700; color: white; letter-spacing: -0.3px; }

/* Sidebar Menu */
.sidebar-menu { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px 8px; }
.sidebar-menu::-webkit-scrollbar { width: 3px; }
.sidebar-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.menu-group { margin-bottom: 20px; }

.menu-label {
    font-size: 10px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; color: #64748b;
    padding: 0 12px; margin-bottom: 6px;
}

.menu-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 6px;
    color: #94a3b8; font-size: 13px; font-weight: 500;
    transition: all 0.15s ease; text-decoration: none;
    position: relative; margin-bottom: 1px;
}

.menu-item svg { flex-shrink: 0; opacity: 0.5; transition: opacity 0.15s; width: 18px; height: 18px; }
.menu-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.menu-item:hover { background: rgba(255,255,255,0.06); color: #e2e8f0; }
.menu-item:hover svg { opacity: 0.8; }

.menu-item.active { background: rgba(79,70,229,0.2); color: #a5b4fc; }
.menu-item.active::before {
    content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
    width: 3px; background: #818cf8; border-radius: 0 3px 3px 0;
}
.menu-item.active svg { opacity: 1; color: #a5b4fc; }

.nav-badge {
    margin-left: auto; background: #dc2626; color: white;
    font-size: 10px; font-weight: 600; padding: 1px 7px;
    border-radius: var(--radius-full); min-width: 18px; text-align: center;
}

/* Sidebar Bottom */
.sidebar-bottom { padding: 10px; border-top: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }

.sidebar-user-card {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 8px;
    background: rgba(255,255,255,0.04);
}

.user-avatar {
    width: 32px; height: 32px; border-radius: 6px;
    background: var(--gradient-1); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 12px; flex-shrink: 0;
}

.user-meta { flex: 1; min-width: 0; }
.user-name { font-size: 12px; font-weight: 600; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: #64748b; }

.user-logout { color: #64748b; padding: 4px; border-radius: 4px; transition: all 0.15s; flex-shrink: 0; }
.user-logout:hover { color: #f87171; background: rgba(248,113,113,0.1); }

/* Sidebar Overlay (mobile) */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }
.sidebar-overlay.active { display: block; }

/* ============================================================
   APP HEADER (Light)
   ============================================================ */

.app-main {
    flex: 1; margin-left: var(--sidebar-width);
    display: flex; flex-direction: column;
    min-height: 100vh; min-width: 0;
}

.app-header {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px;
    position: sticky; top: 0; z-index: 50;
    flex-shrink: 0;
}

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

.sidebar-toggle {
    display: none; background: none; border: none;
    color: var(--text-secondary); cursor: pointer; padding: 6px; border-radius: 6px;
}
.sidebar-toggle:hover { background: var(--bg-light); color: var(--text-primary); }

.header-title { font-size: 16px; font-weight: 600; color: var(--text-primary); }

.header-right { display: flex; align-items: center; gap: 8px; }
.header-actions { display: flex; align-items: center; gap: 4px; }

.header-action-btn {
    width: 36px; height: 36px; border-radius: 8px;
    border: 1px solid var(--border); background: white;
    color: var(--text-secondary); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); position: relative;
}
.header-action-btn:hover { background: var(--bg-light); color: var(--text-primary); border-color: #cbd5e1; }

/* User Dropdown */
.header-user-dropdown { position: relative; }

.header-user {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; padding: 4px 10px 4px 4px;
    border-radius: 8px; border: 1px solid var(--border);
    background: white; transition: var(--transition);
}
.header-user:hover { background: var(--bg-light); border-color: #cbd5e1; }

.header-user-avatar {
    width: 30px; height: 30px; border-radius: 6px;
    background: var(--gradient-1); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 11px;
}

.header-user-info { display: flex; flex-direction: column; line-height: 1.2; }
.header-user-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.header-user-role { font-size: 11px; color: var(--text-muted); }

.dropdown-arrow { color: var(--text-muted); transition: transform 0.2s; }
.header-user-dropdown.open .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 6px);
    width: 200px; background: white;
    border: 1px solid var(--border); border-radius: 10px; padding: 4px;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: all 0.15s ease; z-index: 200;
}
.header-user-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: 6px;
    font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: var(--transition-fast);
}
.dropdown-item:hover { background: var(--bg-light); color: var(--text-primary); }
.dropdown-item.text-danger:hover { background: var(--danger-light); color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ============================================================
   APP CONTENT
   ============================================================ */

.app-content { flex: 1; padding: 24px; }

.app-footer {
    padding: 14px 24px; border-top: 1px solid var(--border);
    text-align: center; font-size: 12px; color: var(--text-muted); flex-shrink: 0;
    background: white;
}

/* ============================================================
   KARTLAR (Light)
   ============================================================ */

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.card-header {
    padding: 16px 20px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--bg-light);
}

.card-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--bg-light); }

/* Stat Cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }

.stat-card {
    background: white; border-radius: var(--radius-lg);
    padding: 20px; border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    display: flex; align-items: flex-start; gap: 14px;
    transition: var(--transition); position: relative; overflow: hidden;
}

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

.stat-icon {
    width: 44px; height: 44px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon svg { width: 20px; height: 20px; }

.stat-icon.primary { background: var(--primary-light); color: var(--primary); }
.stat-icon.success { background: var(--success-light); color: var(--success); }
.stat-icon.warning { background: var(--warning-light); color: var(--warning); }
.stat-icon.danger { background: var(--danger-light); color: var(--danger); }
.stat-icon.info { background: var(--info-light); color: var(--info); }

.stat-content { flex: 1; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-weight: 500; }

/* ============================================================
   TABLOLAR
   ============================================================ */

.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table { width: 100%; border-collapse: collapse; }

.table th {
    background: var(--bg-light);
    padding: 10px 16px; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-muted); text-align: left;
    white-space: nowrap; border-bottom: 1px solid var(--border);
}

.table td {
    padding: 12px 16px; font-size: 13px; color: var(--text-primary);
    border-bottom: 1px solid var(--border-light); vertical-align: middle;
}

.table tbody tr { transition: var(--transition-fast); }
.table tbody tr:hover { background: var(--bg-hover); }
.table tbody tr:last-child td { border-bottom: none; }
.table tfoot td { font-weight: 600; background: var(--bg-light); border-top: 2px solid var(--border); }

/* ============================================================
   BADGE
   ============================================================ */

.badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px; font-size: 11px; font-weight: 500;
    border-radius: var(--radius-full); white-space: nowrap;
}

.badge-success { background: var(--success-bg); color: #065f46; }
.badge-danger { background: var(--danger-bg); color: #991b1b; }
.badge-warning { background: var(--warning-bg); color: #92400e; }
.badge-info { background: var(--info-bg); color: #075985; }
.badge-secondary { background: #f1f5f9; color: #475569; }
.badge-primary { background: var(--primary-light); color: var(--primary); }

/* ============================================================
   SAYFALAMA
   ============================================================ */

.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 16px; }

.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 6px;
    border-radius: 6px; font-size: 13px; font-weight: 500;
    color: var(--text-secondary); border: 1px solid var(--border);
    background: white; transition: var(--transition);
}

.pagination a:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); border-color: var(--primary); color: white; }
.pagination .disabled { opacity: 0.3; pointer-events: none; }

/* ============================================================
   FILTRE BAR
   ============================================================ */

.filter-bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 16px; padding: 12px 16px;
    background: white; border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.filter-bar .form-control { max-width: 240px; }
.filter-bar select.form-control { max-width: 200px; }

/* ============================================================
   TABS
   ============================================================ */

.tabs { margin-top: 16px; }

.tab-nav {
    display: flex; gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 16px; overflow-x: auto;
}

.tab-btn, .tab-item {
    padding: 10px 20px; font-size: 13px; font-weight: 500;
    color: var(--text-secondary); border: none; background: none;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    white-space: nowrap; transition: var(--transition); cursor: pointer;
}
.tab-btn:hover, .tab-item:hover { color: var(--primary); }
.tab-btn.active, .tab-item.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeInUp 0.2s ease; }

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state { text-align: center; padding: 48px 20px; color: var(--text-secondary); }
.empty-state svg { width: 56px; height: 56px; color: var(--text-muted); margin-bottom: 12px; opacity: 0.4; }
.empty-state h3 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.empty-state p { font-size: 13px; max-width: 360px; margin: 0 auto; }

/* ============================================================
   UTILITIES
   ============================================================ */

.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); }
.font-bold { font-weight: 600; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 16px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ============================================================
   MODAL (Kept for Company/SubCompany panels)
   ============================================================ */

.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    padding: 20px; animation: fadeIn 0.15s ease;
}

.modal-content {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
    width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto;
    animation: fadeInUp 0.2s ease;
}

.modal-header {
    padding: 18px 22px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 16px; font-weight: 600; color: var(--text-primary); }

.modal-close {
    background: none; border: none; font-size: 22px;
    color: var(--text-muted); cursor: pointer; padding: 4px;
    line-height: 1; border-radius: 6px;
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-light); }

.modal-body { padding: 22px; }

.modal-footer {
    padding: 14px 22px; border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: flex-end; gap: 8px;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.notification-badge {
    position: absolute; top: 4px; right: 4px;
    width: 7px; height: 7px; background: var(--danger);
    border-radius: 50%; border: 2px solid white;
}

.header-notification {
    position: relative; background: none; border: none;
    cursor: pointer; padding: 8px; border-radius: 8px;
    color: var(--text-secondary); transition: var(--transition);
    border: 1px solid var(--border);
}
.header-notification:hover { background: var(--bg-light); color: var(--text-primary); }
.header-notification svg { width: 18px; height: 18px; }

/* ============================================================
   PAGE COMPONENTS (Modern Light)
   ============================================================ */

/* Page Header */
.page-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
}
.page-header-left { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.page-header-right { display: flex; align-items: center; gap: 8px; }
.page-title { font-size: 20px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.page-desc { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* Content Card - Main container for page sections */
.content-card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.content-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
    background: #fafbfc;
}
.content-card-header h3 { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.content-card-body { padding: 20px; }

/* Filter Row */
.filter-row {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px; flex-wrap: wrap;
}
.filter-row .form-control { max-width: 200px; height: 38px; padding: 6px 12px; font-size: 13px; }
.filter-search { position: relative; flex: 0 0 auto; }
.filter-search .form-control { padding-left: 36px; min-width: 200px; }
.filter-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }

/* Data Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    padding: 10px 18px; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-muted); text-align: left;
    background: #fafbfc; border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.data-table td {
    padding: 14px 18px; font-size: 13px; color: var(--text-primary);
    border-bottom: 1px solid #f1f5f9; vertical-align: middle;
}
.data-table tbody tr { transition: background 0.1s; }
.data-table tbody tr:hover { background: #f8fafc; }
.data-table tbody tr:last-child td { border-bottom: none; }
.text-secondary { color: var(--text-secondary); }

/* User Cell (avatar + name/email) */
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell-avatar {
    width: 34px; height: 34px; border-radius: 8px;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 13px; flex-shrink: 0;
}
.user-cell-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.user-cell-email { font-size: 12px; color: var(--text-muted); }

/* Action Buttons */
.action-buttons { display: flex; align-items: center; gap: 4px; justify-content: center; }
.action-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 6px;
    border: 1px solid var(--border); background: white;
    color: var(--text-secondary); cursor: pointer;
    transition: var(--transition-fast);
}
.action-btn:hover { background: var(--bg-light); color: var(--text-primary); border-color: #cbd5e1; }
.action-btn.text-warning:hover { color: var(--warning); border-color: #fde68a; background: var(--warning-light); }
.action-btn.text-success:hover { color: var(--success); border-color: #a7f3d0; background: var(--success-light); }
.action-btn.text-danger:hover { color: var(--danger); border-color: #fecaca; background: var(--danger-light); }

/* Table Footer */
.table-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px; border-top: 1px solid var(--border);
    flex-wrap: wrap; gap: 12px;
}
.table-info { font-size: 12px; color: var(--text-muted); }

/* Form Footer (inside panels) */
.form-footer {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 8px; padding-top: 16px; margin-top: 8px;
    border-top: 1px solid #f1f5f9;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .app-sidebar { transform: translateX(-100%); }
    .app-sidebar.open { transform: translateX(0); }
    .app-main { margin-left: 0; }
    .sidebar-toggle { display: flex; }
    .header-user-info { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .app-header { padding: 0 16px; }
    .app-content { padding: 16px; }
    .app-footer { padding: 10px 16px; }
    .stats-grid { grid-template-columns: 1fr; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-bar .form-control, .filter-bar select.form-control { max-width: 100%; }
    .table th, .table td { padding: 8px 12px; font-size: 12px; }
    .d-flex.justify-between { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
    html { font-size: 13px; }
    .stat-card { padding: 14px; }
    .stat-value { font-size: 20px; }
    .stat-icon { width: 38px; height: 38px; }
    .modal-content { max-width: 100%; }
    .modal-body { padding: 16px; }
}
