@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

* {
    box-sizing: border-box;
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(135deg, #0f2027, #203a43, #572c64);
    color: #fff;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 0 25px rgba(93, 0, 255, 0.4);
    text-align: center;
    backdrop-filter: blur(10px);
    animation: fadeIn 1s ease;
}

label {
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: block;
    text-shadow: 0 0 5px #7b00ff;
}

select {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background-color: #7b00ff;
    color: #000;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

select:hover {
    background-color: #7b00ff;
}

table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 1.2rem;
    position: relative;
}

th {
    background-color: rgba(68, 0, 255, 0.2);
    text-shadow: 0 0 3px #7700ff;
}

tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

tr:hover {
    background-color: rgba(132, 0, 255, 0.1);
}

.desactivada {
    opacity: 0.5;
    background-color: #555;
    pointer-events: none;
}

/* Efecto LED en celdas */
td:not(:empty) {
    background-color: #7b00ff;
    color: #000;
    animation: ledGlow 0.5s ease-in-out infinite alternate;
}

/* Efecto chispeo */
@keyframes ledGlow {
    0% {
        box-shadow: 0 0 10px #7b00ff, 0 0 20px #7b00ff, 0 0 30px #7b00ff;
    }
    100% {
        box-shadow: 0 0 5px #7b00ff, 0 0 15px #7b00ff, 0 0 25px #7b00ff;
    }
}

/* Animación Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.led {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #555; /* Color apagado */
    margin: 0 auto;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

/* Efecto de LED encendido */
.led.encendido {
    background-color: #cc00ff; /* Color encendido (verde) */
    box-shadow: 0 0 10px #cc00ff, 0 0 20px #cc00ff;
}

/* Efecto de LED apagado */
.led.apagado {
    background-color: #a29c9c; /* Color apagado */
    box-shadow: none;
}