/* ================================================================
   PSM Vision WMS — Corporate Premium Theme v3 (Light + Indigo)
   ================================================================ */

:root {
    /* Brand — Indigo/Purple accent */
    --accent-primary:   #6366f1;
    --accent-hover:     #4f46e5;
    --accent-light:     #eef2ff;
    --accent-gradient:  linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --accent-secondary: #0d9488;
    --primary:          var(--accent-primary);

    /* Sidebar — clean light */
    --sidebar-width:       220px;
    --sidebar-bg:          #ffffff;
    --sidebar-border:      #f1f5f9;
    --sidebar-text:        #64748b;
    --sidebar-text-hover:  #1e293b;
    --sidebar-text-active: #ffffff;
    --sidebar-bg-hover:    #f8faff;
    --sidebar-bg-active:   #6366f1;

    /* Page surface */
    --bg-primary:  #f8fafc;
    --bg-secondary:#ffffff;
    --surface:     #ffffff;

    /* Typography */
    --text-primary:     #0f172a;
    --text-secondary:   #475569;
    --text-muted:       #94a3b8;
    --text-placeholder: #cbd5e1;
    --font-sans:        'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:        ui-monospace, 'Cascadia Code', 'Fira Code', monospace;

    /* Semantic */
    --success:        #059669;
    --success-bg:     #ecfdf5;
    --success-border: #6ee7b7;
    --warning:        #d97706;
    --warning-bg:     #fffbeb;
    --warning-border: #fcd34d;
    --danger:         #ef4444;
    --danger-bg:      #fef2f2;
    --danger-border:  #fca5a5;
    --info:           #3b82f6;
    --info-bg:        #eff6ff;
    --info-border:    #93c5fd;

    /* Chrome */
    --glass-bg:     #ffffff;
    --glass-border: #e2e8f0;
    --border-faint: #f1f5f9;

    --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
    --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
    --shadow-md: 0 4px 6px -1px rgba(15,23,42,0.06), 0 2px 4px -1px rgba(15,23,42,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(15,23,42,0.08), 0 4px 6px -2px rgba(15,23,42,0.04);
    --shadow-card: 0 1px 3px rgba(15,23,42,0.06), 0 4px 16px rgba(15,23,42,0.04);

    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  12px;
    --radius-xl:  16px;
    --radius-full: 9999px;
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar             { width: 5px; height: 5px; }
::-webkit-scrollbar-track       { background: transparent; }
::-webkit-scrollbar-thumb       { background: #e2e8f0; border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* ── Typography ─────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
    font-weight: 600; line-height: 1.25;
    color: var(--text-primary); letter-spacing: -0.015em;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
p  { color: var(--text-secondary); margin-bottom: 1rem; }

/* ── ────────────────────────────────────────── SIDEBAR ────────── */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    z-index: 50;
    box-shadow: 2px 0 8px rgba(15,23,42,0.04);
    transition: width 0.25s ease, min-width 0.25s ease;
    overflow: hidden;
}

/* ── Collapsed state (desktop only) ─── */
.sidebar-collapsed {
    width: 64px !important;
    min-width: 64px !important;
}

/* Hide brand text & labels when collapsed */
.sidebar-collapsed .sidebar-text-area,
.sidebar-collapsed .sidebar-brand-name,
.sidebar-collapsed .sidebar-brand-sub,
.sidebar-collapsed .nav-section-label,
.sidebar-collapsed .sidebar-nav-arrow,
.sidebar-collapsed .nav-item-label,
.sidebar-collapsed .brand-logo {
    display: none !important;
}

/* Center nav items when collapsed */
.sidebar-collapsed .nav-item {
    justify-content: center;
    padding: 0.5rem;
}
.sidebar-collapsed .nav-item svg {
    margin-right: 0 !important;
    flex-shrink: 0;
}

/* Center logo-mark when collapsed */
.sidebar-collapsed .sidebar-brand-area {
    justify-content: center;
}
.sidebar-collapsed .sidebar-header {
    justify-content: center !important;
    padding: 0 !important;
}
.sidebar-collapsed .sidebar-toggle-btn {
    display: flex !important;
}

/* Tooltip on hover for collapsed items */
.sidebar-collapsed .nav-item {
    position: relative;
}
.sidebar-collapsed .nav-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 999;
}
.sidebar-collapsed .nav-item:hover::after {
    opacity: 1;
}

.sidebar-header {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
    gap: 0.625rem;
}

.sidebar-logo-mark {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: var(--accent-gradient);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99,102,241,0.35);
}

.sidebar-brand-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

.sidebar-brand-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    margin-top: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
    scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; }

.nav-section-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    padding: 1.125rem 0.75rem 0.375rem;
    margin-top: 0.25rem;
    display: block;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-bottom: 2px;
    transition: background 0.12s ease, color 0.12s ease;
    font-weight: 500;
    font-size: 0.865rem;
    letter-spacing: -0.005em;
    position: relative;
}

.nav-item:hover {
    background: var(--sidebar-bg-hover);
    color: var(--sidebar-text-hover);
}

.nav-item.active {
    background: var(--sidebar-bg-active);
    color: var(--sidebar-text-active);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

.nav-item svg { opacity: 0.75; flex-shrink: 0; }
.nav-item:hover svg  { opacity: 1; }
.nav-item.active svg { opacity: 1; }

.sidebar-nav-arrow {
    margin-left: auto;
    opacity: 0.5;
    flex-shrink: 0;
}

/* Need Help card */
.sidebar-help-card {
    margin: 0 0.75rem 1rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 1.125rem 1rem;
    box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}

.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    border-radius: var(--radius-md);
    background: #f8fafc;
    border: 1px solid var(--glass-border);
    transition: background 0.12s;
}
.user-badge:hover { background: #f1f5f9; }

.user-avatar {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--accent-gradient);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.75rem;
    flex-shrink: 0;
}

/* ── ──────────────────────────────────────── TOPBAR ───────────── */
.topbar {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    z-index: 40;
    flex-shrink: 0;
    box-shadow: var(--shadow-xs);
}

.topbar-search {
    flex: 1;
    max-width: 440px;
    position: relative;
}

.topbar-search input {
    width: 100%;
    padding: 0.5rem 0.875rem 0.5rem 2.5rem;
    background: #f8fafc;
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: var(--font-sans);
    transition: border-color 0.12s, background 0.12s;
}
.topbar-search input::placeholder { color: var(--text-muted); }
.topbar-search input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.topbar-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.topbar-spacer { flex: 1; }

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topbar-icon-btn {
    position: relative;
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.12s;
    flex-shrink: 0;
}
.topbar-icon-btn:hover { background: #f8fafc; color: var(--text-secondary); }

.topbar-badge {
    position: absolute;
    top: -3px; right: -3px;
    width: 16px; height: 16px;
    background: var(--accent-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.55rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: #fff;
    cursor: default;
    transition: background 0.12s;
}
.topbar-user:hover { background: #f8fafc; }

.topbar-user-avatar {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: var(--accent-gradient);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.7rem;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(99,102,241,0.3);
}

/* ── ────────────────────────────── MAIN CONTENT ───────────────── */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.content-area {
    flex: 1;
    padding: 1.75rem 2rem;
    overflow-y: auto;
    background: var(--bg-primary);
}

/* ── ─────────────────────────────── CARDS ─────────────────────── */
.glass-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.card-body { padding: 1.5rem; }

/* ── ────────────────────────── STAT CARDS ─────────────────────── */
.stat-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.25rem 0;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}
.stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.stat-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.875rem;
}

.stat-icon-box {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--icon-shadow, rgba(99,102,241,0.3));
}

.stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.375rem;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.stat-trend.up   { color: var(--success); }
.stat-trend.down { color: var(--danger); }

.stat-sparkline {
    margin: 0 -1.25rem;
    height: 52px;
    overflow: hidden;
}
.stat-sparkline svg { width: 100%; height: 100%; display: block; }

/* ── ─────────────────────────── TABLES ────────────────────────── */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
}

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

.table th {
    padding: 0.75rem 1.25rem;
    text-align: left;
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.68rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
    border-bottom: 1px solid var(--glass-border);
}

.table td {
    padding: 0.875rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-faint);
    color: var(--text-primary);
    vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.1s; }
.table tbody tr:hover { background: #f8fafc; }

/* ── ─────────────────────────── BADGES ────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.badge-info    { background: var(--info-bg);    color: var(--info);    border: 1px solid var(--info-border); }
.badge-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.badge-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-border); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger);  border: 1px solid var(--danger-border); }
.badge-neutral { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.badge-primary { background: var(--accent-light); color: var(--accent-primary); border: 1px solid #c7d2fe; }

/* WMS Status Badges */
.status-pill {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.22rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em;
    white-space: nowrap;
}

/* ── ──────────────────────────── BUTTONS ──────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.12s;
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
    font-family: var(--font-sans);
}

.btn:disabled, .btn[disabled] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

.btn-primary {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    box-shadow: 0 1px 3px rgba(99,102,241,0.3);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 2px 8px rgba(99,102,241,0.4);
}
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
    background: #fff;
    color: var(--text-secondary);
    border-color: var(--glass-border);
    box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { background: #f8fafc; color: var(--text-primary); border-color: #cbd5e1; }

.btn-danger  { background: var(--danger-bg);  color: var(--danger);  border-color: var(--danger-border); }
.btn-danger:hover  { background: #fee2e2; }
.btn-success { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.btn-success:hover { background: #d1fae5; }

.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: #f1f5f9; color: var(--text-primary); }

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-lg { padding: 0.675rem 1.5rem; font-size: 1rem; }

/* ── ──────────────────────────── FORMS ────────────────────────── */
.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    font-size: 0.845rem;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 0.5625rem 0.875rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    transition: border-color 0.12s, box-shadow 0.12s;
    line-height: 1.5;
}
.form-input::placeholder { color: var(--text-placeholder); }
.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.form-input:disabled { background: #f8fafc; color: var(--text-muted); cursor: not-allowed; }

.form-hint { display: block; margin-top: 0.25rem; font-size: 0.775rem; color: var(--text-muted); }

/* ── ──────────────────────────── ALERTS ───────────────────────── */
.alert {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-size: 0.875rem; margin-bottom: 1rem;
}
.alert-success { background: var(--success-bg); color: #065f46; border-color: var(--success-border); }
.alert-warning { background: var(--warning-bg); color: #92400e; border-color: var(--warning-border); }
.alert-danger  { background: var(--danger-bg);  color: #991b1b; border-color: var(--danger-border); }
.alert-info    { background: var(--info-bg);    color: #1e40af; border-color: var(--info-border); }

/* ── ────────────────────────── PAGINATION ─────────────────────── */
.pagination-wrap {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap; gap: 0.75rem;
    background: #fafafa;
}
.pagination-info { font-size: 0.8rem; color: var(--text-muted); }
.pagination-controls { display: flex; align-items: center; gap: 0.25rem; }

.page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 30px; height: 30px; padding: 0 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem; font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer; transition: all 0.1s;
    text-decoration: none; font-family: var(--font-sans);
}
.page-btn:hover { background: #f1f5f9; color: var(--text-primary); border-color: var(--glass-border); }
.page-btn.active { background: var(--accent-primary); color: #fff; border-color: var(--accent-primary); }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── ──────────────────────────── AUTH ─────────────────────────── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.auth-left {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%);
    position: relative; overflow: hidden;
}
@media (min-width: 900px) { .auth-left { display: flex; flex: 1; } }

.auth-left::before {
    content: '';
    position: absolute; top: -80px; right: -80px;
    width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, transparent 70%);
}
.auth-left::after {
    content: '';
    position: absolute; bottom: -60px; left: -40px;
    width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 70%);
}

.auth-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: #fff;
}
@media (min-width: 900px) { .auth-right { width: 420px; min-width: 420px; flex-shrink: 0; } }

.auth-inner { max-width: 340px; width: 100%; margin: 0 auto; }

/* ── ──────────────────────────── SPLASH ───────────────────────── */
.splash-screen {
    position: fixed; inset: 0;
    background: #ffffff;
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s;
}
.splash-screen.hidden { opacity: 0; visibility: hidden; }

.splash-content {
    display: flex; flex-direction: column;
    align-items: center; gap: 1.75rem;
}

.brand-logo {
    max-height: 34px; width: auto;
    max-width: 150px; object-fit: contain; display: block;
}
.auth-logo {
    max-height: 52px; width: auto;
    max-width: 160px; object-fit: contain; display: block;
}

.loading-dots { display: flex; gap: 0.45rem; }
.loading-dots div {
    width: 8px; height: 8px; border-radius: 50%;
    background: #6366f1;
    animation: dot-bounce 1.4s infinite ease-in-out both;
}
.loading-dots div:nth-child(1) { animation-delay: -0.32s; }
.loading-dots div:nth-child(2) { animation-delay: -0.16s; }

/* ── ────────────────────────── QUICK ACTIONS ──────────────────── */
.qa-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 0.12s;
    border: 1px solid transparent;
}
.qa-item:hover {
    background: #f8faff;
    border-color: #e0e7ff;
}
.qa-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ── ──────────────────────────── ANIMATIONS ───────────────────── */
@keyframes dot-bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
    40%            { transform: scale(1); opacity: 1; }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-spin    { animation: spin 1s linear infinite; }
.animate-fade-in { animation: fade-in 0.2s ease both; }
