/* 
  Hoja de estilos principal para el simulador de Subnetting.
  Se combinan con clases de TailwindCSS en el HTML. 
*/

#btnModoCalc {
    visibility: hidden;
}

#btnModoJuego {
    background-color: #6b7280;
    color: white;
}

/* Estilos para los puertos del switch (Topología Física) */
.port {
    width: 20px;
    height: 20px;
    border: 1px solid #444;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Estado activo de un puerto asignado a una VLAN */
.vlan-active {
    box-shadow: 0 0 10px currentColor;
    /* Resplandor basado en el color de la VLAN */
    text-shadow: none;
    font-size: 8px;
    text-align: center;
    line-height: 18px;
    font-weight: bold;
    color: black;
}

/* Diseño base de la Nube para representar una red lógica */
.cloud-shape {
    width: 120px;
    min-height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    /* Bordes muy redondeados para simular nubes */
    position: relative;
    /* Sombras múltiples para dar la forma de las cúpulas de la nube */
    box-shadow: 30px 10px 0 -10px rgba(255, 255, 255, 0.1), -30px 15px 0 -15px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    transition: all 0.4s ease;
    padding: 10px;
    z-index: 10;
}

/* Clases de retroalimentación (Feedback) para los inputs interactivos */
.correct-input {
    border-color: #10b981 !important;
    /* Verde Esmeralda */
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #10b981;
}

.wrong-input {
    border-color: #ef4444 !important;
    /* Rojo */
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444;
}

/* Diseño del Router Central (Router-on-a-stick) */
.router-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1f2937, #111827);
    /* Degradado oscuro cilíndrico */
    border: 3px solid #3b82f6;
    /* Borde Azul */
    border-radius: 50%;
    /* Circular */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 20;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* Flechas decorativas cruzadas típicas de la iconografía de un Router */
.router-arrows::before,
.router-arrows::after {
    content: '';
    position: absolute;
    background: #3b82f6;
}

.router-arrows::before {
    width: 40%;
    height: 2px;
    top: 50%;
    left: 30%;
    transform: translateY(-50%);
}

.router-arrows::after {
    height: 40%;
    width: 2px;
    left: 50%;
    top: 30%;
    transform: translateX(-50%);
}

/* Línea de conexión visual (usualmente entre Router y Switch/Nubes) */
.connection-line {
    position: absolute;
    border-top: 2px dashed #4b5563;
    z-index: 5;
    transform-origin: left center;
}