:root {
    --bg-dark:       #ffffff;
    --bg-dark-2:     #f8fafc;
    --bg-dark-3:     #f1f5f9;
    --sidebar-w:     260px;
    --accent:        #ef4444;
    --accent-dark:   #dc2626;
    --accent-light:  #fef2f2;
    --text-primary:  #0f172a;
    --text-secondary:#475569;
    --text-muted:    #94a3b8;
    --border:        #e2e8f0;
    --card-bg:       #ffffff;
    --page-bg:       #f8fafc;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
    --shadow-md:     0 4px 12px rgba(0,0,0,.05);
    --shadow-lg:     0 10px 30px rgba(0,0,0,.08);
    --radius-sm:     8px;
    --radius-md:     12px;
    --radius-lg:     20px;
    --font:          'Inter', sans-serif;

    /* Tur renkleri */
    --tour-sapanca:  #8b5cf6;
    --tour-bursa:    #3b82f6;
    --tour-sile:     #10b981;
    --tour-kapadokya:#f97316;
    --tour-ada:      #ef4444;
    --tour-dinner:   #f59e0b;
    --tour-transfer: #6b7280;
    --tour-otel:     #06b6d4;
}

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

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

body {
    font-family: var(--font);
    background: var(--page-bg);
    color: #1e293b;
    min-height: 100vh;
    display: flex;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, select, textarea, button { font-family: var(--font); }

/* =================== SIDEBAR ==================== */
.sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    transition: transform .3s ease;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.sidebar-logo {
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--bg-dark-3);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar-logo h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.sidebar-logo span {
    font-size: .7rem;
    color: var(--text-muted);
    font-weight: 400;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
}

.nav-section-label {
    padding: 12px 20px 6px;
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-secondary);
    border-radius: 0;
    font-size: .875rem;
    font-weight: 500;
    transition: all .2s;
    position: relative;
}

.nav-item a i {
    width: 18px;
    text-align: center;
    font-size: .9rem;
}

.nav-item a:hover {
    background: var(--bg-dark-2);
    color: var(--accent);
}

.nav-item a.active {
    background: rgba(16,185,129,.15);
    color: var(--accent);
}

.nav-item a.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
}

.nav-badge {
    margin-left: auto;
    background: var(--accent);
    color: white;
    font-size: .65rem;
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 600;
}

/* Tour-type pills in sidebar */
.tour-pills {
    padding: 8px 12px 12px;
}

.tour-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    margin-bottom: 2px;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background .2s;
}

.tour-pill:hover { background: var(--bg-dark-2); color: var(--text-primary); }

.tour-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

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

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #f87171);
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-weight: 700;
    font-size: .85rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

.sidebar-user-info strong {
    display: block;
    font-size: .8rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.sidebar-user-info span {
    font-size: .7rem;
    color: var(--text-muted);
}

.logout-btn {
    margin-left: auto;
    color: var(--text-muted);
    font-size: .85rem;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all .2s;
}

.logout-btn:hover { color: #ef4444; background: rgba(239,68,68,.1); }

/* =================== MAIN ==================== */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =================== TOPBAR ==================== */
.topbar {
    background: white;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.topbar-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.topbar-breadcrumb {
    font-size: .8rem;
    color: var(--text-muted);
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-date {
    font-size: .8rem;
    color: var(--text-muted);
    background: var(--page-bg);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

/* =================== PAGE CONTENT ==================== */
.page-content {
    padding: 24px;
    flex: 1;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
}

.page-header p {
    font-size: .85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* =================== CARDS ==================== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.card-header {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-header h3 {
    font-size: .95rem;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i {
    color: var(--accent);
    font-size: .85rem;
}

.card-body { padding: 20px; }

/* =================== STAT CARDS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: transform .2s, box-shadow .2s;
}

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

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

.stat-icon.green  { background: rgba(16,185,129,.12); color: var(--accent); }
.stat-icon.blue   { background: rgba(59,130,246,.12); color: #3b82f6; }
.stat-icon.orange { background: rgba(249,115,22,.12);  color: #f97316; }
.stat-icon.red    { background: rgba(239,68,68,.12);   color: #ef4444; }
.stat-icon.purple { background: rgba(139,92,246,.12);  color: #8b5cf6; }
.stat-icon.cyan   { background: rgba(6,182,212,.12);   color: #06b6d4; }
.stat-icon.gold   { background: rgba(245,158,11,.12);  color: #f59e0b; }

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

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.stat-label {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.stat-change {
    font-size: .72rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.up   { color: var(--accent); }
.stat-change.down { color: #ef4444; }

/* =================== GRID LAYOUTS ==================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }

/* =================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .2s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16,185,129,.4);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover { background: #e2e8f0; }

.btn-danger {
    background: #fee2e2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.btn-danger:hover { background: #ef4444; color: white; }

.btn-info {
    background: rgba(6,182,212,.1);
    color: #06b6d4;
    border: 1px solid rgba(6,182,212,.2);
}

.btn-info:hover { background: #06b6d4; color: white; }

.btn-sm { padding: 6px 12px; font-size: .78rem; }
.btn-lg { padding: 12px 24px; font-size: .95rem; }

.btn-icon {
    width: 34px; height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all .2s;
    font-size: .85rem;
}

.btn-icon:hover { background: var(--bg-dark-2); color: white; border-color: var(--bg-dark-2); }
.btn-icon.edit:hover  { background: #3b82f6; border-color: #3b82f6; color: white; }
.btn-icon.delete:hover { background: #ef4444; border-color: #ef4444; color: white; }
.btn-icon.view:hover  { background: #8b5cf6; border-color: #8b5cf6; color: white; }

/* =================== TABLE ==================== */
.table-wrap { overflow-x: auto; }

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

table.data-table thead th {
    background: #f8fafc;
    padding: 11px 14px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

table.data-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background .15s;
}

table.data-table tbody tr:hover { background: #f8fafc; }

table.data-table tbody tr:last-child { border-bottom: none; }

table.data-table td {
    padding: 12px 14px;
    color: #1e293b;
    vertical-align: middle;
}

/* =================== BADGES ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success  { background: #d1fae5; color: #065f46; }
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-info     { background: #cffafe; color: #164e63; }
.badge-secondary{ background: #f1f5f9; color: #475569; }
.badge-purple   { background: #ede9fe; color: #4c1d95; }

.tour-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    border: 1px solid;
}

/* =================== FORMS ==================== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.form-full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-label {
    font-size: .85rem;
    font-weight: 700;
    color: #000000;
}

.form-label .required { color: #ef4444; margin-left: 2px; }

.form-control {
    padding: 9px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
    color: #000000;
    background: white;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}

.form-control::placeholder { color: #64748b; font-weight: 400; }

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

.form-hint {
    font-size: .72rem;
    color: var(--text-muted);
}

.form-section {
    margin-bottom: 24px;
}

.form-section-title {
    font-size: .8rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title i { color: var(--accent); }

/* Number Picker (Plus/Minus) */
.number-picker {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: white;
    height: 40px;
}
.number-picker input {
    border: none;
    border-radius: 0;
    width: 100%;
    text-align: center;
    padding: 0;
    font-weight: 700;
}
.number-picker input:focus {
    box-shadow: none;
}
/* hide arrows */
.number-picker input[type="number"]::-webkit-outer-spin-button,
.number-picker input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.number-picker input[type="number"] {
    -moz-appearance: textfield;
}
.np-btn {
    border: none;
    background: #f1f5f9;
    color: #475569;
    width: 44px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.np-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.np-btn:active {
    background: #cbd5e1;
}

/* =================== FILTERS ==================== */
.filters-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.filter-select {
    padding: 7px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    color: #1e293b;
    background: white;
    cursor: pointer;
    transition: border-color .2s;
}

.filter-select:focus { outline: none; border-color: var(--accent); }

.filter-input {
    padding: 7px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    background: white;
    transition: border-color .2s;
}

.filter-input:focus { outline: none; border-color: var(--accent); }

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 320px;
}

.search-input-wrap i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: .85rem;
}

.search-input-wrap input {
    padding-left: 32px;
    width: 100%;
}

/* =================== MODALS ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    width: 90%;
    max-width: 560px;
    transform: scale(.95) translateY(20px);
    transition: transform .25s;
    overflow: hidden;
}

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

.modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 { font-size: 1rem; font-weight: 600; }

.modal-close {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
    transition: all .2s;
}

.modal-close:hover { background: #ef4444; color: white; }

.modal-body { padding: 20px; }
.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* =================== ALERTS ==================== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: .85rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: #cffafe; color: #164e63; border: 1px solid #a5f3fc; }

/* =================== CHARTS ==================== */
.chart-wrap {
    position: relative;
    height: 240px;
}

/* =================== QUICK STATS BAR ==================== */
.tour-type-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tour-type-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    border: 1.5px solid;
    cursor: pointer;
    transition: all .2s;
}

.tour-type-chip:hover, .tour-type-chip.active {
    color: white !important;
    border-color: transparent !important;
}

/* =================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 48px 20px;
}

.empty-state i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.empty-state h4 {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 6px;
}

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

/* =================== TIMELINE ==================== */
.timeline { padding: 4px 0; }

.timeline-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.timeline-item:last-child { border-bottom: none; }

.timeline-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.timeline-content { flex: 1; }

.timeline-title {
    font-size: .85rem;
    font-weight: 600;
    color: #0f172a;
}

.timeline-meta {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    gap: 12px;
}

/* =================== PAGINATION ==================== */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 14px 20px;
    border-top: 1px solid #f1f5f9;
    justify-content: flex-end;
}

.page-btn {
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    font-size: .82rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all .15s;
}

.page-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.page-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

/* =================== PRINT ==================== */
@media print {
    .sidebar, .topbar, .page-header .actions, .filters-bar { display: none !important; }
    .main-content { margin-left: 0 !important; }
}

/* =================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .grid-2, .grid-3, .grid-1-2, .grid-2-1 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid-3 { grid-template-columns: 1fr; }
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-overlay.open {
    display: block;
    opacity: 1;
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #f1f5f9;
    border: none;
    border-radius: 10px;
    color: #1e293b;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.mobile-nav-toggle:hover {
    background: #e2e8f0;
}

/* Tabs Component (Global) */
.tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
}
.tab-btn {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
}
.tab-btn:hover { color: var(--accent); }
.tab-btn.active {
    border-bottom: 2px solid var(--accent);
    color: var(--accent);
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

@media (max-width: 768px) {
    .sidebar { 
        transform: translateX(-100%); 
        z-index: 1000;
        box-shadow: 20px 0 50px rgba(0,0,0,0.1);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; width: 100%; }
    .topbar { padding: 0 16px; gap: 8px; }
    .topbar-breadcrumb, .topbar-date { display: none; }
    .topbar-title { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .topbar-right { margin-left: auto; gap: 8px; }
    .mobile-nav-toggle { display: flex; }
    
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .tabs::-webkit-scrollbar { display: none; }
    .tab-btn { padding: 10px 15px; font-size: 0.9rem; }

    .stats-grid { grid-template-columns: 1fr; }
    .page-content { padding: 16px; }
    .hide-on-mobile { display: none; }
}

/* =================== LOGIN PAGE REDESIGN ==================== */
/* =================== LOGIN PAGE EVOLUTION ==================== */
.login-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    background-image: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 100%),
        url('../img/bg-login.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 9999;
    overflow: hidden;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 32px;
    padding: 56px 48px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.01),
        0 20px 60px -12px rgba(0, 0, 0, 0.08);
    z-index: 10;
    position: relative;
    display: flex;
    flex-direction: column;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.login-logo-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent), #f87171);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

.login-logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.04em;
    margin: 0;
}

.login-logo p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn:hover {
    background: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

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

/* =================== DETAIL ROW ==================== */
.detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: .875rem;
}

.detail-row:last-child { border-bottom: none; }

.detail-label {
    min-width: 160px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: .8rem;
}

.detail-value {
    color: #0f172a;
    font-weight: 500;
    flex: 1;
}

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

.animate-in, .animate-in-delay-1, .animate-in-delay-2, .animate-in-delay-3, .animate-in-delay-4 {
    animation: fadeInUp .35s ease forwards;
    opacity: 0;
}

.animate-in { animation-delay: 0s; color: inherit; }
.animate-in-delay-1 { animation-delay: .05s; }
.animate-in-delay-2 { animation-delay: .10s; }
.animate-in-delay-3 { animation-delay: .15s; }
.animate-in-delay-4 { animation-delay: .20s; }

/* Utility */
.text-right  { text-align: right; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-green  { color: var(--accent); }
.text-red    { color: #ef4444; }
.text-bold   { font-weight: 700; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.gap-2 { gap: 8px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
