:root {
    --primary-color: #00ff41;
    --secondary-color: #00d9ff;
    --accent-color: #ff006e;
    --bg-color: #0a0e27;
    --card-bg: rgba(20, 30, 60, 0.8);
    --text-color: #e0e0e0;
    --border-color: rgba(0, 255, 65, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

/* Matrix Rain Background */
#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: -2;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.1) 0%, rgba(0, 217, 255, 0.1) 100%);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    animation: headerGlow 3s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 65, 0.2); }
    50% { box-shadow: 0 0 30px rgba(0, 255, 65, 0.4); }
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    letter-spacing: 3px;
}

.logo-icon {
    font-size: 24px;
    animation: pulse 1.5s ease-in-out infinite;
}

nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 8px 16px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link:hover, .nav-link.active {
    color: var(--bg-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.time-display {
    font-size: 12px;
    color: var(--secondary-color);
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: rgba(0, 217, 255, 0.1);
}

/* Main Content */
main {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    padding: 0 40px;
    margin-bottom: 30px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    transform: translateY(-5px);
}

.card h2 {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.card-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* Progress Circles */
.circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 20px auto;
}

.circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: rgba(0, 255, 65, 0.2);
    stroke-width: 4;
}

.progress-fill {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 4;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.5s ease;
    filter: drop-shadow(0 0 5px var(--primary-color));
}

.circle span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.status-text {
    text-align: center;
    font-size: 11px;
    color: var(--text-color);
    margin-top: 10px;
    letter-spacing: 1px;
}

/* Terminal */
.terminal {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.terminal-top {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: rgba(0, 255, 65, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.terminal-top span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-content {
    padding: 15px;
    min-height: 200px;
    font-size: 12px;
    color: var(--primary-color);
    line-height: 1.8;
    overflow-y: auto;
    max-height: 300px;
}

.terminal-content::-webkit-scrollbar {
    width: 6px;
}

.terminal-content::-webkit-scrollbar-track {
    background: rgba(0, 255, 65, 0.1);
}

.terminal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* Chart */
.chart-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.chart-card h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 14px;
    letter-spacing: 2px;
}

#chart {
    width: 100%;
    height: 200px;
}

/* Radar */
.radar {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 20px auto;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.1), transparent);
}

.radar::before,
.radar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 50%;
}

.radar::before {
    width: 100px;
    height: 100px;
}

.radar::after {
    width: 50px;
    height: 50px;
}

.scanner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transform: translate(-50%, -50%);
    animation: radarScan 3s linear infinite;
}

@keyframes radarScan {
    0% { transform: translate(-50%, -50%) rotate(0deg); opacity: 1; }
    100% { transform: translate(-50%, -50%) rotate(360deg); opacity: 1; }
}

/* World */
.world {
    text-align: center;
    font-size: 80px;
    margin: 20px 0;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Stats */
.stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: rgba(0, 255, 65, 0.1);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-color);
    letter-spacing: 1px;
}

.stat-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 12px;
}

/* STATUS PAGE STYLES */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.status-box {
    padding: 20px;
    border-radius: 8px;
    background: rgba(0, 255, 65, 0.05);
    border: 2px solid var(--primary-color);
    text-align: center;
}

.status-box.health-excellent {
    border-color: #00ff41;
    background: rgba(0, 255, 65, 0.1);
}

.status-box.health-good {
    border-color: #00d9ff;
    background: rgba(0, 217, 255, 0.1);
}

.status-box.health-warning {
    border-color: #ff9500;
    background: rgba(255, 149, 0, 0.1);
}

.status-header {
    font-size: 12px;
    color: var(--secondary-color);
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.status-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.status-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 255, 65, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.status-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.status-indicator-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 10px auto;
    animation: pulse 1.5s ease-in-out infinite;
}

.status-label {
    font-size: 11px;
    color: var(--text-color);
    margin-top: 10px;
}

.status-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: rgba(0, 255, 65, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
}

.info-label {
    color: var(--text-color);
    font-size: 12px;
    letter-spacing: 1px;
}

.info-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 12px;
}

/* SYSTEM PAGE STYLES */
.system-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.spec-column {
    padding: 20px;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.spec-column h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-name {
    color: var(--text-color);
    font-size: 11px;
    letter-spacing: 1px;
}

.spec-value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 11px;
}

/* NETWORK PAGE STYLES */
.network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.network-card {
    padding: 20px;
    background: rgba(0, 217, 255, 0.05);
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    text-align: center;
}

.network-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.network-header {
    font-size: 12px;
    color: var(--secondary-color);
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.network-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.network-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 255, 65, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0;
}

.network-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.network-label {
    font-size: 10px;
    color: var(--text-color);
    margin-top: 8px;
}

.interface-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.interface-item {
    padding: 15px;
    background: rgba(0, 255, 65, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.interface-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.interface-status {
    font-size: 10px;
    color: #00ff41;
    margin-bottom: 5px;
}

.interface-details {
    font-size: 11px;
    color: var(--text-color);
}

/* SETTINGS PAGE STYLES */
.settings-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.setting-group {
    padding: 20px;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.setting-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.setting-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-label {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--text-color);
    cursor: pointer;
    letter-spacing: 0.5px;
}

.setting-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.setting-desc {
    display: block;
    font-size: 10px;
    color: rgba(224, 224, 224, 0.6);
    margin-left: 26px;
    margin-top: 5px;
}

.setting-select {
    padding: 8px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    margin-left: 20px;
}

.btn-setting {
    padding: 10px 20px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-setting:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.about-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.about-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.about-item:last-child {
    border-bottom: none;
}

.about-item span:first-child {
    color: var(--text-color);
    font-size: 12px;
}

.about-item span:last-child {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 12px;
}

/* Footer */
footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px 40px;
    border-top: 2px solid var(--border-color);
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.1) 0%, rgba(0, 217, 255, 0.1) 100%);
    align-items: center;
    flex-wrap: wrap;
}

/* Enhanced Buttons */
.btn-primary, .btn-secondary {
    padding: 14px 28px;
    border: 2px solid;
    background: transparent;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.btn-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-primary::before, .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.4s ease;
    z-index: -1;
    border-radius: 6px;
}

.btn-primary::before {
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.btn-secondary::before {
    background: linear-gradient(90deg, var(--secondary-color), transparent);
}

.btn-primary:hover::before, .btn-secondary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 30px var(--primary-color), inset 0 0 20px rgba(0, 255, 65, 0.3);
    transform: translateY(-3px) scale(1.05);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--bg-color);
    box-shadow: 0 0 30px var(--secondary-color), inset 0 0 20px rgba(0, 217, 255, 0.3);
    transform: translateY(-3px) scale(1.05);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.btn-primary:active, .btn-secondary:active {
    transform: translateY(-1px) scale(1.02);
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    color: var(--primary-color);
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 600;
    background: rgba(0, 255, 65, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
}

.status-indicator:hover {
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.4), inset 0 0 15px rgba(0, 255, 65, 0.1);
    transform: scale(1.05);
}

.pulse {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--primary-color);
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.3);
    }
}

/* Responsive */
@media (max-width: 1400px) {
    main {
        grid-template-columns: 1fr;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
    }

    .system-specs,
    .status-grid,
    .network-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    
    nav {
        gap: 15px;
        font-size: 10px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    footer {
        padding: 20px 15px;
        gap: 12px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 11px;
    }

    main {
        padding: 0 20px;
    }
}