/* koleo/recursos/css/base.css */
:root {
    /* Color Palette - Single-Tenant */
    --bg-dark: #0f172a;
    --bg-card-dark: #1e293b;
    --bg-dashboard: #fafafa;
    --white: #ffffff;

    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;

    --accent: #f59e0b;
    --accent-dark: #d97706;

    --text-dark: #18181b;
    --text-muted: #71717a;
    --text-light: #fafafa;

    --border-light: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Typography System - STICK TO ONE FONT & SCALE */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* Standardized Sizes */
    --fs-xs: 0.75rem;
    /* 12px */
    --fs-sm: 0.875rem;
    /* 14px */
    --fs-base: 0.9375rem;
    /* 15px */
    --fs-md: 1rem;
    /* 16px */
    --fs-lg: 1.125rem;
    /* 18px */
    --fs-xl: 1.25rem;
    /* 20px */
    --fs-2xl: 1.5rem;
    /* 24px */
    --fs-3xl: 1.875rem;
    /* 30px */
    --fs-4xl: 2.25rem;
    /* 36px */

    /* Weights */
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    /* Shadows & Effects */
    --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);
    --radius-md: 10px;
    --radius-lg: 14px;

    /* Layout Dimensions */
    --sidebar-width: 260px;
    --header-height: 64px;
}

/* Global Resets & Typography Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    /* Base for rem units */
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: var(--font-main);
    font-size: var(--fs-base);
    font-weight: var(--fw-normal);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-dashboard);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enforcing Global Font Consistency */
h1,
h2,
h3,
h4,
h5,
h6,
button,
input,
select,
textarea,
span,
p,
a,
div {
    font-family: var(--font-main);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--bg-dark);
    font-weight: var(--fw-extrabold);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h1 {
    font-size: var(--fs-4xl);
}

h2 {
    font-size: var(--fs-3xl);
}

h3 {
    font-size: var(--fs-2xl);
}

h4 {
    font-size: var(--fs-xl);
}

h5 {
    font-size: var(--fs-lg);
}

h6 {
    font-size: var(--fs-md);
}

/* Responsive Typography Scale */
@media (max-width: 768px) {
    :root {
        --fs-4xl: 1.75rem;
        --fs-3xl: 1.5rem;
        --fs-2xl: 1.25rem;
        --fs-xl: 1.125rem;
        --fs-lg: 1rem;
        --fs-md: 0.9375rem;
    }

    html {
        font-size: 14px;
    }
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Visibility Utilities */
.hidden {
    display: none !important;
}