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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
            color: #e0e0e0;
            min-height: 100vh;
            padding: 20px;
            overflow-x: hidden;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        header {
            text-align: center;
            margin-bottom: 40px;
            padding: 30px 0;
            border-bottom: 2px solid #00d4ff;
        }

        h1 {
            font-size: 2.5em;
            color: #00d4ff;
            margin-bottom: 10px;
            text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
        }

        .subtitle {
            color: #00ff88;
            font-size: 1.1em;
            font-weight: 500;
        }

        .status-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        .status-card {
            background: rgba(26, 26, 46, 0.8);
            border: 2px solid #00d4ff;
            border-radius: 12px;
            padding: 25px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
            transition: all 0.3s ease;
        }

        .status-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
            border-color: #00ff88;
        }

        .status-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #00d4ff, #00ff88);
            animation: pulse 2s infinite;
        }

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

        .icon {
            font-size: 2.5em;
            margin-bottom: 15px;
            display: inline-block;
        }

        .card-title {
            font-size: 1.3em;
            color: #00d4ff;
            margin-bottom: 10px;
            font-weight: 600;
        }

        .status-indicator {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 15px 0;
        }

        .status-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #00ff88;
            animation: blink 1s infinite;
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }

        .status-text {
            color: #00ff88;
            font-weight: 600;
            font-size: 0.95em;
        }

        .console {
            background: #0a0a0f;
            border: 2px solid #00d4ff;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 30px;
            font-family: 'Courier New', monospace;
            max-height: 400px;
            overflow-y: auto;
            box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.5);
        }

        .console-title {
            color: #00d4ff;
            font-weight: 600;
            margin-bottom: 15px;
            font-size: 1.1em;
        }

        .console-line {
            padding: 8px 0;
            border-bottom: 1px solid rgba(0, 212, 255, 0.1);
            color: #00ff88;
            font-size: 0.95em;
            word-break: break-all;
        }

        .console-line.error {
            color: #ff3366;
        }

        .console-line.info {
            color: #00d4ff;
        }

        .console-line.warning {
            color: #ffcc00;
        }

        .console-line.success {
            color: #00ff88;
        }

        .network-diagram {
            background: rgba(26, 26, 46, 0.6);
            border: 2px solid #00d4ff;
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 30px;
            text-align: center;
        }

        .diagram-title {
            color: #00d4ff;
            font-size: 1.2em;
            margin-bottom: 20px;
            font-weight: 600;
        }

        .diagram {
            display: flex;
            justify-content: space-around;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
        }

        .diagram-node {
            background: rgba(0, 212, 255, 0.1);
            border: 2px solid #00d4ff;
            border-radius: 8px;
            padding: 15px 20px;
            color: #00d4ff;
            font-weight: 600;
            min-width: 100px;
            text-align: center;
        }

        .diagram-node.active {
            background: rgba(0, 255, 136, 0.2);
            border-color: #00ff88;
            color: #00ff88;
        }

        .arrow {
            color: #00d4ff;
            font-size: 1.5em;
            animation: moveArrow 1.5s infinite;
        }

        @keyframes moveArrow {
            0%, 100% { transform: translateX(0); }
            50% { transform: translateX(5px); }
        }

        .button-group {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
            margin: 30px 0;
        }

        button {
            background: linear-gradient(135deg, #00d4ff, #00ff88);
            border: none;
            color: #0f0f1e;
            padding: 12px 30px;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            font-size: 1em;
            transition: all 0.3s ease;
            text-transform: uppercase;
        }

        button:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
        }

        button:active {
            transform: scale(0.95);
        }

        .timestamp {
            color: #888;
            font-size: 0.85em;
            margin-top: 20px;
            text-align: right;
        }

        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.3);
        }

        ::-webkit-scrollbar-thumb {
            background: #00d4ff;
            border-radius: 4px;
        }
/** DARK MODE**/
body.dark {
    background: #121212;
    color: #e3e3e3;
}

body.dark .card,
body.dark .panel,
body.dark .contenedor {
    background: #1e1e1e;
    color: #e3e3e3;
    border-color: #333;
}

body.dark button {
    background: #333;
    color: #fff;
}

body.dark input,
body.dark select,
body.dark textarea {
    background: #222;
    color: #fff;
    border: 1px solid #444;
}
/* === DARK MODE AUTOMÁTICO === */
@media (prefers-color-scheme: dark) {
    body {
        background: #121212;
        color: #e3e3e3;
    }

    .card, .panel, .contenedor, header, footer {
        background: #1e1e1e !important;
        color: #e3e3e3 !important;
        border-color: #333 !important;
    }

    a {
        color: #58a6ff;
    }

    button {
        background: #333 !important;
        color: #fff !important;
        border: 1px solid #444 !important;
    }

    input, select, textarea {
        background: #222 !important;
        color: #fff !important;
        border: 1px solid #444 !important;
    }
}

