/* ═══════════════════════════════════════════════════════════════════════════
   Ekstre Dashboard — Premium Dark Design System
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* ── Colors ─────────────────────────────────────── */
    --bg-primary: #0f0f23;
    --bg-secondary: #141432;
    --bg-card: rgba(25, 25, 60, 0.6);
    --bg-card-hover: rgba(35, 35, 80, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-input: rgba(255, 255, 255, 0.06);
    --bg-input-focus: rgba(255, 255, 255, 0.1);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.3);

    --text-primary: #e8e8f0;
    --text-secondary: #9898b8;
    --text-muted: #6868a0;
    --text-heading: #ffffff;

    --accent-primary: #6366f1;
    --accent-hover: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.25);
    --accent-success: #22c55e;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-info: #3b82f6;

    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    --gradient-success: linear-gradient(135deg, #22c55e, #16a34a);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-danger: linear-gradient(135deg, #ef4444, #dc2626);

    /* ── Typography ─────────────────────────────────── */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --fs-xs: 0.7rem;
    --fs-sm: 0.8rem;
    --fs-base: 0.9rem;
    --fs-md: 1rem;
    --fs-lg: 1.15rem;
    --fs-xl: 1.4rem;
    --fs-2xl: 1.8rem;
    --fs-3xl: 2.4rem;

    /* ── Spacing ────────────────────────────────────── */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;

    /* ── Radius / Shadow ───────────────────────────── */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);

    /* ── Layout ─────────────────────────────────────── */
    --sidebar-width: 260px;
    --topbar-height: 64px;

    /* ── Transitions ───────────────────────────────── */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.15s var(--ease-out);
    --transition-base: 0.25s var(--ease-out);
    --transition-slow: 0.4s var(--ease-out);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Animated background mesh */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
    animation: bgPulse 20s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

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

a:hover {
    color: var(--accent-hover);
}

/* ── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   LOGIN SCREEN
   ═══════════════════════════════════════════════════════════════════════════ */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--sp-4);
}

.login-container {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--sp-10);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: fadeInUp 0.6s var(--ease-out);
}

.login-logo {
    text-align: center;
    margin-bottom: var(--sp-8);
}

.logo-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: var(--sp-3);
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.login-logo h1 {
    font-size: var(--fs-2xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    margin-top: var(--sp-1);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
}

.login-error {
    color: var(--accent-danger);
    font-size: var(--fs-sm);
    text-align: center;
    padding: var(--sp-2) var(--sp-4);
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.form-group label {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

input,
select,
textarea {
    font-family: var(--font);
    font-size: var(--fs-base);
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--sp-3) var(--sp-4);
    outline: none;
    transition: all var(--transition-fast);
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    background: var(--bg-input-focus);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    font-family: var(--font);
    font-size: var(--fs-sm);
    font-weight: 600;
    padding: var(--sp-3) var(--sp-5);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px var(--accent-glow);
    filter: brightness(1.1);
}

.btn-success {
    background: var(--gradient-success);
    color: #fff;
}

.btn-warning {
    background: var(--gradient-warning);
    color: #fff;
}

.btn-danger {
    background: var(--gradient-danger);
    color: #fff;
}

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

.btn-ghost:hover {
    background: var(--bg-input);
    color: var(--text-primary);
}

.btn-sm {
    padding: var(--sp-2) var(--sp-3);
    font-size: var(--fs-xs);
}

.btn-full {
    width: 100%;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT — SIDEBAR + CONTENT
   ═══════════════════════════════════════════════════════════════════════════ */
.main-app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform var(--transition-base);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-5) var(--sp-5);
    border-bottom: 1px solid var(--border-color);
}

.logo-icon-sm {
    font-size: 1.6rem;
}

.sidebar-title {
    font-size: var(--fs-lg);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-close {
    display: none;
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: var(--fs-lg);
    cursor: pointer;
}

.nav-list {
    list-style: none;
    padding: var(--sp-4) var(--sp-3);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--fs-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--accent-glow);
    color: var(--accent-hover);
    font-weight: 600;
}

.nav-icon {
    font-size: 1.1rem;
}

.sidebar-footer {
    padding: var(--sp-4) var(--sp-5);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.user-name {
    font-weight: 600;
    font-size: var(--fs-sm);
}

.user-role {
    font-size: var(--fs-xs);
}

/* ── Content ───────────────────────────────────────────────────────────── */
.content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    height: var(--topbar-height);
    padding: 0 var(--sp-6);
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    border-bottom: 1px solid var(--border-color);
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
}

.page-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--text-heading);
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.page-content {
    padding: var(--sp-6);
    flex: 1;
    animation: fadeIn 0.3s var(--ease-out);
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPONENTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Badge ─────────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    padding: var(--sp-1) var(--sp-3);
    font-size: var(--fs-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--accent-glow);
    color: var(--accent-hover);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-success);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
}

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    transition: all var(--transition-base);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-4);
}

.card-title {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--text-heading);
}

/* ── Stat Cards ────────────────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--sp-4);
    margin-bottom: var(--sp-6);
}

.stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.stat-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 1.6rem;
}

.stat-label {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--text-heading);
}

.stat-sub {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   UPLOAD ZONE
   ═══════════════════════════════════════════════════════════════════════════ */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--sp-12) var(--sp-8);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--bg-glass);
    position: relative;
    overflow: hidden;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
    box-shadow: var(--shadow-glow);
}

.upload-zone.drag-over {
    transform: scale(1.01);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: var(--sp-4);
    opacity: 0.8;
}

.upload-text {
    font-size: var(--fs-md);
    color: var(--text-secondary);
}

.upload-hint {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin-top: var(--sp-2);
}

.upload-progress {
    margin-top: var(--sp-6);
    display: none;
}

.progress-bar {
    height: 6px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    width: 0%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABLE
   ═══════════════════════════════════════════════════════════════════════════ */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

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

th,
td {
    padding: var(--sp-3) var(--sp-4);
    text-align: left;
    font-size: var(--fs-sm);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--fs-xs);
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
}

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

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

.amount-cell {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.amount-negative {
    color: var(--accent-danger);
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    padding: var(--sp-1) var(--sp-2);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 500;
    background: var(--bg-input);
}

.uncategorized-tag {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
    cursor: pointer;
}

.uncategorized-tag:hover {
    background: rgba(245, 158, 11, 0.25);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--sp-4);
    animation: fadeIn 0.2s var(--ease-out);
}

.modal-overlay.hidden {
    display: none;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--sp-8);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.3s var(--ease-out);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-6);
}

.modal-header h3 {
    font-size: var(--fs-lg);
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: var(--sp-2);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-input);
    color: var(--text-primary);
}

/* ── Detail Grid (inside modals) ─────────────────────────────────────── */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: var(--sp-2) var(--sp-3);
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
}

.detail-label {
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 600px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHARTS
   ═══════════════════════════════════════════════════════════════════════════ */
.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--sp-6);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════════════════════════════════════ */
.tabs {
    display: flex;
    gap: var(--sp-1);
    background: var(--bg-input);
    padding: var(--sp-1);
    border-radius: var(--radius-sm);
    margin-bottom: var(--sp-6);
}

.tab {
    flex: 1;
    padding: var(--sp-2) var(--sp-4);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: var(--fs-sm);
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FILTERS
   ═══════════════════════════════════════════════════════════════════════════ */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-bottom: var(--sp-5);
    align-items: flex-end;
}

.filters-bar .form-group {
    min-width: 150px;
    flex: 1;
}

.filters-bar input,
.filters-bar select {
    padding: var(--sp-2) var(--sp-3);
    font-size: var(--fs-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEXT AREA (for paste)
   ═══════════════════════════════════════════════════════════════════════════ */
.text-paste-area {
    margin-top: var(--sp-6);
}

.text-paste-area textarea {
    min-height: 200px;
    resize: vertical;
    font-family: 'Courier New', monospace;
    font-size: var(--fs-sm);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CATEGORY PICKER (inline)
   ═══════════════════════════════════════════════════════════════════════════ */
.cat-picker {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    padding: var(--sp-3);
}

.cat-option {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.cat-option:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background: var(--accent-glow);
}

/* ═══════════════════════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: var(--sp-12) var(--sp-8);
    color: var(--text-muted);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: var(--sp-4);
    opacity: 0.5;
}

.empty-text {
    font-size: var(--fs-md);
    margin-bottom: var(--sp-2);
}

.empty-hint {
    font-size: var(--fs-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
.toast-container {
    position: fixed;
    top: var(--sp-4);
    right: var(--sp-4);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--sp-4) var(--sp-5);
    font-size: var(--fs-sm);
    min-width: 280px;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s var(--ease-out);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.toast-success {
    border-left: 3px solid var(--accent-success);
}

.toast-error {
    border-left: 3px solid var(--accent-danger);
}

.toast-info {
    border-left: 3px solid var(--accent-info);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-input) 25%, var(--bg-input-focus) 50%, var(--bg-input) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */
.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: var(--sp-2);
}

.gap-3 {
    gap: var(--sp-3);
}

.gap-4 {
    gap: var(--sp-4);
}

.gap-6 {
    gap: var(--sp-6);
}

.mb-4 {
    margin-bottom: var(--sp-4);
}

.mb-6 {
    margin-bottom: var(--sp-6);
}

.mt-4 {
    margin-top: var(--sp-4);
}

.mt-6 {
    margin-top: var(--sp-6);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.font-bold {
    font-weight: 700;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 250px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }

    .sidebar-close {
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .content {
        margin-left: 0;
    }

    .page-content {
        padding: var(--sp-4);
    }

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

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .filters-bar {
        flex-direction: column;
    }

    .filters-bar .form-group {
        min-width: 100%;
    }

    .tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .tab {
        flex: none;
    }

    th,
    td {
        padding: var(--sp-2) var(--sp-3);
        font-size: var(--fs-xs);
    }
}

@media (max-width: 500px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .login-container {
        padding: var(--sp-6);
    }

    .modal {
        padding: var(--sp-5);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */
.mb-6 {
    margin-bottom: var(--sp-6);
}

.mt-4 {
    margin-top: var(--sp-4);
}

.truncate {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category picker wrapper */
.cat-picker-wrap {
    margin-top: var(--sp-2);
}