* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000000;
    color: #00FAB3;
    font-family: 'Courier New', monospace;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* CRT Monitor Container */
.crt-monitor {
    position: relative;
    width: 100%;
    max-width: 1400px;
    background: #111;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 0 100px rgba(0, 250, 179, 0.3),
        inset 0 0 50px rgba(0, 250, 179, 0.1);
}

/* Background Image with Dark Overlay */
.crt-monitor::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Replace with your background image */
    background-image: url('your-background-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
    border-radius: 20px;
}

/* CRT Scanlines */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 250, 179, 0.03) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
    animation: scanline 0.1s linear infinite;
    border-radius: 20px;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* CRT Flicker */
.flicker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 1;
    animation: flicker 6s infinite;
    border-radius: 20px;
}

@keyframes flicker {
    0%, 100% { opacity: 0.98; }
    1% { opacity: 0.9; }
    2% { opacity: 0.95; }
    50% { opacity: 1; }
    51% { opacity: 0.97; }
}

/* Vignette Effect */
.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
    pointer-events: none;
    z-index: 1;
    border-radius: 20px;
}

/* CRT Glow */
.glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        rgba(0, 250, 179, 0.1) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
    border-radius: 20px;
}

/* Terminal Frame */
.terminal-frame {
    position: relative;
    z-index: 2;
    background: #000;
    border: 3px solid #00FAB3;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 
        inset 0 0 50px #000,
        0 0 30px rgba(0, 250, 179, 0.5);
}

/* Monitor Bezel */
.monitor-bezel {
    position: relative;
    padding: 0;
}

.bezel-top {
    background: #222;
    padding: 15px 30px;
    border-bottom: 2px solid #00FAB3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.power-light {
    width: 12px;
    height: 12px;
    background: #00FAB3;
    border-radius: 50%;
    box-shadow: 0 0 10px #00FAB3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.brand-label {
    font-weight: bold;
    color: #00FAB3;
    text-shadow: 0 0 5px #00FAB3;
}

.model-number {
    color: #00FAB3;
    opacity: 0.7;
    font-size: 0.9em;
}

/* Screen Container */
.screen-container {
    padding: 30px;
    background: #000;
    min-height: 600px;
}

/* System Header */
.system-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #00FAB3;
    padding-bottom: 20px;
}

.header-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00FAB3;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.system-time {
    color: #00FAB3;
    font-weight: bold;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00FAB3;
}

.main-title {
    text-align: center;
    margin-bottom: 20px;
}

.main-title h1 {
    font-size: 2.5em;
    color: #00FAB3;
    text-shadow: 0 0 20px #00FAB3;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.subtitle {
    color: #00FAB3;
    opacity: 0.8;
    font-size: 1.1em;
    letter-spacing: 2px;
}

.system-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    gap: 8px;
}

.label {
    color: #00FAB3;
    opacity: 0.7;
}

.value {
    color: #00FAB3;
    font-weight: bold;
}

/* Hub Grid */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Node Cards */
.node-card {
    background: rgba(0, 250, 179, 0.05);
    border: 1px solid #00FAB3;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.node-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 250, 179, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.node-card:hover::before {
    left: 100%;
}

.node-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(0, 250, 179, 0.3),
        inset 0 0 20px rgba(0, 250, 179, 0.1);
}

.node-icon {
    text-align: center;
    margin-bottom: 15px;
}

.node-icon i {
    font-size: 2.5em;
    color: #00FAB3;
    text-shadow: 0 0 15px #00FAB3;
}

.node-info h3 {
    color: #00FAB3;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.3em;
    text-shadow: 0 0 10px #00FAB3;
}

.node-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.online .status-dot {
    background: #00FAB3;
    box-shadow: 0 0 10px #00FAB3;
    animation: pulse 2s infinite;
}

.offline .status-dot {
    background: #666;
}

.node-info p {
    text-align: center;
    margin-bottom: 15px;
    opacity: 0.8;
    color: #00FAB3;
}

.node-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    opacity: 0.7;
    color: #00FAB3;
    margin-bottom: 20px;
}

/* Connect Buttons */
.connect-btn {
    background: rgba(0, 250, 179, 0.1);
    border: 1px solid #00FAB3;
    color: #00FAB3;
    padding: 12px 20px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: bold;
}

.connect-btn:hover {
    background: rgba(0, 250, 179, 0.2);
    box-shadow: 0 0 20px rgba(0, 250, 179, 0.5);
    transform: scale(1.05);
}

.connect-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.connect-btn.disabled:hover {
    transform: none;
    box-shadow: none;
    background: rgba(0, 250, 179, 0.1);
}

/* System Footer */
.system-footer {
    border-top: 1px solid #00FAB3;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-stats {
    display: flex;
    gap: 30px;
}

.stat {
    display: flex;
    gap: 8px;
}

.stat-label {
    color: #00FAB3;
    opacity: 0.7;
}

.stat-value {
    color: #00FAB3;
    font-weight: bold;
}

.system-commands {
    display: flex;
    gap: 15px;
}

.command-btn {
    background: rgba(0, 250, 179, 0.1);
    border: 1px solid #00FAB3;
    color: #00FAB3;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.command-btn:hover {
    background: rgba(0, 250, 179, 0.2);
    box-shadow: 0 0 15px rgba(0, 250, 179, 0.4);
}

/* Bezel Bottom */
.bezel-bottom {
    background: #222;
    padding: 15px 30px;
    border-top: 2px solid #00FAB3;
}

.control-strip {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-knob {
    width: 25px;
    height: 25px;
    background: #333;
    border: 2px solid #00FAB3;
    border-radius: 50%;
    position: relative;
}

.control-knob::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #00FAB3;
    border-radius: 50%;
}

.control-label {
    color: #00FAB3;
    opacity: 0.7;
    margin-left: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .crt-monitor {
        padding: 15px;
    }
    
    .screen-container {
        padding: 20px;
    }
    
    .hub-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header-status {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .system-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .system-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .system-commands {
        flex-direction: column;
        width: 100%;
    }
    
    .main-title h1 {
        font-size: 1.8em;
    }
    
    .bezel-top {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-title h1 {
        font-size: 1.5em;
    }
    
    .node-card {
        padding: 20px;
    }
    
    .control-strip {
        justify-content: center;
    }
    
    .control-label {
        display: none;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #00FAB3;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00FAB3;
    box-shadow: 0 0 10px #00FAB3;
}