/* GezTicket - Marine Support & IT - Custom Theme Styles */

/* 1. MODO MARINE (MODO PRINCIPAL) */
:root, [data-theme="marine"] {
    --bg-page: #0a1122;
    --bg-surface: #0f1c36;
    --bg-surface-hover: #15274d;
    --bg-card: #0f1c36;
    --bg-topbar: #0d172e;
    --bg-sidebar: #091021;
    --border-color: #1e293b;
    --border-light: #25334d;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-red: #be123c;
    --accent-red-hover: #9f1239;
    --accent-marine: #1d4ed8;
    --input-bg: #091021;
    --input-border: #1e293b;
}

/* 2. MODO LIGHT (MODO CLARO) */
[data-theme="light"] {
    --bg-page: #f4f6fa;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f8fafc;
    --bg-card: #ffffff;
    --bg-topbar: #ffffff;
    --bg-sidebar: #0d172e; /* Contraste elegante con sidebar marino */
    --border-color: #e2e8f0;
    --border-light: #edf2f7;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-red: #b91c1c;
    --accent-red-hover: #991b1b;
    --accent-marine: #1d4ed8;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
}

/* 3. MODO DARK (MODO OSCURO PURO) */
[data-theme="dark"] {
    --bg-page: #030712;
    --bg-surface: #111827;
    --bg-surface-hover: #1f2937;
    --bg-card: #111827;
    --bg-topbar: #0b0f19;
    --bg-sidebar: #030712;
    --border-color: #1f2937;
    --border-light: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-red: #dc2626;
    --accent-red-hover: #b91c1c;
    --accent-marine: #2563eb;
    --input-bg: #030712;
    --input-border: #374151;
}

/* Aplicación general de variables */
body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    transition: background-color 0.25s ease, color 0.25s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Clases de utilidad para componentes de interfaz */
.theme-surface {
    background-color: var(--bg-surface);
}

.theme-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.theme-topbar {
    background-color: var(--bg-topbar);
    border-bottom: 1px solid var(--border-color);
}

.theme-sidebar {
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
}

.theme-border {
    border-color: var(--border-color);
}

.theme-text-primary {
    color: var(--text-primary);
}

.theme-text-secondary {
    color: var(--text-secondary);
}

.theme-text-muted {
    color: var(--text-muted);
}

.theme-btn-red {
    background-color: var(--accent-red);
    color: #ffffff;
    transition: background-color 0.2s ease;
}

.theme-btn-red:hover {
    background-color: var(--accent-red-hover);
}

.theme-btn-marine {
    background-color: #1e3a8a;
    color: #ffffff;
    transition: background-color 0.2s ease;
}

.theme-btn-marine:hover {
    background-color: #172554;
}

.theme-input {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
}

.theme-input:focus {
    outline: none;
    border-color: var(--accent-red);
}

/* Transiciones suaves en modales y paneles */
.dropdown-enter {
    animation: fadeInDown 0.15s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
