/* Sistema de estilos global SOLUCIONESCEL */

:root {
    /* Colores base */
    --bg-app: #0f172a;
    --glass-bg: rgba(30, 41, 59, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Radios y dimensiones */
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --offcanvas-width: 480px;
}

body {
    background-color: var(--bg-app);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    padding-top: 90px;
    min-height: 100vh;
    background-image: radial-gradient(circle at top right, #1e293b 0%, #0f172a 40%);
    overflow-y: scroll;
}

/* NAVBAR / HEADER UNIFICADO */

.navbar-custom {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    height: 70px;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(30px);
        padding: 1.5rem;
        margin-top: 1rem;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .nav-link {
        border-radius: 8px;
        padding: 0.75rem 1rem !important;
        transition: all 0.2s ease;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(59, 130, 246, 0.15);
    }
}

/* TARJETAS / GLASS CARDS */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stat-card {
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.metric-big {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* FILTROS TIPO CHIP */

.filter-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.filter-chip.active-danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* FORMULARIOS */

.form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(248, 250, 252, 0.7);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    border-radius: 12px;
    padding: 0.875rem 1.125rem;
    font-size: 0.9375rem;
    font-weight: 400;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-control::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.form-control:hover,
.form-select:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08), inset 0 1px 2px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    outline: none;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba(148, 163, 184, 0.8)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.form-select option {
    background-color: #1e293b;
    color: #f8fafc;
    padding: 0.5rem;
}

.form-select option:hover {
    background-color: #334155;
}

/* TABLAS */

.table-custom th {
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    text-transform: uppercase;
    font-weight: 600;
}

.table-custom td {
    background: transparent;
    padding: 1.2rem 1rem;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
    transition: background 0.2s;
}

.table-custom tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* MODALES Y OFFCANVAS */

.modal-glass {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-glass-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-glass-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-custom {
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.98));
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: -30px 0 60px rgba(0, 0, 0, 0.6), inset 1px 0 0 rgba(255, 255, 255, 0.03);
}

@media (min-width: 992px) {
    .offcanvas-custom {
        width: var(--offcanvas-width) !important;
    }
}

