:root {
    --bg-dark: #020617;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-rose: #f43f5e;
    --accent-emerald: #10b981;
    --glass: rgba(15, 23, 42, 0.6);
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: #f8fafc;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Decoración de fondo */
.background-decor {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
}

.grid-overlay {
    position: absolute; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 40px 40px;
}

.blob {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 { width: 500px; height: 500px; background: var(--accent-cyan); top: -100px; left: -100px; }
.blob-2 { width: 600px; height: 600px; background: var(--accent-purple); bottom: -100px; right: -100px; animation-delay: -5s; }
.blob-3 { width: 300px; height: 300px; background: var(--accent-rose); top: 40%; left: 50%; animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

/* Glassmorphism General */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; }

/* Botones */
.btn {
    padding: 12px 24px; border-radius: 12px; border: none; cursor: pointer;
    font-weight: 600; transition: all 0.3s; color: white;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(6, 182, 212, 0.5);
}
.btn-danger { background: rgba(244, 63, 94, 0.2); border: 1px solid var(--accent-rose); color: var(--accent-rose); }
.btn-danger:hover { background: var(--accent-rose); color: white; }

/* Animación SPA */
.view-enter { animation: slideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards; }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CORRECCIÓN: Se limitó el color verde SOLO al puntito de estado */
.status-dot {
    width: 10px; height: 10px; border-radius: 50%; display: inline-block;
    margin-right: 8px; box-shadow: 0 0 10px currentColor;
}
.status-dot.online { background: var(--accent-emerald); color: var(--accent-emerald); }

/* Node Cards */
.node-card {
    padding: 0; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.node-card:hover {
    transform: translateY(-8px);
}
.node-card.online {
    border: 1px solid rgba(6, 182, 212, 0.3);
}
.node-card.online:hover {
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.2);
    border-color: var(--accent-cyan);
}
.node-card.offline {
    opacity: 0.8;
}
.node-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.2);
}
.node-title {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}
.node-badge {
    font-size: 0.65rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    color: #94a3b8;
}
.node-body {
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.stat-box { display: flex; flex-direction: column; gap: 6px; }
.stat-label { font-size: 0.7rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 1.2rem; font-weight: 600; color: white; font-family: 'Space Grotesk', sans-serif;}
.mini-bar { width: 100%; height: 6px; background: rgba(0,0,0,0.3); border-radius: 10px; overflow: hidden; }
.mini-bar .fill { height: 100%; border-radius: 10px; }
.activity-box { grid-column: span 2; background: rgba(0,0,0,0.2); padding: 15px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.02); }
.current-app { display: flex; align-items: center; gap: 10px; color: var(--accent-rose); font-weight: 600; font-size: 1rem; margin-top: 5px; }
.node-footer {
    padding: 20px 25px;
    background: rgba(255,255,255,0.01);
    border-top: 1px solid var(--border);
}

#remote-screen:fullscreen { background-color: #000; width: 100vw; height: 100vh; border: none; border-radius: 0; }
#remote-screen:-webkit-full-screen { background-color: #000; width: 100vw; height: 100vh; border: none; border-radius: 0; }
#remote-screen:-ms-fullscreen { background-color: #000; width: 100vw; height: 100vh; border: none; border-radius: 0; }

.tab-navigation { display: flex; gap: 10px; margin-bottom: 30px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.tab-btn { background: transparent; border: none; color: #64748b; padding: 10px 20px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.3s; border-radius: 8px; display: flex; align-items: center; gap: 8px; }
.tab-btn:hover { color: #f8fafc; background: rgba(255,255,255,0.02); }
.tab-btn.active { color: var(--accent-cyan); background: rgba(6, 182, 212, 0.1); text-shadow: 0 0 10px rgba(6, 182, 212, 0.3); }

.switch { position: relative; display: inline-block; width: 46px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(244, 63, 94, 0.2); border: 1px solid var(--accent-rose); transition: .3s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: #f43f5e; transition: .3s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 50%; box-shadow: 0 0 8px var(--accent-rose); }
input:checked + .slider { background-color: rgba(16, 185, 129, 0.2); border-color: var(--accent-emerald); }
input:checked + .slider:before { transform: translateX(22px); background-color: #10b981; box-shadow: 0 0 8px var(--accent-emerald); }

.progress-container { width: 100%; background: rgba(0,0,0,0.3); height: 10px; border-radius: 10px; overflow: hidden; margin-top: 8px; }
.progress-bar-fill { height: 100%; border-radius: 10px; transition: width 1s ease-in-out; }

#terminal-input { caret-color: #10b981; }
#terminal-input:focus { outline: none; box-shadow: 0 2px 0 0 #10b981; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); z-index: 9999; display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; }
.modal-box { transform: translateY(30px) scale(0.95); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); max-width: 450px; width: 90%; text-align: center; }
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }

