/* Terminal Design System & Custom Animations */
body {
    background-color: #0b0e11;
    color: #eaecef;
    font-feature-settings: "tnum" on, "lnum" on;
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: #0b0e11;
}

::-webkit-scrollbar-thumb {
    background: #2b3139;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #474d57;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 203, 129, 0.65);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(14, 203, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(14, 203, 129, 0);
    }
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(246, 70, 93, 0.75);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(246, 70, 93, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(246, 70, 93, 0);
    }
}

.dot-green {
    animation: pulse-green 1.8s infinite;
}

.dot-red {
    animation: pulse-red 1.2s infinite;
}

@keyframes flash-row {
    0% {
        background-color: rgba(240, 185, 11, 0.18);
    }
    100% {
        background-color: transparent;
    }
}

.flash-new {
    animation: flash-row 0.9s ease-out;
}

/* ============================================================
   ECOSYSTEM SIDEBAR & SHELL STYLES
   ============================================================ */
#ecosystemSidebar {
    transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

#ecosystemSidebar.sidebar-collapsed {
    margin-left: -16rem !important; /* Smoothly hides the 256px sidebar to the left */
}

/* Active Module Glow */
.sidebar-item-active {
    background: linear-gradient(90deg, rgba(240, 185, 11, 0.15) 0%, rgba(24, 29, 38, 0.95) 100%) !important;
    border-color: rgba(240, 185, 11, 0.6) !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(240, 185, 11, 0.12);
}

.sidebar-item-active .module-icon-wrap {
    transform: scale(1.08);
    filter: drop-shadow(0 0 6px rgba(240, 185, 11, 0.6));
}

/* Ecosystem Future Card Glow */
.ecosystem-card {
    background: linear-gradient(135deg, rgba(18, 22, 28, 0.85) 0%, rgba(24, 29, 38, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.ecosystem-card:hover {
    border-color: rgba(240, 185, 11, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5), 0 0 16px rgba(240, 185, 11, 0.08);
}
