:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --success-color: #00d284;
    --error-color: #ff5e5e;
    --warning-color: #ffcc00;
    --background: #f4f7f6;
    --card-bg: rgba(255, 255, 255, 0.9);
    --sidebar-width: 250px;
}

body {
    background-color: var(--background);
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

#wrapper {
    display: flex;
}

/* Sidebar */
#sidebar-wrapper {
    min-height: 100vh;
    width: var(--sidebar-width);
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#sidebar-wrapper .sidebar-heading {
    padding: 2rem 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#sidebar-wrapper .list-group-item {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    transition: 0.2s;
}

#sidebar-wrapper .list-group-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 1.8rem;
}

#sidebar-wrapper .list-group-item.active {
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    margin: 0 10px;
}

/* Page Content */
#page-content-wrapper {
    width: 100%;
}

.page-title {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* Cards Modern Layout */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.status-online { color: var(--success-color); }
.status-offline { color: var(--error-color); }

/* Topology Visualizer Container - Live Brain Style */
#topology-container {
    height: 700px;
    width: 100%;
    background: radial-gradient(circle at center, #0b0e14 0%, #000 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 125, 255, 0.1);
}

.vis-network:focus {
    outline: none;
}

/* Custom Tooltip Styling */
.vis-tooltip {
    background-color: rgba(0,0,0,0.8) !important;
    color: #fff !important;
    border: 1px solid #4a90e2 !important;
    border-radius: 10px !important;
    padding: 10px !important;
    font-family: 'Inter', sans-serif !important;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.4) !important;
}

/* Pulsing effect for live nodes */
@keyframes nodePulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px #4a90e2); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px #4a90e2); }
    100% { transform: scale(1); filter: drop-shadow(0 0 5px #4a90e2); }
}

.live-link {
    stroke-dasharray: 5;
    animation: dash 5s linear infinite;
}

@keyframes dash {
    from { stroke-dashoffset: 50; }
    to { stroke-dashoffset: 0; }
}

.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
}

/* AI Execution Area */
.ai-console {
    background: #000;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    padding: 20px;
    border-radius: 10px;
    height: 300px;
    overflow-y: auto;
}
