/* ==========================================
   İş ve Tasarım Takip Sistemi - Modern Kurumsal Tema
   Light & Dark Mode Desteği
   ========================================== */

/* ==========================================
   LIGHT THEME (VARSAYILAN)
   ========================================== */
:root {
    /* Marka Renkleri */
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;
    --primary-glow: rgba(79, 70, 229, 0.18);
    --primary-surface: rgba(79, 70, 229, 0.06);

    --secondary: #0EA5E9;
    --secondary-light: #7DD3FC;

    --accent: #F43F5E;
    --accent-light: #FDA4AF;

    /* Arka Plan */
    --bg-body: #F8FAFC;
    --bg-sidebar: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F1F5F9;
    --bg-input: #F1F5F9;
    --bg-topbar: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-table-head: #F8FAFC;
    --bg-table-hover: #F1F5F9;
    --bg-overlay: rgba(15, 23, 42, 0.4);

    /* Metin */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-inverse: #FFFFFF;

    /* Durumlar */
    --success: #10B981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --success-border: rgba(16, 185, 129, 0.25);
    --warning: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --warning-border: rgba(245, 158, 11, 0.25);
    --danger: #EF4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --danger-border: rgba(239, 68, 68, 0.25);
    --info: #3B82F6;
    --info-bg: rgba(59, 130, 246, 0.1);
    --info-border: rgba(59, 130, 246, 0.25);

    /* Kenar & Gölge */
    --border: #E2E8F0;
    --border-active: rgba(79, 70, 229, 0.4);
    --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-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px var(--primary-glow);

    /* Boyutlar */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --sidebar-width: 270px;

    /* Animasyon */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;

    /* Scrollbar */
    --scrollbar-track: #F1F5F9;
    --scrollbar-thumb: #CBD5E1;
    --scrollbar-thumb-hover: #94A3B8;
}

/* ==========================================
   DARK THEME
   ========================================== */
[data-theme="dark"] {
    --bg-body: #0C111D;
    --bg-sidebar: #131928;
    --bg-card: #131928;
    --bg-card-hover: #1A2237;
    --bg-input: #1A2237;
    --bg-topbar: rgba(19, 25, 40, 0.88);
    --bg-glass: rgba(19, 25, 40, 0.75);
    --bg-table-head: #1A2237;
    --bg-table-hover: rgba(79, 70, 229, 0.06);
    --bg-overlay: rgba(0, 0, 0, 0.6);

    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --text-inverse: #0F172A;

    --border: rgba(255, 255, 255, 0.08);
    --border-active: rgba(79, 70, 229, 0.5);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.45);

    --scrollbar-track: #1A2237;
    --scrollbar-thumb: #334155;
    --scrollbar-thumb-hover: #475569;

    --primary-surface: rgba(79, 70, 229, 0.12);
}

/* ==========================================
   RESET & GENEL
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.35s ease, color 0.35s ease;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--primary);
    color: #fff;
}

/* ==========================================
   TİPOGRAFİ
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

p {
    color: var(--text-secondary);
}

/* ==========================================
   LAYOUT - APP SHELL
   ========================================== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.35s ease;
    box-shadow: var(--shadow-sm);
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-brand .brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.sidebar-brand .brand-text {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.sidebar-brand .brand-text span {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 14px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 28px;
}

.nav-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 3px;
    position: relative;
}

.nav-item:hover {
    background: var(--primary-surface);
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary-surface);
    color: var(--primary);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--primary);
}

.nav-item .nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--primary-surface);
}

.user-info-link {
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.user-info-link:hover {
    background: var(--bg-input);
    box-shadow: var(--shadow-xs);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-details .user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-details .user-role {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================
   ANA İÇERİK ALANI
   ========================================== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: var(--bg-topbar);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background-color 0.35s ease;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-left h1 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.topbar-left p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.content-area {
    padding: 32px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   GECE/GÜNDÜZ TOGGLE
   ========================================== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--primary-surface);
    border-color: var(--border-active);
    color: var(--primary);
    transform: rotate(20deg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
}

/* Light mode: güneş gizli, ay görünür */
.theme-toggle .icon-moon {
    display: inline;
}
.theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}
[data-theme="dark"] .theme-toggle .icon-sun {
    display: inline;
}

/* ==========================================
   KARTLAR
   ========================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.card:hover {
    border-color: var(--border-active);
    box-shadow: var(--shadow-md);
}

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

.card-header h2,
.card-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

/* İstatistik Kartları */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

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

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-active);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    color: var(--primary);
}

.stat-icon svg,
.stat-icon i {
    width: 24px;
    height: 24px;
}

.stat-icon.purple { color: var(--primary); }
.stat-icon.teal { color: var(--secondary); }
.stat-icon.pink { color: var(--accent); }
.stat-icon.blue { color: var(--info); }

/* Sidebar nav icon boyutlandırma */
.nav-icon svg,
.nav-icon i {
    width: 18px;
    height: 18px;
}

/* Topbar date */
.topbar-date {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.stat-icon.purple { background: rgba(79, 70, 229, 0.1); }
.stat-icon.teal { background: rgba(14, 165, 233, 0.1); }
.stat-icon.pink { background: rgba(244, 63, 94, 0.1); }
.stat-icon.blue { background: rgba(59, 130, 246, 0.1); }

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

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

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

thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    background: var(--bg-table-head);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

tbody tr {
    transition: var(--transition-fast);
}

tbody tr:hover {
    background: var(--bg-table-hover);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ==========================================
   BADGE / ETİKETLER
   ========================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: var(--success-border);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border-color: var(--warning-border);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: var(--danger-border);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info);
    border-color: var(--info-border);
}

.badge-primary {
    background: var(--primary-surface);
    color: var(--primary);
    border-color: rgba(79, 70, 229, 0.2);
}

/* ==========================================
   BUTONLAR
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.4;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

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

.btn-success {
    background: var(--success);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
    color: #fff;
}

.btn-warning {
    background: var(--warning);
    color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: var(--radius-xs);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-icon {
    padding: 8px;
    width: 36px;
    height: 36px;
}

.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ==========================================
   FORMLAR
   ========================================== */
.form-group {
    margin-bottom: 20px;
}

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

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

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: var(--bg-card);
}

.form-control::placeholder {
    color: var(--text-muted);
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* ==========================================
   MODAL
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.05rem;
}

.modal-close {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-xs);
    transition: var(--transition-fast);
    line-height: 1;
}

.modal-close:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: var(--danger-bg);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ==========================================
   FLASH MESAJLAR (ALERTS)
   ========================================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.35s ease;
    border: 1px solid transparent;
}

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

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: var(--success-border);
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: var(--danger-border);
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border-color: var(--warning-border);
}

.alert-info {
    background: var(--info-bg);
    color: var(--info);
    border-color: var(--info-border);
}

/* ==========================================
   LOGIN SAYFASI
   ========================================== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08), transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.login-wrapper::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.06), transparent 70%);
    bottom: -200px;
    left: -200px;
    pointer-events: none;
}

[data-theme="dark"] .login-wrapper::before {
    background: radial-gradient(circle, rgba(79, 70, 229, 0.2), transparent 70%);
}
[data-theme="dark"] .login-wrapper::after {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15), transparent 70%);
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-xl);
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo .logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
}

.login-logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.login-logo p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.login-card .form-group {
    margin-bottom: 18px;
}

.login-card .form-control {
    padding: 12px 16px;
    font-size: 15px;
}

.login-card .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    margin-top: 8px;
}

/* ==========================================
   PROGRESS BAR (Dosya Yükleme)
   ========================================== */
.progress-wrapper {
    margin: 16px 0;
}

.progress-bar {
    height: 8px;
    background: var(--bg-input);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 50px;
    width: 0;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: right;
    font-weight: 500;
}

/* ==========================================
   DOSYA YÜKLEYİCİ (DROPZONE)
   ========================================== */
.upload-dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    background: var(--primary-surface);
}

.upload-dropzone.dragover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.08);
}

.upload-dropzone .dropzone-icon {
    font-size: 44px;
    margin-bottom: 14px;
}

.upload-dropzone .dropzone-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.upload-dropzone .dropzone-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ==========================================
   BOŞ DURUM (EMPTY STATE)
   ========================================== */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================
   SCROLLBAR
   ========================================== */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 50px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* ==========================================
   SIDEBAR TOGGLE (Mobil)
   ========================================== */
.sidebar-toggle {
    display: none;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-xs);
    line-height: 1;
    transition: var(--transition-fast);
}

.sidebar-toggle:hover {
    background: var(--primary-surface);
    color: var(--primary);
}

/* Sidebar overlay (mobil) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: 99;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

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

/* ==========================================
   HEADER (Giriş yapmamışlar için)
   ========================================== */
.public-header {
    display: none;
}

/* ==========================================
   ANİMASYONLAR
   ========================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in {
    animation: fadeIn 0.4s ease;
}

.fade-in-up {
    animation: fadeInUp 0.4s ease;
}

tbody tr {
    animation: fadeInUp 0.3s ease backwards;
}

tbody tr:nth-child(1) { animation-delay: 0.03s; }
tbody tr:nth-child(2) { animation-delay: 0.06s; }
tbody tr:nth-child(3) { animation-delay: 0.09s; }
tbody tr:nth-child(4) { animation-delay: 0.12s; }
tbody tr:nth-child(5) { animation-delay: 0.15s; }
tbody tr:nth-child(6) { animation-delay: 0.18s; }
tbody tr:nth-child(7) { animation-delay: 0.21s; }
tbody tr:nth-child(8) { animation-delay: 0.24s; }
tbody tr:nth-child(9) { animation-delay: 0.27s; }
tbody tr:nth-child(10) { animation-delay: 0.3s; }

/* ==========================================
   LOGOUT BUTONU
   ========================================== */
.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    margin-top: 10px;
    background: none;
    border: none;
    width: 100%;
}

.logout-btn:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

/* ==========================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ========================================== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .content-area {
        padding: 24px;
    }
}

/* ==========================================
   RESPONSIVE - MOBİL (max-width: 768px)
   ========================================== */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 280px;
    }

    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        box-shadow: var(--shadow-xl);
    }

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

    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .topbar {
        padding: 12px 16px;
        gap: 8px;
    }

    .topbar-left {
        flex: 1;
        min-width: 0;
    }

    .topbar-left h1 {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar-left p {
        display: none;
    }

    .topbar-right {
        gap: 8px;
        flex-shrink: 0;
    }

    .topbar-right .topbar-date {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
        flex-direction: column;
        gap: 10px;
    }

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

    .content-area {
        padding: 16px;
    }

    .card {
        padding: 16px;
        border-radius: var(--radius-md);
    }

    .card-header {
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .login-card {
        margin: 16px;
        padding: 32px 24px;
    }

    .btn-group {
        flex-direction: column;
    }

    .modal-overlay {
        padding: 12px;
    }

    .modal {
        max-width: 100%;
        border-radius: var(--radius-md);
    }

    .modal-header {
        padding: 16px 18px;
    }

    .modal-body {
        padding: 18px;
    }

    table {
        font-size: 13px;
    }

    thead th {
        padding: 10px 12px;
        font-size: 10px;
    }

    tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ==========================================
   RESPONSIVE - KÜÇÜK MOBİL (max-width: 480px)
   ========================================== */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: row;
        align-items: center;
    }

    .stat-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    h1 { font-size: 1.3rem; }
    h2 { font-size: 1.15rem; }
    h3 { font-size: 1rem; }

    .login-card {
        margin: 12px;
        padding: 28px 20px;
    }

    .login-logo .logo-icon {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .login-logo h1 {
        font-size: 1.3rem;
    }
}

/* ==========================================
   UTILITY: Tema geçiş animasyonu
   ========================================== */
.sidebar,
.topbar,
.card,
.stat-card,
.modal,
.login-card,
.btn-secondary {
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, color 0.25s ease, transform 0.25s ease;
}
