/* Estilos para el Portal Web Puerto Gas C.A. - Tema Claro Profesional */

:root {
    --bg-main: #f8fafc; /* slate-50 */
    --text-main: #0f172a; /* slate-900 */
    --border-light: rgba(15, 23, 42, 0.06);
    
    /* Variables de Glassmorphism Claro */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(15, 23, 42, 0.05);
    
    /* Fondos decorativos */
    --blob-opacity: 0.15;
}

/* Forzar valores por defecto claros */
html, body {
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Paneles translúcidos claros premium */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.02), 0 2px 8px -1px rgba(15, 23, 42, 0.02);
}

.glassmorphism-light {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
}

/* Animación de desvanecimiento suave para el Chatbot */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Barra de desplazamiento personalizada clara */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; /* slate-300 */
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; /* slate-400 */
}

/* Animaciones flotantes para bombonas en el fondo */
@keyframes floatUp {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(6deg) scale(1.02);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes floatDown {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(20px) rotate(-6deg) scale(0.98);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.animate-float-up {
    animation: floatUp 12s ease-in-out infinite;
}

.animate-float-down {
    animation: floatDown 15s ease-in-out infinite;
}

/* ==============================================================================
   SIDEBAR PREMIUM ACCENTS
   ============================================================================== */
.shadow-glow {
    box-shadow: 0 0 12px 2px rgba(34, 197, 94, 0.4);
}

.active-sidebar-item {
    position: relative;
    overflow: hidden;
}

.active-sidebar-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 3.5px;
    background-color: #22c55e;
    border-radius: 0 4px 4px 0;
}

/* Gradiente animado en títulos */
@keyframes gradient-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.moving-gradient-text {
    background: linear-gradient(135deg, #0066c7, #16a34a, #0252a1, #22c55e, #0b3b6e) !important;
    background-size: 300% 300% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline-block !important;
    animation: gradient-move 8s ease infinite !important;
}

/* ==============================================================================
   SIDEBAR SEMI-COLLAPSIBLE (COMPACT MODE)
   ============================================================================== */
#sidebar-container {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#sidebar-toggle-icon {
    transition: transform 0.25s ease;
}

@media (min-width: 768px) {
    .sidebar-collapsed #sidebar-container {
        width: 5rem !important; /* w-20 */
    }
    
    .sidebar-collapsed .sidebar-hide-on-collapsed {
        display: none !important;
    }
    
    .sidebar-collapsed .sidebar-show-on-collapsed {
        display: block !important;
    }
    
    .sidebar-collapsed .sidebar-center-on-collapsed {
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .sidebar-collapsed .sidebar-nav-item {
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .sidebar-collapsed .sidebar-nav-item span {
        display: none !important;
    }
    
    .sidebar-collapsed #sidebar-toggle-icon {
        transform: rotate(180deg);
    }
}



