/* ============================================
   MODERN SaaS THEME SYSTEM
   TrueColors ERP - Replit/Linear/Vercel Style
   ============================================ */

/* Light Theme */
:root {
    /* Background Colors */
    --bg: #ffffff;
    --bg-secondary: #F5F5F5;
    --card-bg: #ffffff;
    
    /* Border Colors */
    --border: #e6e8ee;
    
    /* Text Colors */
    --text: #0f1724;
    --text-muted: #6b7280;
    
    /* Primary Colors */
    --primary: #487fff;
    --primary-hover: #3b6fe6;
    --primary-active: #335fd1;
    --primary-soft: rgba(72, 127, 255, 0.08);
    
    /* Semantic Colors */
    --success: #10b981;
    --danger: #ef4444;
    
    /* Interactive States */
    --muted-hover: rgba(15, 23, 36, 0.04);
    
    /* Shadows */
    --shadow: 0 6px 18px rgba(13, 20, 40, 0.06);
    
    /* Border Radius */
    --radius: 8px;
    
    /* Additional semantic colors for compatibility */
    --text-secondary: var(--text-muted);
    --text-tertiary: #9ca3af;
    --text-inverse: #ffffff;
    --bg-hover: var(--muted-hover);
    --bg-active: rgba(15, 23, 36, 0.06);
    --border-hover: #d1d5db;
    --border-focus: var(--primary);
    --primary-light: var(--primary-soft);
    --primary-lighter: rgba(72, 127, 255, 0.04);
    --success-light: rgba(16, 185, 129, 0.1);
    --danger-light: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --info: #3b82f6;
    --info-light: rgba(59, 130, 246, 0.1);
    --accent: var(--success);
    --accent-hover: #059669;
    --accent-light: var(--success-light);
    --sidebar-bg: var(--bg);
    --input-bg: var(--bg);
    --table-header-bg: var(--bg-secondary);
    --table-row-hover: var(--muted-hover);
    --shadow-sm: 0 1px 2px rgba(13, 20, 40, 0.04);
    --shadow-md: 0 4px 6px rgba(13, 20, 40, 0.05);
    --shadow-lg: 0 10px 15px rgba(13, 20, 40, 0.08);
    --shadow-xl: 0 20px 25px rgba(13, 20, 40, 0.1);
}

/* Dark Theme */
[data-theme="dark"] {
    /* Background Colors */
    --bg: #0f1418;
    --bg-secondary: #14171b;
    --card-bg: #101316;
    
    /* Border Colors */
    --border: #212428;
    
    /* Text Colors */
    --text: #e6eef9;
    --text-muted: #9aa4b2;
    
    /* Primary Colors */
    --primary: #487fff;
    --primary-hover: #3b6fe6;
    --primary-active: #335fd1;
    --primary-soft: rgba(72, 127, 255, 0.12);
    
    /* Semantic Colors */
    --success: #34d399;
    --danger: #fb7185;
    
    /* Interactive States */
    --muted-hover: rgba(255, 255, 255, 0.03);
    
    /* Shadows */
    --shadow: 0 10px 24px rgba(2, 6, 23, 0.6);
    
    /* Border Radius */
    --radius: 8px;
    
    /* Additional semantic colors for compatibility */
    --text-secondary: var(--text-muted);
    --text-tertiary: #6b7280;
    --text-inverse: #0f1418;
    --bg-hover: var(--muted-hover);
    --bg-active: rgba(255, 255, 255, 0.05);
    --border-hover: #3a3a3d;
    --border-focus: var(--primary);
    --primary-light: var(--primary-soft);
    --primary-lighter: rgba(72, 127, 255, 0.08);
    --success-light: rgba(52, 211, 153, 0.15);
    --danger-light: rgba(251, 113, 133, 0.15);
    --warning: #fbbf24;
    --warning-light: rgba(251, 191, 36, 0.15);
    --info: #60a5fa;
    --info-light: rgba(96, 165, 250, 0.15);
    --accent: var(--success);
    --accent-hover: #10b981;
    --accent-light: var(--success-light);
    --sidebar-bg: var(--bg);
    --input-bg: var(--bg-secondary);
    --table-header-bg: var(--bg-secondary);
    --table-row-hover: var(--muted-hover);
    --shadow-sm: 0 1px 2px rgba(2, 6, 23, 0.3);
    --shadow-md: 0 4px 6px rgba(2, 6, 23, 0.4);
    --shadow-lg: 0 10px 15px rgba(2, 6, 23, 0.5);
    --shadow-xl: 0 20px 25px rgba(2, 6, 23, 0.6);
}

/* Typography - Replit Style */
:root {
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    :root {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 13px;
    }
}

body {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
}

h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text);
}

h2 {
    font-size: 1.875rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--text);
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text);
}

h4 {
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text);
}

h5 {
    font-size: 1.125rem;
    line-height: 1.5;
    font-weight: 600;
    color: var(--text);
}

h6 {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
    color: var(--text);
}

@media (max-width: 1024px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }
    h4 { font-size: 1.125rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1rem; }
}

