/* lobby_admin.css */

/* --- CONTENEDOR PRINCIPAL DEL LOBBY --- */
.lobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-out;
}

/* --- TARJETAS DEL MENÚ --- */
.lobby-card {
    background: linear-gradient(145deg, #2a2a2a, #222);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative; /* Para posicionar el badge */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    overflow: hidden;
}

.lobby-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(51, 145, 255, 0.2); /* Resplandor azul */
    border-color: var(--primary-color);
}

/* Iconos grandes en las tarjetas */
.lobby-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.lobby-card:hover .lobby-icon {
    transform: scale(1.1);
}

.lobby-card h3 {
    margin: 0.5rem 0;
    color: var(--text-color);
    font-size: 1.4rem;
}

.lobby-card p {
    color: #888;
    font-size: 0.95rem;
    margin: 0;
}

/* --- BADGE DE NOTIFICACIONES (Globito Rojo) --- */
.lobby-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(255, 82, 82, 0.5);
    animation: pulse-red 2s infinite;
    z-index: 2;
}

@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(255, 82, 82, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}

/* --- TABLA DE GESTIÓN DE SOLICITUDES --- */
#admin-requests-view {
    border: 1px solid var(--warning-color); /* Borde amarillo para distinguir la zona */
}

#admin-requests-table th {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

/* Estilos para los botones de acción en la tabla de solicitudes */
.btn-resolve-edit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85em;
    margin-right: 5px;
}

.btn-approve-delete {
    background-color: var(--danger-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85em;
    margin-right: 5px;
}

.btn-reject-request {
    background-color: transparent;
    border: 1px solid #666;
    color: #ccc;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

.btn-reject-request:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

/* --- ESTADOS VISUALES EN LAS TABLAS DE USUARIO --- */

/* Fila con solicitud pendiente (Usuario/Panelista) */
.row-pending-change {
    background-color: rgba(255, 193, 7, 0.08) !important; /* Fondo amarillo muy suave */
    border-left: 4px solid var(--warning-color) !important;
    position: relative;
}

/* Icono de relojito que aparece en la fila */
.pending-indicator {
    display: inline-block;
    margin-right: 5px;
    font-size: 1.1em;
    cursor: help;
}

/* Botón de bandera (Solicitar cambio) */
.btn-flag {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    padding: 0 5px;
}

.btn-flag:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* --- ANIMACIÓN GENERAL --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- ANIMACIÓN DE PULSO AMARILLO PARA LA TARJETA --- */

/* Clase que activaremos con JS */
.pulse-yellow-active {
    border-color: var(--warning-color) !important; /* Borde amarillo fijo */
    animation: card-pulse-yellow 2s infinite;
    z-index: 1; /* Asegura que la sombra se vea sobre otros elementos si es necesario */
}

@keyframes card-pulse-yellow {
    0% {
        /* Sombra interior sutil y sin sombra exterior */
        box-shadow: inset 0 0 10px rgba(255, 193, 7, 0.1), 
                    0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        /* La sombra exterior se expande y se desvanece */
        box-shadow: inset 0 0 20px rgba(255, 193, 7, 0.2), 
                    0 0 0 15px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: inset 0 0 10px rgba(255, 193, 7, 0.1), 
                    0 0 0 0 rgba(255, 193, 7, 0);
    }
}