/* ============================================================================
   HANS CRM - DESIGN TOKENS
   Светлый минималистичный SaaS дашборд
   Референс: Trepp, CoStar, Loftware
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* === COLORS === */
    
    /* Backgrounds */
    --bg-page: #F8F9FA;
    --bg-card: #FFFFFF;
    --bg-sidebar: #FFFFFF;
    --bg-hover: #F9FAFB;
    --bg-active: #F3F4F6;
    --bg-secondary: #F3F4F6;
    --bg-tertiary: #E5E7EB;
    --bg-overlay: rgba(0, 0, 0, 0.4);
    
    /* Sidebar specific */
    --bg-sidebar-hover: #F9FAFB;
    --bg-sidebar-active: #F3F4F6;
    --text-sidebar: #6B7280;
    --text-sidebar-active: #111827;
    
    /* Text */
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --text-tertiary: #D1D5DB;
    
    /* Borders */
    --border-color: #E5E7EB;
    --border-hover: #D1D5DB;
    --border-light: #F3F4F6;
    --border-medium: #E5E7EB;
    --border-strong: #D1D5DB;
    
    /* Accent */
    --accent: #111827;
    --accent-hover: #1F2937;
    
    /* Primary colors */
    --primary-50: #EEF2FF;
    --primary-500: #6366F1;
    --primary-600: #4F46E5;
    
    /* Navy colors */
    --navy-500: #64748B;
    
    /* Charts */
    --chart-1: #E91E8C;
    --chart-2: #4CAF50;
    --chart-3: #2196F3;
    --chart-4: #9E9E9E;
    
    /* Status badges */
    --success-bg: #DCFCE7;
    --success-text: #16A34A;
    --success-50: #F0FDF4;
    --success-100: #DCFCE7;
    --success-600: #16A34A;
    
    --error-bg: #FEE2E2;
    --error-text: #DC2626;
    --error-100: #FEE2E2;
    --error-600: #DC2626;
    
    --warning-bg: #FEF3C7;
    --warning-text: #D97706;
    --warning-50: #FFFBEB;
    --warning-100: #FEF3C7;
    --warning-600: #D97706;
    
    --info-bg: #EFF6FF;
    --info-text: #1D4ED8;
    --info-50: #EFF6FF;
    --info-500: #3B82F6;
    
    /* === TYPOGRAPHY === */
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Font sizes */
    --text-xs: 11px;
    --text-sm: 13px;
    --text-base: 14px;
    --text-lg: 16px;
    --text-xl: 18px;
    --text-2xl: 24px;
    --text-3xl: 30px;
    --text-4xl: 36px;
    --text-kpi: 28px;
    
    /* Font weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* === SPACING === */
    
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    
    /* === RADIUS === */
    
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 9999px;
    
    /* === SHADOWS === */
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
    
    /* === TRANSITIONS === */
    
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* === LAYOUT === */
    
    --sidebar-width: 240px;
    --topbar-height: 48px;
    
    /* === Z-INDEX === */
    
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal-backdrop: 900;
    --z-modal: 1000;
    --z-toast: 1100;
}

/* === RESET === */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--text-sm);
    font-weight: var(--font-normal);
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-page);
}

/* === UTILITIES === */

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.bg-white { background: var(--bg-card); }
.bg-page { background: var(--bg-page); }

.border { border: 1px solid var(--border-color); }
.border-b { border-bottom: 1px solid var(--border-color); }
.border-r { border-right: 1px solid var(--border-color); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.hidden { display: none !important; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }

.m-0 { margin: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }

.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

.uppercase { text-transform: uppercase; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.cursor-pointer { cursor: pointer; }

.transition { transition: all var(--transition-fast); }
