/* assets/css/quantum.css */
/* THE 300% INTERFACE DESIGN SYSTEM */

:root {
    --quantum-blue: #0070ff;
    --quantum-emerald: #10b981;
    --quantum-glass-bg: rgba(255, 255, 255, 0.7);
    --quantum-glass-border: rgba(255, 255, 255, 0.4);
    --quantum-sidebar-bg: #030712;
    --quantum-accent: #facc15;
    --quantum-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* GLASSMORPHISM UTILITIES */
.quantum-glass {
    background: var(--quantum-glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--quantum-glass-border);
    box-shadow: var(--quantum-shadow);
}

.quantum-card {
    border-radius: 24px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quantum-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0, 112, 255, 0.15);
}

/* UNIVERSAL VIEWPORT STYLES */
.universal-viewport {
    display: flex;
    height: 100%;
    gap: 12px;
    overflow: hidden;
}

.main-content-flow {
    flex: 1;
    overflow-y: auto;
    border-radius: 16px;
    background: white;
}

.contextual-aside {
    width: 0;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    background: #f8fafc;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

.contextual-aside.active {
    width: 400px;
    opacity: 1;
    border: 1px solid #e2e8f0;
}

/* PREDICTIVE GHOSTING */
.input-predictive {
    position: relative;
}

.input-predictive::after {
    content: attr(data-suggestion);
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    opacity: 0.5;
    font-style: italic;
}

/* QUANTUM BUTTONS */
.btn-quantum {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-quantum:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 112, 255, 0.3);
}

/* RADIANT GLOW FOR BALANCED STATE */
.radiant-balanced {
    position: relative;
    overflow: hidden;
}

.radiant-balanced::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 0deg, transparent, var(--quantum-emerald), transparent);
    animation: rotate-glow 4s linear infinite;
    z-index: -1;
}

@keyframes rotate-glow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* HIGH-PERFORMANCE LISTS (PREMIUM TABLES) */
.premium-table-container {
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.premium-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.premium-table thead th {
    background: #0f172a;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem;
    border-bottom: 2px solid #1e293b;
}

.premium-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.premium-table tbody tr:hover {
    background: #f8fafc;
}

.premium-table td {
    padding: 1rem;
    color: #334155;
    font-size: 12px;
}

/* MODULAR MOBILE GRID */
.mobile-grid-item-q {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    gap: 0.5rem;
}

.mobile-grid-item-q:active {
    background: var(--quantum-blue);
    transform: scale(0.95);
}

.mobile-grid-icon {
    font-size: 1.5rem;
}

.mobile-grid-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* QUANTUM SUBMENU GRID (High-Impact 'War Room' Layout) */
.quantum-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
    padding: 0.6rem;
    background: rgba(15, 23, 42, 0.85);
    border-radius: 1.25rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    margin: 0.6rem 0.2rem;
    backdrop-filter: blur(16px);
}

.quantum-nav-grid.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.nav-card-q {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    gap: 0.35rem;
    position: relative;
    overflow: hidden;
}

.nav-card-q:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.nav-card-q .card-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
    transition: transform 0.4s ease;
}

.nav-card-q .card-label {
    font-size: 7.5px;
    font-weight: 950;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    z-index: 1;
    text-align: center;
    line-height: 1.1;
    transition: all 0.3s ease;
}

.nav-card-q:hover .card-label {
    color: #fff;
    letter-spacing: 0.22em;
}

.nav-card-q.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--quantum-blue);
    position: relative;
}

.nav-card-q.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: var(--quantum-accent);
    border-radius: 50%;
}

/* QUANTUM CONSOLE (Ctrl+K) */
.quantum-console-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.quantum-console-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.quantum-console-box {
    width: 100%;
    max-width: 650px;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(59, 130, 246, 0.2);
    overflow: hidden;
    transform: scale(0.95) translateY(-20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quantum-console-overlay.active .quantum-console-box {
    transform: scale(1) translateY(0);
}

.console-input-wrapper {
    position: relative;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.console-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    outline: none;
    padding-left: 2rem;
}

.console-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #3b82f6;
    font-size: 1.3rem;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.console-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.console-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.console-item:hover,
.console-item.selected {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.item-icon-q {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.item-details {
    flex: 1;
}

.item-name {
    color: #f8fafc;
    font-weight: 600;
    font-size: 0.95rem;
}

.item-desc {
    color: #94a3b8;
    font-size: 0.8rem;
}

.console-kbd {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.7rem;
    color: #64748b;
}

/* ACCOUNTING GUARDIAN (Real-time Auditor) */
.guardian-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 320px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 1.25rem;
    padding: 1.25rem;
    z-index: 10001;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.guardian-toast.show {
    transform: translateX(0);
}

.guardian-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.guardian-pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.guardian-title {
    color: #10b981;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.guardian-msg {
    color: #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* PROFILE BUTTONS */
.profile-btn {
    border: 1px solid transparent;
    color: #64748b;
}

.profile-btn.active-pyme {
    background: #ecfdf5;
    color: #059669;
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.profile-btn.active-mediana {
    background: #eff6ff;
    color: #2563eb;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.profile-btn.active-grande {
    background: #f8fafc;
    color: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    font-weight: 950;
}