/* ============================================================
   PediChateando — Design System
   Solo variables, reset y utilidades base. NO contiene componentes.
   ============================================================ */

:root {
    /* Colores primarios */
    --primary:        #2563eb;
    --primary-dark:   #1d4ed8;
    --primary-light:  rgba(37,99,235,0.15);

    /* Estados */
    --success:        #16a34a;
    --success-light:  rgba(22,163,74,0.15);
    --warning:        #f59e0b;
    --warning-light:  rgba(245,158,11,0.15);
    --danger:         #dc2626;
    --danger-light:   rgba(220,38,38,0.15);
    --info:           #0ea5e9;
    --purple:         #8b5cf6;
    --purple-light:   rgba(139,92,246,0.15);

    /* Superficies */
    --bg-body:        #0f172a;
    --bg-navbar:      rgba(17,24,39,0.98);
    --bg-sidebar:     #111827;
    --bg-card:        #1e293b;
    --bg-input:       #0f172a;
    --bg-hover:       #334155;
    --bg-table-head:  rgba(255,255,255,0.03);

    /* Bordes */
    --border-color:    #334155;
    --radius-sm:       8px;
    --radius:          12px;
    --radius-lg:       16px;

    /* Texto */
    --text-main:    #f8fafc;
    --text-muted:   #94a3b8;
    --text-strong:  #ffffff;

    /* Sombras */
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
    --shadow-md:  0 4px 6px rgba(0,0,0,0.4);
    --shadow-lg:  0 10px 25px rgba(0,0,0,0.5);
    --shadow-xl:  0 25px 50px -12px rgba(0,0,0,0.7);

    /* Layout */
    --sidebar-width:            280px;
    --sidebar-width-collapsed:  72px;
    --navbar-height:  64px;

    /* Transiciones */
    --transition: all 0.2s ease;
}

/* Tema claro */
[data-theme="light"] {
    --bg-body:        #f1f5f9;
    --bg-navbar:      rgba(255,255,255,0.98);
    --bg-sidebar:     #ffffff;
    --bg-card:        #ffffff;
    --bg-input:       #ffffff;
    --bg-hover:       #f1f5f9;
    --border-color:   #e2e8f0;
    --bg-table-head:  rgba(15,23,42,0.03);
    --text-main:      #1e293b;
    --text-muted:     #64748b;
    --text-strong:    #0f172a;
    --primary-light:  rgba(37,99,235,0.1);
    --shadow-sm:      0 1px 3px rgba(0,0,0,0.06);
    --shadow-md:      0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg:      0 10px 25px rgba(0,0,0,0.08);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Utilidades */
.hidden         { display: none !important; }
.text-muted     { color: var(--text-muted); }
.text-sm        { font-size: 13px; }
.text-xs        { font-size: 11px; }
.text-lg        { font-size: 18px; }
.font-bold      { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.text-center    { text-align: center; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.flex           { display: flex; }
.flex-col       { flex-direction: column; }
.items-center   { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap      { flex-wrap: wrap; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
