body {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
}

/* Hide default header and page-header for dashboard mode */
.header, .page-header, .footer {
    display: none !important;
}

/* Make main container full-height and remove padding */
.container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden;
}

/* Sci-Fi Navigation Window */
.sci-fi-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 30;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
    user-select: none;
}

.sci-fi-nav.expanded {
    width: 280px;
    height: auto;
    border-radius: 12px;
    padding: 20px;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.sci-fi-nav:hover {
    transform: scale(1.05);
}

.sci-fi-nav.expanded:hover {
    transform: none;
}

.nav-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    transition: all 0.3s ease;
}

.sci-fi-nav.expanded .nav-icon {
    display: none;
}

.nav-content {
    display: none;
    width: 100%;
}

.sci-fi-nav.expanded .nav-content {
    display: block;
}

.nav-title {
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 10px var(--primary-color);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-link {
    padding: 12px 15px;
    background: var(--primary-color-rgba);
    border: 1px solid var(--primary-color-rgba);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: linkSweep 2s linear infinite;
}

@keyframes linkSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

.nav-link:hover {
    background: var(--primary-color-rgba);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color-rgba);
    transform: translateX(5px);
}

/* Sci-Fi Title Window */
.sci-fi-title {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 20px 25px;
    z-index: 25;
    cursor: grab;
    user-select: none;
    min-width: 300px;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    box-shadow: 0 0 25px var(--primary-color-rgba);
}

.sci-fi-title.dragging {
    cursor: grabbing;
    z-index: 35;
    transform: scale(1.02);
    box-shadow: 0 0 40px var(--primary-color-rgb);
}

.sci-fi-title:hover {
    box-shadow: 0 0 35px var(--primary-color-rgb);
}

.title-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.title-icon {
    font-size: 2rem;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-color);
}

.title-text {
    flex: 1;
}

.title-main {
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 0 0 15px var(--primary-color);
}

.title-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.title-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid var(--primary-color-rgba);
}

/* Futuristic Dashboard Styles */
.sci-fi-dashboard {
    position: relative;
    width: 100vw;
    height: 100vh;
    /*background:*/
    /*    radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),*/
    /*    radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),*/
    /*    linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 20, 40, 0.95) 100%);*/
    overflow: hidden;
}

.central-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color-rgba) 0%, var(--secondary-color-rgba) 100%);
    box-shadow:
        0 0 50px rgba(var(--primary-color-rgb), 0.6),
        inset 0 0 30px rgba(var(--primary-color-rgb), 0.3);
    animation: centralPulse 3s ease-in-out infinite;
    cursor: pointer;
    z-index: 10;
}

@keyframes centralPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow:
            0 0 50px rgba(var(--primary-color-rgb), 0.6),
            inset 0 0 30px rgba(var(--primary-color-rgb), 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow:
            0 0 70px rgba(var(--primary-color-rgb), 0.8),
            inset 0 0 40px rgba(var(--primary-color-rgb), 0.5);
    }
}

.central-icon {
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-color);
    margin-bottom: 8px;
}

.central-text {
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.server-nodes {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
}

.server-node {
    position: absolute;
    width: 140px;
    height: 140px;
    border: 2px solid;
    border-radius: 12px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
    overflow: hidden;
    cursor: grab;
    user-select: none;
    z-index: 30;
}

.server-node.dragging {
    cursor: grabbing;
    z-index: 30;
    transform: scale(1.05);
    box-shadow: 0 0 30px currentColor;
    transition: none;
}

.server-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    animation: nodeSweep 2s linear infinite;
}

@keyframes nodeSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

.server-node.operational {
    border-color: var(--success-color);
    color: var(--success-color);
}

.server-node.degraded {
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.server-node.down {
    border-color: var(--error-color);
    color: var(--error-color);
}

.server-node:hover {
    box-shadow: 0 0 30px currentColor;
}

.server-node.active {
    box-shadow: 0 0 40px currentColor;
    z-index: 30;
}

.server-node.positioned {
    position: absolute !important;
    transform: none !important;
}

.node-content {
    padding: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 30;
}

.node-header {
    text-align: center;
    margin-bottom: 8px;
}

.node-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.node-status {
    font-size: 0.6rem;
    opacity: 0.8;
}

.node-metrics {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6rem;
    font-family: 'JetBrains Mono', monospace;
}

.mini-bar {
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.mini-fill {
    height: 100%;
    background: currentColor;
    transition: width 0.3s ease;
}

/* Server positioning around the circle */
.server-node:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.server-node:nth-child(2) { top: 15%; right: 15%; }
.server-node:nth-child(3) { bottom: 15%; right: 15%; }
.server-node:nth-child(4) { bottom: 0; left: 50%; transform: translateX(-50%); }
.server-node:nth-child(5) { bottom: 15%; left: 15%; }
.server-node:nth-child(6) { top: 15%; left: 15%; }

/* Detailed view panel - Now draggable */
.detail-panel {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 380px;
    height: 50vh;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 20;
    overflow-y: auto;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    box-shadow: 0 0 25px rgba(var(--primary-color-rgb), 0.4);
    opacity: 0;
    visibility: hidden;
    cursor: grab;
    user-select: none;
}

.detail-panel.active {
    opacity: 1;
    visibility: visible;
}

.detail-panel.dragging {
    cursor: grabbing;
    z-index: 35;
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 0 40px rgba(var(--primary-color-rgb), 0.6);
}

.detail-panel:hover {
    box-shadow: 0 0 35px rgba(var(--primary-color-rgb), 0.5);
}

.detail-header {
    padding: 20px;
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.3);
    text-align: left;
    cursor: grab;
    margin-bottom: 0 !important;
    display: block;
}

.detail-header.dragging {
    cursor: grabbing;
}

.detail-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1;
}

.detail-title {
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.detail-status {
    font-size: 0.8rem;
    opacity: 0.8;
}/* Sci-Fi Scrollbar Styles */
.detail-panel::-webkit-scrollbar {
    width: 12px;
    background: rgba(0, 0, 0, 0.3);
}

.detail-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 6px;
    border: 1px solid var(--primary-color-rgba);
    box-shadow: inset 0 0 10px var(--primary-color-rgba);
    position: relative;
}

.detail-panel::-webkit-scrollbar-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color-rgb), transparent);
    animation: scrollTrackSweep 3s linear infinite;
}

@keyframes scrollTrackSweep {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

.detail-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        var(--primary-color-rgb) 0%,
        var(--primary-color-rgb) 50%,
        var(--primary-color-rgb) 100%
    );
    border-radius: 6px;
    border: 1px solid var(--primary-color);
    box-shadow:
        0 0 10px var(--primary-color-rgb),
        inset 0 0 5px rgba(255, 255, 255, 0.2);
    position: relative;
    min-height: 20px;
}

.detail-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        var(--primary-color-rgb) 0%,
        var(--primary-color-rgba) 50%,
        var(--primary-color-rgb) 100%
    );
    box-shadow:
        0 0 15px var(--primary-color-rgb),
        inset 0 0 8px rgba(255, 255, 255, 0.3);
    transform: scaleX(1.1);
}

.detail-panel::-webkit-scrollbar-thumb:active {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.9) 0%,
        var(--primary-color-rgb) 50%,
        rgba(255, 255, 255, 0.9) 100%
    );
    box-shadow:
        0 0 20px var(--primary-color-rgb),
        inset 0 0 10px rgba(255, 255, 255, 0.4);
}

.detail-panel::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary-color-rgba);
}

/* Enhanced scrollbar with animated elements */
.detail-panel::-webkit-scrollbar-thumb::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 1px;
    animation: thumbGlow 2s ease-in-out infinite alternate;
}

@keyframes thumbGlow {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Alternative: More geometric sci-fi style */
.detail-panel.geometric-scroll::-webkit-scrollbar {
    width: 14px;
    background: transparent;
}

.detail-panel.geometric-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.9);
    border-left: 2px solid var(--primary-color);
    border-right: 1px solid var(--primary-color-rgba);
    clip-path: polygon(0 0, 100% 5px, 100% calc(100% - 5px), 0 100%);
}

.detail-panel.geometric-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border: none;
    clip-path: polygon(0 3px, calc(100% - 3px) 0, 100% calc(100% - 3px), 3px 100%);
    box-shadow:
        0 0 10px var(--primary-color),
        inset 0 0 5px rgba(255, 255, 255, 0.3);
}

.detail-panel.geometric-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color-rgb);
    box-shadow:
        0 0 15px var(--primary-color-rgb),
        inset 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Firefox support (limited styling options) */
.detail-panel {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color-rgb) rgba(0, 0, 0, 0.8);
}

/* Enhanced version with data stream effect */
.detail-panel.data-stream::-webkit-scrollbar-track {
    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 20, 40, 0.9) 50%,
            rgba(0, 0, 0, 0.9) 100%
        );
    border: 1px solid var(--primary-color-rgba);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.detail-panel.data-stream::-webkit-scrollbar-track::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--primary-color) 20%,
        transparent 40%,
        var(--primary-color) 60%,
        transparent 80%,
        var(--primary-color) 100%
    );
    animation: dataStream 2s linear infinite;
    transform: translateX(-50%);
}

@keyframes dataStream {
    0% { opacity: 0.3; transform: translateX(-50%) scaleY(0.8); }
    50% { opacity: 1; transform: translateX(-50%) scaleY(1.2); }
    100% { opacity: 0.3; transform: translateX(-50%) scaleY(0.8); }
}

.detail-panel.data-stream::-webkit-scrollbar-thumb {
    background:
        linear-gradient(180deg,
            transparent 0%,
            rgba(var(--primary-color-rgb), 0.4) 10%,
            rgba(var(--primary-color-rgb), 0.8) 50%,
            rgba(var(--primary-color-rgb), 0.4) 90%,
            transparent 100%
        );
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    box-shadow:
        0 0 15px rgba(var(--primary-color-rgb), 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
}


.metric-grid {
    padding: 20px;
    display: grid;
    gap: 15px;
}

.metric-card {
    background: rgba(var(--primary-color-rgb), 0.1);
    border: 1px solid rgba(var(--primary-color-rgb), 0.3);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: metricSweep 3s linear infinite;
}

@keyframes metricSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

.metric-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.metric-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Controls overlay - Now draggable */
.controls-overlay {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    z-index: 15;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.4);
    cursor: grab;
    user-select: none;
}

.controls-overlay.dragging {
    cursor: grabbing;
    z-index: 35;
    transform: scale(1.02);
    box-shadow: 0 0 35px rgba(var(--primary-color-rgb), 0.6);
}

.controls-overlay:hover {
    box-shadow: 0 0 30px rgba(var(--primary-color-rgb), 0.5);
}

.controls-overlay h3 {
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-bottom: 15px;
    cursor: grab;
}

.controls-overlay.dragging h3 {
    cursor: grabbing;
}

.control-group {
    margin-top: 15px;
}

.control-group label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.control-group select {
    width: 100%;
    background: rgba(var(--primary-color-rgb), 0.1);
    border: 1px solid var(--primary-color);
    color: var(--text-primary);
    padding: 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
}

/* Loading animation */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(var(--primary-color-rgb), 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .server-nodes {
        width: 400px;
        height: 400px;
    }

    .server-node {
        width: 100px;
        height: 100px;
    }

    .central-hub {
        width: 150px;
        height: 150px;
    }

    .detail-panel {
        width: 90vw;
        right: 5vw;
    }

    .sci-fi-nav {
        position: relative;
        top: auto;
        left: auto;
        margin: 10px;
        width: calc(100% - 20px);
    }

    .sci-fi-title {
        position: relative;
        top: auto;
        right: auto;
        margin: 10px;
        width: calc(100% - 20px);
    }

    .controls-overlay {
        position: relative;
        bottom: auto;
        left: auto;
        margin: 10px;
        width: calc(100% - 20px);
    }
}

/* Hide default tabs and controls */
.tabs, .controls {
    display: none;
}


/* Enhanced Detail Panel Styles */
.system-info-card {
    grid-column: 1 / -1;
}

.system-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    padding: 4px 0;
}

.info-label {
    color: var(--text-secondary);
    font-weight: bold;
}

.info-value {
    color: var(--primary-color);
    font-family: 'JetBrains Mono', monospace;
}

.cpu-details, .memory-details, .network-details, .storage-details {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cpu-details small, .memory-details small, .network-details small, .storage-details small {
    font-size: 0.6rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.network-speeds {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.speed-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.speed-label {
    font-size: 0.6rem;
    color: var(--text-secondary);
}

.speed-value {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* Action Buttons */
.action-buttons-dashboard {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.action-btn-dashboard {
    flex: 1;
    padding: 8px 12px;
    /*border: 1px solid var(--primary-color);*/
    border-radius: 6px;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/*.action-btn-dashboard:hover {
    background: rgba(var(--primary-color-rgb), 0.2);
    box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.3);
}*/

.action-btn-dashboard.primary,
.action-btn-dashboard.primary:hover {
    border-color: var(--primary-color);
}

.action-btn-dashboard.secondary,
.action-btn-dashboard.secondary:hover {
    border-color: rgba(var(--secondary-color-rgb), 0.5);
    color: var(--text-secondary);
}

/* Process Nodes Container */
.process-nodes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
}

/* Enhanced Process Node Styles */
.process-node {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid;
    border-radius: 8px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    cursor: grab;
    pointer-events: auto;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    z-index: 9;
    clip-path: polygon(0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px));
    /* Remove transition when dragging for smooth movement */
}

.process-node.dragging {
    cursor: grabbing;
    transform: scale(1.15);
    z-index: 1001;
    transition: none !important; /* Disable transitions during drag */
}

/* Enhanced Connection Lines */
.connection-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, currentColor 20%, currentColor 80%, transparent 100%);
    opacity: 0.8;
    z-index: 7;
    pointer-events: none;
    transition: none; /* Remove transitions for smooth updates */
    border-radius: 1px;
}

.connection-line::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 4px;
    background: inherit;
    opacity: 0.3;
    filter: blur(2px);
}

.connection-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 2px;
    background: currentColor;
    animation: connectionFlow 1.5s ease-in-out infinite;
    border-radius: 1px;
    box-shadow: 0 0 5px currentColor;
}

@keyframes connectionFlow {
    0% {
        left: 0%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: calc(100% - 10px);
        opacity: 0;
    }
}

@keyframes connectionPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Enhanced server node dragging */
.server-node {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
}

.server-node.dragging {
    transition: none !important; /* Smooth dragging without transitions */
    cursor: grabbing;
    z-index: 1000;
    transform: scale(1.05);
    box-shadow: 0 0 30px currentColor;
}

/* Process node color variations */
.process-node.normal {
    border-color: rgba(0, 255, 255, 0.6);
    color: rgba(0, 255, 255, 0.6);
}

.process-node.high-cpu {
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.process-node.high-memory {
    border-color: var(--error-color);
    color: var(--error-color);
}

.process-node:hover:not(.dragging) {
    box-shadow: 0 0 20px currentColor;
    transform: scale(1.1);
}

/* Process content improvements */
.process-content {
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    position: relative;
    user-select: none;
}

.process-icon {
    font-size: 1rem;
    margin-bottom: 2px;
    animation: processRotate 3s linear infinite;
}

@keyframes processRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.process-name {
    font-size: 0.5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 2px;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
}

.process-metrics {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
}

/* Process List in Detail Panel */
.processes-card {
    grid-column: 1 / -1;
    max-height: 300px;
    overflow: hidden;
    margin-top: 15px;
}

.processes-list {
    max-height: 250px;
    overflow-y: auto;
}

.process-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin: 4px 0;
    background: rgba(var(--primary-color-rgb), 0.05);
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
    border-radius: 4px;
    font-size: 0.7rem;
}

.process-item:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
    border-color: rgba(var(--primary-color-rgb), 0.4);
}

.process-name {
    flex: 1;
    font-weight: bold;
    color: var(--primary-color);
}

.process-stats {
    display: flex;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.cpu-usage, .memory-usage {
    min-width: 40px;
    text-align: right;
}

.pid {
    color: var(--text-secondary);
    font-size: 0.6rem;
}

.process-user {
    font-size: 0.6rem;
    color: var(--text-secondary);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* System Info Modal */
.system-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    width: 80vw;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
}

.modal-close {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.modal-body pre {
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

/* Theme-aware background styles for dashboard */
body {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    transition: background 0.3s ease;
}

/* Light mode dashboard background */
[data-theme="light"] body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
}

/* Dark mode dashboard background */
[data-theme="dark"] body {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
}

/* Cyber mode dashboard background with enhanced effects */
[data-theme="cyber"] body {
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #111111 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    /*animation: cyberBackgroundShift 15s ease-in-out infinite alternate;*/
}

@keyframes cyberBackgroundShift {
    0% {
        background:
            radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
            linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #111111 100%);
    }
    50% {
        background:
            radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.2) 0%, transparent 50%),
            radial-gradient(circle at 20% 80%, rgba(255, 0, 255, 0.15) 0%, transparent 50%),
            linear-gradient(135deg, #000000 0%, #0f0f0f 50%, #1a1a1a 100%);
    }
    100% {
        background:
            radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(255, 0, 255, 0.05) 0%, transparent 50%),
            linear-gradient(135deg, #050505 0%, #0a0a0a 50%, #0f0f0f 100%);
    }
}

/* Enhanced dashboard grid background for different themes */
.dashboard-grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(var(--primary-color-rgb), 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-color-rgb), 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    opacity: 0;
    transition: opacity 2s ease, background-image 0.3s ease;
    pointer-events: none;
}

[data-theme="light"] .grid-bg,
[data-theme="light"] .dashboard-grid-bg {
    background-image:
        linear-gradient(rgba(0, 82, 204, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 82, 204, 0.15) 1px, transparent 1px);
}

[data-theme="dark"] .grid-bg,
[data-theme="dark"] .dashboard-grid-bg {
    background-image:
        linear-gradient(rgba(255, 179, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 179, 0, 0.1) 1px, transparent 1px);
}

[data-theme="cyber"] .grid-bg,
[data-theme="cyber"] .dashboard-grid-bg {
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(rgba(255, 0, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 255, 0.06) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 20px 20px, 20px 20px;
    animation: cyberGridPulse 8s ease-in-out infinite alternate;
}

@keyframes cyberGridPulse {
    0% {
        background-image:
            linear-gradient(rgba(0, 255, 255, 0.08) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 255, 255, 0.08) 1px, transparent 1px),
            linear-gradient(rgba(255, 0, 255, 0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 0, 255, 0.04) 1px, transparent 1px);
    }
    100% {
        background-image:
            linear-gradient(rgba(0, 255, 255, 0.15) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 255, 255, 0.15) 1px, transparent 1px),
            linear-gradient(rgba(255, 0, 255, 0.08) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 0, 255, 0.08) 1px, transparent 1px);
    }
}

/* Theme-aware particle colors */
[data-theme="light"] .particle {
    background: rgba(0, 82, 204, 0.4) !important;
    box-shadow: 0 0 10px rgba(0, 82, 204, 0.3) !important;
}

[data-theme="dark"] .particle {
    background: rgba(255, 179, 0, 0.4) !important;
    box-shadow: 0 0 10px rgba(255, 179, 0, 0.3) !important;
}

[data-theme="cyber"] .particle {
    background: rgba(0, 255, 255, 0.6) !important;
    box-shadow: 0 0 15px currentColor !important;
}

/* Enhanced terminal lines for different themes */
.terminal-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(var(--primary-color-rgb), 0.02) 2px,
            rgba(var(--primary-color-rgb), 0.02) 4px
        );
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 2s ease 1s, background 0.3s ease;
}

[data-theme="light"] .terminal-lines {
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 82, 204, 0.05) 2px,
            rgba(0, 82, 204, 0.05) 4px
        );
}

[data-theme="dark"] .terminal-lines {
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 179, 0, 0.03) 2px,
            rgba(255, 179, 0, 0.03) 4px
        );
}

[data-theme="cyber"] .terminal-lines {
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.04) 2px,
            rgba(0, 255, 255, 0.04) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(255, 0, 255, 0.02) 50px,
            rgba(255, 0, 255, 0.02) 52px
        );
    animation: terminalScan 10s linear infinite;
}

@keyframes terminalScan {
    0% {
        background-position: 0 0, 0 0;
        opacity: 0.3;
    }
    50% {
        background-position: 0 4px, 25px 0;
        opacity: 0.6;
    }
    100% {
        background-position: 0 8px, 50px 0;
        opacity: 0.3;
    }
}

/* Ensure smooth theme transitions for all dashboard elements */
/*.sci-fi-nav,
.sci-fi-title,
.central-hub,
.server-node,
.detail-panel {
    transition: all 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}*/

/* Theme compatibility for dashboard transmission overlay */
[data-theme="light"] .dashboard-transition-overlay {
    background:
        radial-gradient(circle at center, rgba(0, 82, 204, 0.3) 0%, rgba(255, 255, 255, 0.95) 100%),
        linear-gradient(45deg, transparent 49%, rgba(0, 82, 204, 0.8) 50%, transparent 51%);
}

[data-theme="dark"] .dashboard-transition-overlay {
    background:
        radial-gradient(circle at center, rgba(255, 179, 0, 0.3) 0%, rgba(0, 0, 0, 0.95) 100%),
        linear-gradient(45deg, transparent 49%, rgba(255, 179, 0, 0.8) 50%, transparent 51%);
}

[data-theme="cyber"] .dashboard-transition-overlay {
    background:
        radial-gradient(circle at center, rgba(0, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.98) 100%),
        linear-gradient(45deg, transparent 49%, rgba(0, 255, 255, 0.9) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(255, 0, 255, 0.3) 50%, transparent 51%);
    background-size: 100% 100%, 15px 15px, 25px 25px;
}