/* ==========================================================================
   SISTEMA DE DISEÑO UNIFICADO DE TEMAS - BOOKER YOU
   4 Temas Maestros de Alta Calidad con Contraste y Legibilidad Hostelería
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TEMA RESTAURANT BOUTIQUE (Por defecto / Estilo Autor)
   Identidad cálida, elegante: tonos arena, marfil suave y verde salvia
   -------------------------------------------------------------------------- */
[data-theme="restaurant"] {
    --bg-dark: #e8e2d7;
    --bg-body: #e8e2d7;
    --bg-panel: #fcfbf8;
    --bg-surface: #f2ede4;
    --bg-card: #fcfbf8;
    --card-bg: #fcfbf8;
    --border-color: #d8d0c3;
    --text-main: #2b2b2b;
    --text-muted: #6b6b6b;
    --primary: #7a9573;
    --primary-hover: #678160;
    --primary-rgb: 122, 149, 115;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --input-bg: #f5f1ea;
    --card-radius: 0px;
}

/* --------------------------------------------------------------------------
   2. TEMA DARK PRO (OLED & Alto Contraste)
   Fondo grafito negro profundo con acentos cian/turquesa y cero reflejos
   -------------------------------------------------------------------------- */
[data-theme="dark"], [data-theme="oled"] {
    --bg-dark: #090d16;
    --bg-body: #090d16;
    --bg-panel: #101623;
    --bg-surface: #172033;
    --bg-card: #101623;
    --card-bg: #101623;
    --border-color: rgba(255, 255, 255, 0.12);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #14b8a6;
    --primary-hover: #0d9488;
    --primary-rgb: 20, 184, 166;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --input-bg: rgba(255, 255, 255, 0.05);
    --card-radius: 0px;
}

/* --------------------------------------------------------------------------
   3. TEMA BISTRÓ LUZ (Warm Light / Terrazas)
   Blanco lino cálido, tarjetas nítidas con toques miel y ámbar tostado
   -------------------------------------------------------------------------- */
[data-theme="bistro"], [data-theme="light"], [data-theme="white-embed"] {
    --bg-dark: #fbfaf8;
    --bg-body: #fbfaf8;
    --bg-panel: #ffffff;
    --bg-surface: #f4f1ea;
    --bg-card: #ffffff;
    --card-bg: #ffffff;
    --border-color: #e5e0d8;
    --text-main: #1f1d1a;
    --text-muted: #736c64;
    --primary: #d97706;
    --primary-hover: #b45309;
    --primary-rgb: 217, 119, 6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --input-bg: #f5f2eb;
    --card-radius: 0px;
}

/* --------------------------------------------------------------------------
   4. TEMA VELVET NIGHT (Cocktail, Club & Copas)
   Noche berenjena sofisticada con magenta neón y contrastes prémium
   -------------------------------------------------------------------------- */
[data-theme="velvet"], [data-theme="midnight"] {
    --bg-dark: #120b18;
    --bg-body: #120b18;
    --bg-panel: #1a1024;
    --bg-surface: #241633;
    --bg-card: #1a1024;
    --card-bg: #1a1024;
    --border-color: #3b2552;
    --text-main: #f5f3f7;
    --text-muted: #a79bb3;
    --primary: #ec4899;
    --primary-hover: #db2777;
    --primary-rgb: 236, 72, 153;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --input-bg: rgba(255, 255, 255, 0.05);
    --card-radius: 0px;
}

/* Compatibilidad retroactiva con configuraciones previas */
[data-theme="grey"] {
    --bg-dark: #2d3748;
    --bg-body: #2d3748;
    --bg-panel: #374151;
    --bg-surface: #4a5568;
    --bg-card: #374151;
    --card-bg: #374151;
    --border-color: #4a5568;
    --text-main: #f7fafc;
    --text-muted: #cbd5e0;
    --primary: #3182ce;
    --primary-hover: #2b6cb0;
    --primary-rgb: 49, 130, 206;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --input-bg: rgba(255, 255, 255, 0.05);
    --card-radius: 0px;
}

[data-theme="nature"] {
    --bg-dark: #1b2e26;
    --bg-body: #1b2e26;
    --bg-panel: #243d32;
    --bg-surface: #2e4d40;
    --bg-card: #243d32;
    --card-bg: #243d32;
    --border-color: #3d6353;
    --text-main: #e6f4ee;
    --text-muted: #a3c4b5;
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-rgb: 16, 185, 129;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --input-bg: rgba(255, 255, 255, 0.05);
    --card-radius: 0px;
}

/* --------------------------------------------------------------------------
   REGLA GLOBAL DE DISEÑO: BORDER-RADIUS CERO Y SELECTS SÓLIDOS DE ALTA CALIDAD
   Garantiza que ningún select sea transparente ni tenga esquinas redondeadas
   -------------------------------------------------------------------------- */
select.form-control,
select,
input.form-control,
textarea.form-control,
.form-control,
button,
.btn,
.card,
.modal-content,
.theme-card,
.badge {
    border-radius: 0px !important;
}

select.form-control,
select {
    background-color: var(--card-bg, #ffffff) !important;
    color: var(--text-main, #1c1917) !important;
    border: 1px solid var(--border-color, #d8d0c3) !important;
    border-radius: 0px !important;
    padding: 10px 14px !important;
    font-weight: 600 !important;
    outline: none !important;
    box-shadow: none !important;
}

select.form-control option,
select option {
    background-color: var(--card-bg, #ffffff) !important;
    color: var(--text-main, #1c1917) !important;
    padding: 12px 14px !important;
    font-weight: 500;
}

[data-theme="dark"] select.form-control option,
[data-theme="dark"] select option,
[data-theme="oled"] select.form-control option,
[data-theme="oled"] select option,
[data-theme="velvet"] select.form-control option,
[data-theme="velvet"] select option {
    background-color: #111827 !important;
    color: #f8fafc !important;
}

[data-theme="restaurant"] select.form-control option,
[data-theme="restaurant"] select option,
[data-theme="bistro"] select.form-control option,
[data-theme="bistro"] select option,
[data-theme="light"] select.form-control option,
[data-theme="light"] select option {
    background-color: #ffffff !important;
    color: #1f2937 !important;
}

