/* Quarks — Pequeños impulsos. Grandes soluciones. (Ecosistema Nova) */

/* Aumento del 15% en el tamaño de las fuentes en toda la interfaz */
html {
    font-size: 115% !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Global Background Color: #F0F9FF */
body {
    background-color: #F0F9FF !important;
    color: #1e293b;
}

/* Custom smooth scrollbar (Light Theme) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #F0F9FF;
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.28);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.45);
}

/* Quarks Containers (Estilo AutoInvest — Ultra Limpio, Blanco Puro y Bordes Suaves) */
.quarks-cnt-white {
    background-color: #ffffff !important;
    border: 1px solid rgba(241, 245, 249, 0.95) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.025), 0 4px 10px -2px rgba(0, 0, 0, 0.015) !important;
}

/* Glassmorphism helpers */
.glass-panel {
    background: #ffffff;
    border: 1px solid rgba(241, 245, 249, 0.9);
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.025);
}

/* Pulse Glows */
@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.animate-pulse-subtle {
    animation: pulse-subtle 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Role Chip Active State */
.role-preset-chip.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.6);
    color: #047857;
    font-weight: 700;
}

/* Subtle floating micro-animation for Quarks Robot Mascot */
@keyframes robot-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-6px) rotate(1deg);
    }
}

.animate-robot-float {
    animation: robot-float 4.5s ease-in-out infinite;
}

/* ========================================================================= */
/* NAV BAR LATERAL IZQUIERDO: 18% DEL ANCHO DE PANTALLA Y 100% BLANCO        */
/* ========================================================================= */
#quarks-sidebar {
    background-color: #ffffff !important;
    border-right: 1px solid rgba(241, 245, 249, 0.95) !important;
    box-shadow: 2px 0 20px -4px rgba(15, 23, 42, 0.02) !important;
}

@media (min-width: 1024px) {
    #quarks-sidebar:not(.sidebar-collapsed) {
        width: 18vw !important;
        min-width: 220px !important;
    }
    #app-main-layout:not(.sidebar-collapsed-layout) {
        padding-left: 18vw !important;
    }
}

/* Sidebar Collapsed State */
#quarks-sidebar.sidebar-collapsed .sidebar-text {
    display: none !important;
}

#quarks-sidebar.sidebar-collapsed {
    width: 76px !important;
    min-width: 76px !important;
}

#quarks-sidebar.sidebar-collapsed a,
#quarks-sidebar.sidebar-collapsed button {
    justify-content: center !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}
