/* ================================
   HOTEL SYSTEM PRO - STYLES.CSS
   Tema Futurista HUD Neón
   Versión: 3.3 - CON COLORES EN MONTOS
================================ */

/* ================================
   VARIABLES
================================ */
:root {
    --bg-primary: #0a0e1a;
    --bg-navbar: #0d1220;
    --accent-cyan: #00d4ff;
    --accent-blue: #00aaff;
    --text-primary: #e6f7ff;
    --border-glow: rgba(0, 180, 255, 0.5);
    --color-ingreso: #4ade80;
    --color-egreso: #ff6b6b;
}

/* ================================
   BASE
================================ */
* {
    box-sizing: border-box;
}

html,
body {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    padding: 0;
}

/* Grid de fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 170, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 170, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Containers principales transparentes */
#content,
#app,
main,
.container,
.max-w-7xl,
.mx-auto {
    background: transparent !important;
}

/* ================================
   NAVBAR - FORZAR OSCURO
================================ */
#navbar,
nav,
header,
.navbar,
.header {
    background: var(--bg-navbar) !important;
    border-bottom: 1px solid rgba(0, 180, 255, 0.3) !important;
}

#navbar *,
nav *,
header * {
    color: var(--text-primary) !important;
}

#navbar a,
#navbar button,
nav a,
nav button {
    color: var(--text-primary) !important;
    background: transparent !important;
}

#navbar a:hover,
#navbar button:hover,
nav a:hover,
nav button:hover {
    background: rgba(0, 170, 255, 0.1) !important;
    color: var(--accent-cyan) !important;
}

/* ================================
   CARDS - TRANSPARENTES
================================ */
.card,
.bg-white,
.rounded-lg,
.shadow,
.shadow-lg,
div[class*="rounded"],
div[class*="shadow"] {
    background: rgba(26, 31, 46, 0.3) !important;
    border: 2px solid var(--border-glow) !important;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(8px);
    color: var(--text-primary) !important;
}

/* Excepción: Modales con IDs específicos necesitan fondo sólido */
#task-modal > div,
#export-modal > div,
#preview-modal > div {
    background: rgba(13, 18, 32, 0.98) !important;
    border: 2px solid rgba(0, 180, 255, 0.5) !important;
}

/* Excepción: Elementos dentro de modales de exportación/preview */
#export-modal .bg-white,
#preview-modal .bg-white {
    background: rgba(13, 18, 32, 0.6) !important;
}

/* ================================
   TEXTO
================================ */
h1, h2, h3, h4, h5, h6,
.text-2xl,
.text-3xl,
.text-4xl,
.text-xl,
.text-lg {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.text-4xl,
.text-3xl {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5) !important;
}

p, span, div, label {
    color: var(--text-primary) !important;
}

.text-gray-600,
.text-gray-500,
.text-gray-400,
.text-slate-600,
.text-slate-500,
.text-slate-700,
.text-slate-800 {
    color: rgba(230, 247, 255, 0.8) !important;
}

.text-sm,
.text-xs {
    color: rgba(230, 247, 255, 0.8) !important;
}

/* ================================
   BADGES - SIN FONDO, SOLO BORDE
================================ */
.badge,
.pill,
span.rounded,
span.rounded-full,
span.px-2,
span.px-3,
span[class*="bg-"] {
    background: transparent !important;
    border: 2px solid !important;
    padding: 4px 12px !important;
    border-radius: 16px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    display: inline-block !important;
}

/* EGRESO = Rojo */
span.bg-red-100,
span.text-red-600,
span.text-red-700,
.text-red-600,
span:contains("EGRESO"),
span:contains("EGR"),
span:contains("EOR") {
    background: transparent !important;
    color: var(--color-egreso) !important;
    border-color: #ef4444 !important;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* INGRESO = Verde */
span.bg-green-100,
span.text-green-600,
span.text-green-700,
.text-green-600,
span:contains("INGRESO"),
span:contains("ING") {
    background: transparent !important;
    color: var(--color-ingreso) !important;
    border-color: #22c55e !important;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

span.bg-blue-100,
span.text-blue-600,
.text-blue-600 {
    background: transparent !important;
    color: #60a5fa !important;
    border-color: #3b82f6 !important;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

span.bg-cyan-100,
span.text-cyan-600,
.text-cyan-600 {
    background: transparent !important;
    color: #22d3ee !important;
    border-color: #06b6d4 !important;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

/* ================================
   COLORES EN NÚMEROS/MONTOS
================================ */
/* Clases que puedes agregar desde JS */
.monto-egreso,
.egreso-amount {
    color: var(--color-egreso) !important;
    font-weight: 600 !important;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5) !important;
}

.monto-ingreso,
.ingreso-amount {
    color: var(--color-ingreso) !important;
    font-weight: 600 !important;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5) !important;
}

/* Colores genéricos */
.text-red-500,
.text-red-400 {
    color: var(--color-egreso) !important;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.text-green-500,
.text-green-400 {
    color: var(--color-ingreso) !important;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.text-blue-500,
.text-blue-400 {
    color: #60a5fa !important;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

/* ================================
   ICONOS
================================ */
svg,
i[data-lucide],
svg[data-lucide] {
    filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.4));
}

.text-cyan-400,
.text-blue-400,
.text-blue-500 {
    color: var(--accent-cyan) !important;
}

.text-yellow-400,
.text-yellow-500 {
    color: #fbbf24 !important;
}

.text-red-400,
.text-red-500 {
    color: #f87171 !important;
}

.text-green-400,
.text-green-500 {
    color: #4ade80 !important;
}

/* ================================
   BOTONES
================================ */
button,
.btn,
a.btn {
    background: rgba(0, 170, 255, 0.15) !important;
    border: 1px solid rgba(0, 180, 255, 0.4) !important;
    color: var(--text-primary) !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
}

button:hover,
.btn:hover {
    background: rgba(0, 170, 255, 0.3) !important;
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4) !important;
    transform: translateY(-2px);
}

/* Botones con fondo sólido - no aplicar transparencia */
button[style*="background:"],
button[style*="background-color:"] {
    border: none !important;
}

button.bg-blue-500,
button.bg-blue-600,
.bg-blue-500:not(span),
.bg-blue-600:not(span) {
    background: linear-gradient(135deg, #0088ff, #00aaff) !important;
    border: none !important;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.5) !important;
    color: white !important;
}

button.bg-red-500,
button.bg-red-600,
.bg-red-500:not(span),
.bg-red-600:not(span) {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: none !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4) !important;
    color: white !important;
}

button.bg-green-500,
button.bg-green-600,
.bg-green-500:not(span),
.bg-green-600:not(span) {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    border: none !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4) !important;
    color: white !important;
}

button.bg-slate-900,
.bg-slate-900:not(span) {
    background: linear-gradient(135deg, #1e293b, #0f172a) !important;
    border: none !important;
    box-shadow: 0 0 20px rgba(15, 23, 42, 0.6) !important;
    color: white !important;
}

/* ================================
   INPUTS Y FORMULARIOS
================================ */
input:not([type="checkbox"]),
textarea,
select {
    background: rgba(10, 14, 26, 0.4) !important;
    border: 1px solid rgba(0, 180, 255, 0.3) !important;
    color: var(--text-primary) !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
}

input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4) !important;
    background: rgba(10, 14, 26, 0.6) !important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(230, 247, 255, 0.3) !important;
}

/* ================================
   TOGGLES / SWITCHES
================================ */
input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 44px !important;
    height: 24px !important;
    background: #000000 !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 24px !important;
    position: relative !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

input[type="checkbox"]::before {
    content: '' !important;
    position: absolute !important;
    width: 18px !important;
    height: 18px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    top: 1px !important;
    left: 1px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

input[type="checkbox"]:checked {
    background: #00d4ff !important;
    border-color: #00aaff !important;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.6) !important;
}

input[type="checkbox"]:checked::before {
    left: 21px !important;
}

/* ================================
   TABLAS - HOVER SIN BLANCO
================================ */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

thead {
    background: rgba(0, 170, 255, 0.05) !important;
}

th {
    color: var(--accent-cyan) !important;
    font-weight: 600 !important;
    padding: 12px !important;
    border-bottom: 2px solid rgba(0, 180, 255, 0.3) !important;
}

td {
    padding: 12px !important;
    border-bottom: 1px solid rgba(0, 180, 255, 0.1) !important;
    color: var(--text-primary) !important;
}

tbody tr:hover,
tbody tr:hover td,
tr:hover,
tr:hover td,
li:hover {
    background: rgba(0, 170, 255, 0.05) !important;
}

*:hover {
    background-color: inherit;
}

.hover\:bg-gray-50:hover,
.hover\:bg-slate-50:hover,
.hover\:bg-white:hover,
.hover\:bg-gray-100:hover {
    background: rgba(0, 170, 255, 0.05) !important;
}

/* ================================
   LINKS
================================ */
a {
    color: var(--accent-cyan) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px var(--accent-cyan);
}

/* ================================
   BORDES
================================ */
.border,
.border-b,
.border-t,
.border-l,
.border-r {
    border-color: rgba(0, 180, 255, 0.2) !important;
}

.border-l-4 {
    border-left-width: 4px !important;
}

.border-red-500 {
    border-color: #ef4444 !important;
}

.border-green-500 {
    border-color: #22c55e !important;
}

/* ================================
   SCROLLBAR
================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 14, 26, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00aaff, #0088dd);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00d4ff, #00aaff);
}

/* ================================
   BACKGROUNDS FORZADOS
================================ */
.bg-slate-50,
.bg-gray-50,
.bg-gray-100,
.bg-white {
    background: transparent !important;
}

.grid,
.flex {
    background: transparent !important;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    input[type="checkbox"] {
        width: 40px !important;
        height: 22px !important;
    }
    
    input[type="checkbox"]::before {
        width: 16px !important;
        height: 16px !important;
    }
    
    input[type="checkbox"]:checked::before {
        left: 19px !important;
    }
}

/* ================================
   ANIMACIONES
================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
div[class*="rounded"] {
    animation: fadeIn 0.3s ease-out;
}

/* ================================
   FIN
================================ */
