/* ========================================
   BASE STYLES - Core theme variables and global styles
   ======================================== */

/* CSS Variables for Theme */
:root[data-theme="light"] {
    /* Modern, Minimal Palette */
    --primary-color: #2563eb;
    /* Royal Blue */
    --primary-hover: #1d4ed8;
    --bg-body: #f8fafc;
    /* Slate 50 */
    --container-bg: #ffffff;
    --text-primary: #0f172a;
    /* Slate 900 */
    --text-secondary: #64748b;
    /* Slate 500 */
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    /* Slate 200 */
    --table-hover: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --border-color: #e2e8f0;
    --input-bg: #ffffff;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

:root[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
    --bg-body: #020617;
    /* Slate 950 */
    --container-bg: #0f172a;
    /* Slate 900 */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --card-bg: #1e293b;
    /* Slate 800 */
    --card-border: #334155;
    --table-hover: #1e293b;
    /* Hover slightly lighter than body, match card */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
    --border-color: #334155;
    --input-bg: #020617;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-body);
    min-height: 100vh;
    padding: 20px;
    transition: background 0.3s ease, color 0.3s ease;
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Typography defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
    /* Tighter tracking for headings */
}

/* Mobile Responsive - Base */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }
}