:root {
    /* Primary Colors */
    --primary-50: #EFF6FF;
    --primary-100: #DBEAFE;
    --primary-200: #BFDBFE;
    --primary-300: #93C5FD;
    --primary-400: #60A5FA;
    --primary-500: #3676E0;
    --primary-600: #2563EB;
    --primary-700: #1D4ED8;
    --primary-800: #1E40AF;
    --primary-900: #1E3A8A;
    
    /* Gray scale */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Accent colors */
    --accent-green: #10B981;
    --accent-red: #EF4444;
    --accent-yellow: #F59E0B;
    --accent-purple: #8B5CF6;
    
    /* Layout variables */
    --sidebar-width: 180px;
    --header-height: 64px;
    --border-radius-sm: 0.375rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    
    /* Animation durations */
    --transition-fast: 150ms;
    --transition-normal: 250ms;
    --transition-slow: 350ms;
    
    /* Shadow variables */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* ===== Theme semantic variables (light mode defaults) ===== */
    --t-bg: #f9fafb;
    --t-bg-secondary: #ffffff;
    --t-bg-card: #ffffff;
    --t-bg-card-hover: #f3f4f6;
    --t-bg-input: #ffffff;
    --t-bg-hover: rgba(0,0,0,0.03);
    --t-bg-active: rgba(0,0,0,0.05);
    --t-bg-badge: #f3f4f6;
    --t-bg-dropdown: #ffffff;
    --t-bg-tooltip: #1a1a1a;

    --t-text: #111827;
    --t-text-secondary: #4b5563;
    --t-text-muted: #6b7280;
    --t-text-dimmer: #9ca3af;
    --t-text-tooltip: #e0e0e0;

    --t-border: #e5e7eb;
    --t-border-light: #f3f4f6;
    --t-border-hover: #d1d5db;
    --t-border-input: #d1d5db;

    --t-shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --t-shadow-card-hover: 0 4px 12px rgba(0,0,0,0.1);

    --t-green-bg: rgba(16,185,129,0.1);
    --t-green-text: #059669;
    --t-red-text: #dc2626;
    --t-yellow-text: #d97706;
    --t-yellow-bg: rgba(245,158,11,0.1);
    --t-yellow-border: rgba(245,158,11,0.3);
    --t-yellow-active-bg: #f59e0b;
    --t-yellow-active-text: #ffffff;

    --t-check-bg: rgba(16,185,129,0.1);
    --t-check-color: #059669;

    --t-btn-bg: #ffffff;
    --t-btn-border: #d1d5db;
    --t-btn-text: #374151;
    --t-btn-hover-bg: #f3f4f6;

    --t-icon-btn-bg: transparent;
    --t-icon-btn-border: #e5e7eb;
    --t-icon-btn-color: #374151;
    --t-icon-btn-hover-bg: #f3f4f6;
    --t-icon-btn-hover-color: #111827;
    --t-icon-btn-hover-border: #d1d5db;
}

/* ===== Dark mode overrides ===== */
.dark {
    color-scheme: dark;
    --t-bg: #000000;
    --t-bg-secondary: #0a0a0a;
    --t-bg-card: #161616;
    --t-bg-card-hover: #1a1a1a;
    --t-bg-input: #161616;
    --t-bg-hover: rgba(255,255,255,0.05);
    --t-bg-active: rgba(255,255,255,0.08);
    --t-bg-badge: rgba(255,255,255,0.06);
    --t-bg-dropdown: #1a1a1a;
    --t-bg-tooltip: #1a1a1a;

    --t-text: #ececec;
    --t-text-secondary: #8b8b8b;
    --t-text-muted: #6b6f76;
    --t-text-dimmer: #5a5a5a;
    --t-text-tooltip: #e0e0e0;

    --t-border: rgba(255,255,255,0.08);
    --t-border-light: rgba(255,255,255,0.04);
    --t-border-hover: rgba(255,255,255,0.15);
    --t-border-input: rgba(255,255,255,0.1);

    --t-shadow-card: none;
    --t-shadow-card-hover: none;

    --t-green-bg: rgba(74,222,128,0.1);
    --t-green-text: #4ade80;
    --t-red-text: #ff453a;
    --t-yellow-text: #fbbf24;
    --t-yellow-bg: rgba(245,158,11,0.15);
    --t-yellow-border: rgba(245,158,11,0.3);
    --t-yellow-active-bg: #d97706;
    --t-yellow-active-text: #ffffff;

    --t-check-bg: rgba(74,222,128,0.1);
    --t-check-color: #4ade80;

    --t-btn-bg: transparent;
    --t-btn-border: rgba(255,255,255,0.08);
    --t-btn-text: #ececec;
    --t-btn-hover-bg: rgba(255,255,255,0.04);

    --t-icon-btn-bg: transparent;
    --t-icon-btn-border: rgba(255,255,255,0.08);
    --t-icon-btn-color: #d1d5db;
    --t-icon-btn-hover-bg: rgba(255,255,255,0.04);
    --t-icon-btn-hover-color: var(--t-text);
    --t-icon-btn-hover-border: rgba(255,255,255,0.12);
    --t-btn-close-filter: invert(1);
}
