﻿/* Sistema CST-ERP - Design System (Obsidian & Cyber Gold) */

:root {
    --primary: #eab308;
    /* Cyber Gold */
    --primary-hover: #facc15;
    /* Bright Cyber Gold */
    --primary-dark: #ca8a04;
    /* Metallic Gold Border */
    --secondary: #94a3b8;
    --accent: #f59e0b;
    --background: #090d16;
    /* Deep Obsidian */
    --surface: #0f172a;
    /* Obsidian Surface */
    --surface-card: #131d31;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border: rgba(234, 179, 8, 0.18);
    --border-subtle: #1e293b;
    --success: #10b981;
    --warning: #facc15;
    --danger: #ef4444;
    --glass: rgba(15, 23, 42, 0.88);
    --glass-border: rgba(234, 179, 8, 0.22);
}

/* Breadcrumbs Premium */
.breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--secondary) !important;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    min-height: 100vh;
}

/* Glassmorphism Navbar */
.navbar-custom {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

/* Main Content */
.main-container {
    padding-top: 80px;
    padding-bottom: 40px;
}

/* Cards & Surfaces */
.card-premium {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* overflow: hidden; Removed to allow dropdowns to float outside the card */
}

/* Prevención de desbordamiento en títulos */
.card-premium h1, .card-premium h2, .card-premium h3, .card-premium h4, .card-premium h5,
.card-premium .h1, .card-premium .h2, .card-premium .h3, .card-premium .h4, .card-premium .h5 {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Permitir hasta 2 líneas antes de truncar */
    -webkit-box-orient: vertical;
    white-space: normal; /* Permitir el salto de línea */
}

/* Estandarización de botones de acción en listados */
.btn-group .btn, .btn-group form, .btn-group form .btn {
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 7. BOTÓN IMPRIMIR PREMIUM (Celeste Outline) */
.btn-print-premium {
    background: transparent !important;
    color: #0ea5e9 !important; /* Celeste */
    border: 1.5px solid #0ea5e9 !important;
    border-radius: 50px !important;
    padding: 6px 20px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.btn-print-premium i {
    font-size: 1.1rem !important;
    transition: transform 0.3s ease !important;
}

.btn-print-premium:hover, 
.btn-print-premium:focus {
    background-color: #0ea5e9 !important; /* Celeste */
    color: #000000 !important; /* Texto Negro */
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4) !important;
    transform: translateY(-1px) !important;
}

.btn-print-premium:hover i {
    color: #000000 !important;
    transform: scale(1.1) !important;
}

.btn-print-premium:active {
    transform: translateY(0) !important;
}


/* Prevenir que el logo del reporte crezca si llegara a mostrarse por error */
.report-header-top img {
    max-height: 45px !important;
    width: auto !important;
    object-fit: contain !important;
}

.card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    color: #090d16 !important;
    border: 1px solid #ca8a04;
    border-radius: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #fef08a 0%, #facc15 100%);
    color: #000000 !important;
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.45);
    transform: translateY(-2px);
}

.btn-outline-primary-custom {
    border: 1px solid var(--primary);
    color: #facc15 !important;
    background: transparent;
    transition: all 0.2s ease;
}

.btn-outline-primary-custom:hover {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    color: #090d16 !important;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.35);
}

.btn-outline-info-custom {
    background: transparent !important;
    color: #38bdf8 !important; /* Celeste/Cyan brillante para máxima legibilidad */
    border: 1.5px solid #38bdf8 !important;
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-info-custom:hover {
    background-color: #38bdf8 !important;
    color: #000000 !important; /* Excelente contraste negro sobre celeste */
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4) !important;
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Overrides para botones outline en tema oscuro */
.btn-outline-success {
    color: #6ee7b7 !important; /* Verde esmeralda claro */
    border-color: #10b981 !important;
}
.btn-outline-success:hover {
    background-color: #10b981 !important;
    color: white !important;
}

.btn-outline-warning {
    color: #fde047 !important; /* Amarillo claro */
    border-color: #f59e0b !important;
}
.btn-outline-warning:hover {
    background-color: #f59e0b !important;
    color: #1e3a8a !important; /* Navy blue para contraste en fondo amarillo */
}

.btn-outline-light {
    color: #f8f9fa !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
    transition: all 0.25s ease;
}
.btn-outline-light:hover {
    background-color: #f8f9fa !important;
    color: #0f172a !important;
    border-color: #f8f9fa !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 2rem 0;
    text-align: center;
}

/* Custom Table Alerts */
.table-danger-custom {
    background-color: rgba(239, 68, 68, 0.05) !important;
}

.table-warning-custom {
    background-color: rgba(245, 158, 11, 0.05) !important;
}

.smaller {
    font-size: 0.75rem;
}

/* Submenús en Dropdowns */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    display: none; /* Asegurar que esté oculto por defecto */
}

/* Indicador de flecha para submenús */
.dropdown-submenu > a::after {
    display: inline-block;
    margin-left: auto;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid transparent;
    border-right: 0;
    border-bottom: 0.3em solid transparent;
    border-left: 0.3em solid;
    float: right;
    margin-top: 7px;
    opacity: 0.5;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease forwards;
}

/* Switches Personalizados (ARI Style) */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-switch .form-check-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(255, 255, 255, 0.25)'/%3e%3c/svg%3e");
    transition: background-position 0.15s ease-in-out, background-color 0.2s ease;
    cursor: pointer;
}

.form-switch .form-check-input:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.4); /* Brillo rojo */
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

/* Report Styles */
.table-dark {
    --bs-table-bg: transparent;
    border-color: rgba(255, 255, 255, 0.05);
}

.progress {
    border-radius: 10px;
}

/* Table Text Optimization */
.table {
    color: var(--text-primary) !important;
    background-color: transparent !important;
    --bs-table-bg: transparent !important;
}

.text-primary-dark, .text-primary-dark td {
    color: #1e3a8a !important; /* Navy Blue para contraste en fondos claros */
}

.table-warning td {
    color: #1e3a8a !important;
}

.table-danger td {
    color: #ffffff !important;
}

.table-dark {
    --bs-table-color: var(--text-primary) !important;
    --bs-table-hover-color: var(--text-primary) !important;
    --bs-table-border-color: rgba(255, 255, 255, 0.05);
}

.table thead th {
    color: var(--text-secondary);
    font-weight: 600;
}

.table tbody td {
    color: #fef08a;
    /* Amarillo pastel para análisis de legibilidad */
}

/* Reglas de Estética para Impresión / Contenedores Claros */
.print-container td,
.print-container .table tbody td,
.print-container table tbody td {
    color: #000000 !important;
}


.text-secondary {
    color: var(--text-secondary) !important;
}
/* Form Labels */
label {
    color: var(--text-secondary);
    font-weight: 600;
}

.form-floating > label {
    color: #94a3b8 !important; 
    font-weight: 400;
    padding-top: 0.75rem !important; 
    font-size: 0.85rem !important; 
    transition: transform .15s ease-in-out, font-size .15s ease-in-out, opacity .15s ease-in-out !important;
    z-index: 20 !important; /* Asegurar que siempre esté al frente */
}

.form-floating > .form-control::placeholder {
    color: transparent !important;
}

.form-floating > .form-control:focus::placeholder {
    color: #94a3b8 !important;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label,
.form-floating > .form-select:focus ~ label {
    background-color: #ffffff !important; 
    transform: translateY(-1.7rem) scale(.85) !important; 
    padding: 0 10px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important; /* Centrado absoluto (horizontal y vertical) */
    border-radius: 4px !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 30 !important;
    text-transform: uppercase;
    width: fit-content !important;
    left: 1rem !important; 
    pointer-events: none;
}

/* Color en reposo cuando tiene valor */
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: #0f172a !important; /* Slate oscuro legible sobre fondo blanco */
}

/* Color destacado en foco */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-select:focus ~ label {
    color: #dc2626 !important; /* Rojo en foco */
}

/* Prevenir superposición de etiquetas form-floating con títulos de sección */
h4 + .row, h5 + .row, h6 + .row {
    margin-top: 0.75rem !important;
}


/* Regla Especial: Campos Badge Centrados (Spinners y Selectores Críticos) */
.label-badge-ari-floating {
    color: #dc2626 !important;
    background-color: #ffffff !important;
    transform: translateY(-1.7rem) scale(.85) !important;
    padding: 0 15px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important; /* Estándar ARI para Números: Centro */
    border-radius: 6px !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 31 !important;
    text-transform: uppercase;
    width: fit-content !important;
    margin: 0 auto !important;
    left: 0 !important;
    right: 0 !important;
    pointer-events: none;
    line-height: 1 !important;
}

/* Estilización de Spinners y Alineación Numérica */
input[type=number] {
    -moz-appearance: textfield;
    text-align: center; /* Números centrados por defecto */
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    margin: 0; 
}


/* Form Input Styles - ARI Standard */
.form-control, .form-select, input, select, textarea {
    background-color: var(--background) !important;
    border-color: var(--border) !important;
    color: #fef08a !important; /* Amarillo pastel para datos ingresados */
}

.form-control:focus, .form-select:focus, input:focus, select:focus, textarea:focus {
    background-color: var(--background) !important;
    color: #fef08a !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 38, 38, 0.25) !important;
}
/* Custom Action Buttons (Import/Export) - Enhanced Visibility */
.btn-import-custom {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: white !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-import-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
    filter: brightness(1.1);
    color: white !important;
}

.btn-export-custom {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
    color: white !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-export-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
    filter: brightness(1.1);
    color: white !important;
}

.btn-outline-secondary-custom {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 0.5rem;
    padding: 0.4rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-outline-secondary-custom:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--secondary);
    color: var(--text-primary);
}

/* Estilo para sugerencias (Placeholders) */
::placeholder {
    color: #94a3b8 !important; /* Gris claro (Slate 400) para mejor legibilidad */
}
:-ms-input-placeholder { color: #94a3b8 !important; }
::-ms-input-placeholder { color: #94a3b8 !important; }
/* Estilos Premium Adicionales */
.text-primary-custom {
    color: var(--text-primary) !important; /* Blanco según preferencia del usuario */
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.text-data-custom {
    color: #fef08a !important; /* Amarillo pastel para datos */
}

.table-dark-custom {
    background-color: var(--surface) !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}

.table-dark-custom thead th {
    background-color: transparent !important;
    border: none !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 1rem !important;
}

.table-dark-custom tbody tr {
    background-color: rgba(255, 255, 255, 0.02) !important;
    transition: all 0.2s ease;
}

.table-dark-custom tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    transform: scale(1.002);
}

.table-dark-custom tbody td {
    padding: 1rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.table-dark-custom tbody td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.table-dark-custom tbody td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* TomSelect Dark Mode Optimization (Rule #19) */
.ts-wrapper {
    width: 100% !important;
}
.ts-dropdown, .ts-control, .ts-control input {
    background-color: #1a1d21 !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.1) !important;
}
.ts-dropdown {
    z-index: 2000 !important; /* Ensure it's above modals and cards */
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}
.ts-dropdown .active {
    background-color: var(--accent) !important;
    color: #fff !important;
}
.ts-dropdown .option {
    color: #ffffff !important;
    padding: 8px 12px !important;
}
.ts-control {
    border-radius: 0.5rem !important;
    padding: 0.5rem 0.75rem !important;
}

/* ============================================================
   BANNERS DE ALTO IMPACTO (REGLA #21)
   ============================================================ */
.banner-aurora-promo {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #7f1d1d 100%) !important;
    position: relative;
    overflow: hidden;
}

.banner-aurora-news {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%) !important;
    position: relative;
    overflow: hidden;
}

.banner-aurora-promo::before, .banner-aurora-news::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    animation: aurora-flow 15s linear infinite;
    z-index: 1;
}

@keyframes aurora-flow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-glow-ari {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.btn-glow-ari:hover {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
}

.banner-float-img {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    z-index: 2;
}

.carousel-item:hover .banner-float-img {
    transform: scale(1.05) rotate(2deg);
}

.banner-content-z {
    position: relative;
    z-index: 5;
}
/* ============================================================
   RESPONSIVE DESIGN (ARI MOBILE-FIRST)
   ============================================================ */

@media (max-width: 991.98px) {
    .navbar-custom .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .main-container {
        padding-top: 70px;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    /* Transformar tablas en Cards (Regla 2.4) */
    .table-responsive table thead {
        display: none;
    }
    
    .table-responsive table, 
    .table-responsive table tbody, 
    .table-responsive table tr, 
    .table-responsive table td {
        display: block;
        width: 100%;
    }
    
    .table-responsive table tr {
        margin-bottom: 1.5rem;
        background: rgba(255,255,255,0.03);
        border-radius: 1rem;
        border: 1px solid var(--border);
        padding: 0.5rem;
    }
    
    .table-responsive table td {
        text-align: right;
        padding-left: 50% !important;
        position: relative;
        border: none !important;
    }
    
    .table-responsive table td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: 45%;
        text-align: left;
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 0.75rem;
        text-transform: uppercase;
    }

    /* Dashboard Grid (Regla 2.5) */
    .row > * {
        margin-bottom: 1rem;
    }

    /* Buttons Mobile */
    .btn-group {
        display: flex;
        width: 100%;
    }
    
    .btn-group .btn {
        flex: 1;
    }
}

/* ============================================================
   SISTEMA DE REPORTERÍA PREMIUM ARI (REGLA #12)
   Optimización Universal para Impresión Profesional
   ============================================================ */


/* Fin de Site.css - Los estilos de reporte ahora están en reporting.css */

/* ============================================================
   SISTEMA DE NOTIFICACIONES PREMIUM (REGLA #35)
   ============================================================ */
.bell-shake {
    animation: swing-bell 0.8s ease;
}

@keyframes swing-bell {
    0% { transform: rotate(0); }
    15% { transform: rotate(15deg); }
    30% { transform: rotate(-12deg); }
    45% { transform: rotate(9deg); }
    60% { transform: rotate(-6deg); }
    75% { transform: rotate(3deg); }
    100% { transform: rotate(0); }
}

.notification-card {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-left: 4px solid var(--secondary) !important;
    border-radius: 0.5rem;
    padding: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
}

.notification-card:hover {
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.notification-card.unread {
    background: rgba(30, 41, 59, 0.4) !important;
    border-color: rgba(220, 38, 38, 0.2) !important;
}

.notification-card.priority-info {
    border-left-color: #0ea5e9 !important; /* Celeste */
}

.notification-card.priority-warning {
    border-left-color: #eab308 !important; /* Amarillo */
}

.notification-card.priority-critica {
    border-left-color: #ef4444 !important; /* Rojo */
}

.notification-card.priority-exito {
    border-left-color: #10b981 !important; /* Verde */
}

.text-warning-pastel {
    color: #fef08a !important;
}

.text-info-pastel {
    color: #bae6fd !important;
}

.notification-toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.notification-toast {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-left: 5px solid var(--primary) !important;
    border-radius: 0.5rem;
    padding: 1rem;
    width: 320px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.notification-toast.priority-info {
    border-left-color: #0ea5e9 !important;
}

.notification-toast.priority-warning {
    border-left-color: #eab308 !important;
}

.notification-toast.priority-critica {
    border-left-color: #ef4444 !important;
}

.notification-toast.priority-exito {
    border-left-color: #10b981 !important;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Premium Modals */
.modal-premium .modal-content,
.modal-premium.modal-content {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    border-radius: 1rem !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.modal-premium .modal-header,
.modal-premium.modal-content .modal-header {
    border-bottom: 1px solid var(--border) !important;
    background: rgba(0, 0, 0, 0.1) !important;
}

.modal-premium .modal-footer,
.modal-premium.modal-content .modal-footer {
    border-top: 1px solid var(--border) !important;
    background: rgba(0, 0, 0, 0.1) !important;
}

.modal-premium .stat-card {
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid var(--border) !important;
    border-radius: 0.75rem !important;
    padding: 1rem !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-premium .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.modal-premium .text-secondary {
    color: var(--text-secondary) !important;
}

.modal-premium .bg-dark {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--border) !important;
}

.text-danger-light {
    color: #fca5a5 !important;
}

/* =========================================================
   SweetAlert2 Dark Theme - Integración Estética Sistema CST-ERP
   ========================================================= */
.swal2-popup {
    background: #0f172a !important;
    background-color: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 1rem !important;
    color: #f8fafc !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

.swal2-title {
    color: #f8fafc !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.015em !important;
}

.swal2-html-container {
    color: #cbd5e1 !important;
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
}

.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}
.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ef4444 !important;
}

.swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

.swal2-icon.swal2-success {
    border-color: #10b981 !important;
    color: #10b981 !important;
}
.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #10b981 !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.swal2-icon.swal2-info {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

.swal2-actions {
    margin-top: 1.25rem !important;
    gap: 0.75rem !important;
}

.swal2-confirm {
    background-color: #dc2626 !important;
    border: none !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    padding: 0.6rem 1.6rem !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35) !important;
    transition: all 0.2s ease !important;
}
.swal2-confirm:hover {
    background-color: #b91c1c !important;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.5) !important;
}

.swal2-cancel {
    background-color: #334155 !important;
    border: none !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    padding: 0.6rem 1.6rem !important;
    color: #f8fafc !important;
}
.swal2-cancel:hover {
    background-color: #475569 !important;
}

.swal2-close {
    color: #94a3b8 !important;
}
.swal2-close:hover {
    color: #f8fafc !important;
}

/* Utilidades Obsidian & Cyber Gold */
.text-gradient-gold {
    background: linear-gradient(135deg, #ffffff 0%, #fde047 35%, #eab308 70%, #ca8a04 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.btn-gold-gradient {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%) !important;
    color: #090d16 !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.35) !important;
    transition: all 0.25s ease !important;
}

.btn-gold-gradient:hover {
    background: linear-gradient(135deg, #fde047 0%, #facc15 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.5) !important;
    color: #090d16 !important;
}
