/* ═══════════════════════════════════════════════════════════
   TOKENS DE DISEÑO - ACADEMIA COOPERATIVA (Tema Claro por Defecto)
═══════════════════════════════════════════════════════════ */
:root {
    /* Fondos y Superficies (Tema Claro) */
    --bg-main: #f4f6fb; /* Fondo principal de la app */
    --bg-panel: #ffffff; /* Fondo de menú lateral / cabecera */
    --bg-card: #ffffff; /* Fondo de las tarjetas */
    --bg-faint: #f8fafc; /* Fondo sutil para hover o destacar */
    /* Bordes y Sombras */
    --border-color: #e2e8f0; /* Bordes suaves */
    --border-hi: #cbd5e1; /* Bordes un poco más marcados */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    /* Textos */
    --text-ink: #0f172a; /* Texto principal (casi negro) */
    --text-mid: #475569; /* Texto secundario (gris oscuro) */
    --text-soft: #94a3b8; /* Texto terciario (gris claro) */
    /* Colores de Acento (Institucionales y Estados) */
    --color-primary: #1d4ed8; /* Azul corporativo por defecto */
    --color-primary-soft: #eff6ff;
    --color-violet: #7c3aed;
    --color-violet-soft: #f5f3ff;
    --color-teal: #0d9488;
    --color-teal-soft: #f0fdfa;
    --color-green: #059669; /* Éxito / Completado */
    --color-green-soft: #ecfdf5;
    --color-amber: #d97706; /* Advertencia / Pendiente */
    --color-amber-soft: #fffbeb;
    --color-rose: #e11d48; /* Error / Peligro */
    --color-rose-soft: #fff1f2;
}

/* Si en el futuro quieres un botón de "Modo Oscuro", 
  solo le agregas la clase "dark-theme" a la etiqueta <body> 
*/
.dark-theme {
    --bg-main: #0B1320;
    --bg-panel: #0F1A2A;
    --bg-card: #142135;
    --bg-faint: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hi: rgba(255, 255, 255, 0.13);
    --text-ink: #e8edf5;
    --text-mid: #8899aa;
    --text-soft: #445566;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.6);
}

body {
    background-color: var(--bg-main);
    color: var(--text-ink);
    font-family: 'DM Sans', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Custom premium toggle switch */
.switch-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.switch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: #cbd5e1;
    border-radius: 9999px;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.switch-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch-input:checked + .switch-slider {
    background-color: #10b981; /* Premium Emerald/Green */
}

.switch-input:checked + .switch-slider::before {
    transform: translateX(20px);
}

.switch-slider:hover {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Custom premium checkbox */
input[type="checkbox"].premium-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    background-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    vertical-align: middle;
}

input[type="checkbox"].premium-checkbox:checked {
    background-color: #10b981; /* Emerald/Green matching active switch */
    border-color: #10b981;
}

input[type="checkbox"].premium-checkbox:checked::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 1px;
    left: 5px;
}

input[type="checkbox"].premium-checkbox:hover {
    border-color: #10b981;
}

