body { 
    background: #121212; 
    color: white; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    text-align: center; 
    padding-top: 50px; 
}

.card { 
    background: #1e1e1e; 
    border-radius: 15px; 
    padding: 30px; 
    display: inline-block; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    min-width: 300px;
}

input { 
    padding: 12px; 
    border-radius: 8px; 
    border: 1px solid #333; 
    background: #252525;
    color: white;
    width: 80%; 
    font-size: 20px; 
    text-align: center; 
    margin-bottom: 10px;
}

button { 
    padding: 12px 24px; 
    border-radius: 8px; 
    border: none; 
    background: #007bff; 
    color: white; 
    font-size: 16px; 
    font-weight: bold;
    cursor: pointer; 
    transition: 0.3s;
}

button:hover { background: #0056b3; transform: scale(1.05); }

.status { margin-top: 20px; color: #aaa; font-style: italic; }


.vocal-active {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 20px auto;
}

.dot {
    width: 20px;
    height: 20px;
    background-color: #00ff00;
    border-radius: 50%;
    position: absolute;
    top: 20px; left: 20px;
}

.pulse-ring {
    border: 3px solid #00ff00;
    border-radius: 50%;
    height: 60px; width: 60px;
    position: absolute;
    animation: pulsate 1.5s ease-out infinite;
}


.admin-grid {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.player-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.player-card:hover {
    transform: translateX(5px);
    border-left: 4px solid #4CAF50;
}

.status-dot.talking {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation: pulse 1s infinite;
}

#adminPlayerList {
    list-style: none;
    padding: 0;
}

#adminPlayerList li {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 5px;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

/* Quand le joueur parle, sa ligne s'allume en vert */
#adminPlayerList li.is-talking {
    border-left-color: #00ff00;
    background: rgba(0, 255, 0, 0.15);
}


/* Cache le panel par défaut et évite qu'il prenne de la place */
#admin-panel {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 250px;
    overflow-y: auto;
}

/* Aligne les boutons Déconnexion et Admin sur la même ligne */
.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.button-group button {
    flex: 1;
    padding: 10px;
    font-size: 14px;
}

/* Style spécifique pour le bouton admin pour qu'il ne soit pas trop imposant */
.btn-admin {
    background-color: #555 !important;
}

.btn-danger {
    background-color: #ff4444 !important;
}

/* Responsive pour mobile */
.card {
    max-width: 400px;
    width: 90%;
    margin: 20px auto;
}

.dist-tag {
    font-size: 0.8em;
    color: #ccc;
}

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

@keyframes pulsate {
    0% { transform: scale(0.1, 0.1); opacity: 0.0; }
    50% { opacity: 1.0; }
    100% { transform: scale(1.2, 1.2); opacity: 0.0; }
}