/* ═══════════════════════════════════════════
   main.css — Global Variables & Resets
═══════════════════════════════════════════ */

:root {
    /* Colors */
    --primary: #1e61f0;
    --primary-dark: #1449c1;
    --primary-light: #e8f0fe;
    --success: #00a86b;
    --success-bg: #e6f7f2;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --danger: #ef4444;
    --danger-bg: #fef2f2;

    /* Sidebar */
    --sidebar-bg: #1c1f2e;
    --sidebar-hover: rgba(255, 255, 255, 0.07);
    --sidebar-active: rgba(255, 255, 255, 0.12);
    --sidebar-text: rgba(255, 255, 255, 0.85);
    --sidebar-muted: rgba(255, 255, 255, 0.45);
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --sidebar-width: 220px;

    /* App */
    --bg-main: #f4f5f7;
    --bg-white: #ffffff;
    --bg-hover: #f8fafc;
    --text-main: #1a1a2e;
    --text-sub: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-dark: #d1d9e6;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --transition: all 0.2s ease;

    /* Topbar */
    --topbar-h: 52px;
    --subtoolbar-h: 46px;
}

[data-theme="dark"] {
    --bg-main: #0f1117;
    --bg-white: #1c1f2e;
    --bg-hover: #252838;
    --text-main: #e2e8f0;
    --text-sub: #94a3b8;
    --border: #2d3350;
    --border-dark: #374162;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 13px;
    line-height: 1.5;
    overflow: hidden;
    height: 100vh;
}

input,
textarea,
button,
select {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    text-decoration: none;
    color: inherit;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fadeIn 0.25s ease;
}

.spin {
    animation: spin 1s linear infinite;
}

.hidden {
    display: none !important;
}

/* ── Walk-in Sidebar Nav Item ─────────────────── */
.walkin-nav-item {
    color: #fbbf24 !important;
}

.walkin-nav-item:hover {
    background: rgba(251, 191, 36, 0.15) !important;
    color: #f59e0b !important;
}

.walkin-nav-item.active {
    background: rgba(251, 191, 36, 0.2) !important;
    color: #f59e0b !important;
    box-shadow: none !important;
}

.z-nav-icon-inline {
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}

.z-nav-new-badge {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    background: #f59e0b;
    color: white;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}