/* ============================================
   ZBOX CRM — Base : Variables, Reset, Utilities
   ============================================ */

:root {
    /* Colors — Light Mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f7f7f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f5f8;
    --bg-input: #f0f0f5;
    --bg-sidebar: #f2f2f6;
    --bg-tertiary: #eaeaef;

    --border: #e2e2ea;
    --border-light: #d0d0da;

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5e;
    --text-muted: #8a8a9e;

    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-glow: rgba(79, 70, 229, 0.08);
    --accent-soft: rgba(79, 70, 229, 0.1);
    --primary: var(--accent);

    --green: #22c55e;
    --red: #ef4444;
    --orange: #f59e0b;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --cyan: #06b6d4;
    --pink: #ec4899;

    /* Semantic aliases */
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Layout */
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    --topbar-height: 60px;

    /* Radius */
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Transitions */
    --transition: all 0.2s ease;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Utilities */
.bg-blue { background: var(--blue); }
.bg-purple { background: var(--purple); }
.bg-orange { background: var(--orange); }
.bg-green { background: var(--green); }
.bg-cyan { background: var(--cyan); }
.bg-pink { background: var(--pink); }
.bg-gray { background: var(--text-muted); }

.text-muted { color: var(--text-muted); }
.text-red { color: var(--red); }

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state h2 { color: var(--text-primary); margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-muted); }
