* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0c0c1e 0%, #1a1a3e 50%, #0d0d2b 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
    color: #e0e0e0;
    position: relative;
    overflow-x: hidden;
}

/* Estrellas animadas de fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 230px 50px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 280px 90px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 320px 140px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 380px 60px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 420px 110px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 460px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 510px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 560px 130px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 610px 50px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 660px 100px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 710px 150px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 760px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 810px 120px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 850px 200px;
    animation: stars 60s linear infinite;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    z-index: -2;
}

@keyframes stars {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

/* Estrellas adicionales más grandes */
.stars-large {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(100, 149, 237, 0.5), 0 0 40px rgba(100, 149, 237, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(100, 149, 237, 0.5), 0 0 40px rgba(100, 149, 237, 0.3);
    }
    to {
        text-shadow: 0 0 30px rgba(138, 43, 226, 0.8), 0 0 60px rgba(138, 43, 226, 0.5);
    }
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.last-update {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(100, 149, 237, 0.3);
}

.update-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.update-time {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(100, 149, 237, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.5);
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.service-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.service-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.operational {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
}

.status-indicator.minor {
    background: #ffaa00;
    box-shadow: 0 0 10px #ffaa00, 0 0 20px #ffaa00;
}

.status-indicator.major {
    background: #ff4444;
    box-shadow: 0 0 10px #ff4444, 0 0 20px #ff4444;
}

.status-indicator.critical {
    background: #ff0000;
    box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
}

.status-indicator.maintenance {
    background: #aa88ff;
    box-shadow: 0 0 10px #aa88ff, 0 0 20px #aa88ff;
}

.status-indicator.error {
    background: #666666;
    box-shadow: 0 0 10px #666666, 0 0 20px #666666;
}

.status-text {
    font-weight: 500;
    font-size: 0.9rem;
}

.status-text.operational {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.status-text.minor {
    color: #ffaa00;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

.status-text.major {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.status-text.critical {
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.status-text.maintenance {
    color: #aa88ff;
    text-shadow: 0 0 10px rgba(170, 136, 255, 0.5);
}

.status-text.error {
    color: #666666;
    text-shadow: 0 0 10px rgba(102, 102, 102, 0.5);
}

.service-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.service-detail-item:last-child {
    margin-bottom: 0;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(100, 149, 237, 0.2);
    color: #fff;
    border: 1px solid rgba(100, 149, 237, 0.5);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(100, 149, 237, 0.3);
    backdrop-filter: blur(10px);
}

.refresh-btn:hover {
    background: rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.7);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
}

.refresh-btn:active {
    transform: scale(0.95);
}

.refresh-btn svg {
    transition: transform 0.3s ease;
}

.refresh-btn:hover svg {
    transform: rotate(180deg);
}

.auto-refresh {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

input:checked + .slider {
    background-color: rgba(0, 255, 136, 0.3);
    border-color: rgba(0, 255, 136, 0.5);
}

input:checked + .slider:before {
    transform: translateX(24px);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
}

.auto-refresh-label {
    font-size: 0.9rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    animation: fadeIn 1s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(100, 149, 237, 0.2);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 0.85rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.operational {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

.legend-dot.minor {
    background: #ffaa00;
    box-shadow: 0 0 10px #ffaa00;
}

.legend-dot.major {
    background: #ff4444;
    box-shadow: 0 0 10px #ff4444;
}

.legend-dot.critical {
    background: #ff0000;
    box-shadow: 0 0 10px #ff0000;
}

.legend-dot.maintenance {
    background: #aa88ff;
    box-shadow: 0 0 10px #aa88ff;
}

.footer {
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
    animation: fadeIn 1.5s ease-out;
}

.footer-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(100, 149, 237, 0.2);
    display: inline-block;
}

.contact-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.contact-email {
    color: #64b5f6;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(100, 181, 246, 0.5);
}

.contact-email:hover {
    color: #90caf9;
    text-shadow: 0 0 20px rgba(100, 181, 246, 0.8), 0 0 30px rgba(100, 181, 246, 0.5);
    transform: scale(1.05);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 768px) {
    .title {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .controls {
        flex-direction: column;
        gap: 1rem;
    }

    .legend {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        padding: 1rem 1.5rem;
    }
}