@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --primary: 190 95% 39%;
    --primary-color: hsl(190, 95%, 39%);
    --accent: 280 85% 60%;
    --accent-color: hsl(280, 85%, 60%);
    --background: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.6);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #020617; /* Deep Navy */
    background-image: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.15), transparent 60%);
    color: #f8fafc;
    margin: 0;
    overflow-x: hidden;
}

/* Glassmorphism */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a; 
}
::-webkit-scrollbar-thumb {
    background: #334155; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569; 
}

/* Matrix Tree Connectors */
.matrix-connector-vertical {
    position: absolute;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.matrix-connector-horizontal {
    position: absolute;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

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

@keyframes progress-shine {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

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

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

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: rgba(15, 23, 42, 0.95);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.75rem;
    pointer-events: none;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Sidebar Active State */
.nav-item.active {
    background-color: rgba(6, 182, 212, 0.2);
    color: #22d3ee; /* cyan-400 */
    border: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
}

/* Tabs */
.tab-btn.active {
    background-color: var(--primary-color);
    color: #000;
}
