.agents-container {
    background: #ffffff;
    padding: 15px 60px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 990;
    margin-top: 40px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 15px !important;
}

.agents-title {
    color: #fff;
    border-radius: 20px;
    font-size: 1.2em;
    margin: 0 0 5px 0;
    text-align: center;
}

#agents-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.agent-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    margin: 0;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 2.8rem;
    white-space: nowrap;
    flex: 0 1 auto;
    min-height: 5.5rem;
    max-width: 100%;
    transition: all 0.2s ease;
}

.agent-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.agent-initial {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    color: #ffffff;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 3.2rem;
    transition: all 0.2s ease;
}

.agent-name {
    color: #ffffff;
    font-size: 1.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
    transition: all 0.2s ease;
    max-width: 200px;
}

/* Styles pour les états (couleur de fond et cercle de l'initiale) */
.agent-item.connected {
    background-color: #28a745;
}

.agent-item.connected .agent-initial {
    background-color: #1e7e34;
}

.agent-item.connected .agent-name {
    color: #ffffff;
}

.agent-item.connected-non-programmed {
    background-color: #3f98e0;
}

.agent-item.connected-non-programmed .agent-initial {
    background-color: #307ac4;
}

.agent-item.connected-non-programmed .agent-name {
    color: #ffffff;
}

.agent-item.disconnected {
    background-color: #dc3545;
}

.agent-item.disconnected .agent-initial {
    background-color: #c82333;
}

.agent-item.disconnected .agent-name {
    color: #ffffff;
}

/* Ajuste la couleur du nom en fonction du statut si nécessaire (peut rester gris foncé) */
/*
.agent-item.connected .agent-name {
    color: #28a745; 
}

.agent-item.disconnected .agent-name {
    color: #dc3545;
}
*/ 

/* Classe pour réduire la taille si trop d'agents */
.agent-item.shrink {
    font-size: 2.1rem !important;
    padding: 8px 16px !important;
    min-height: 4.5rem !important;
}

.agent-initial.shrink {
    font-size: 2.3rem !important;
    width: 4.5rem !important;
    height: 4.5rem !important;
}

.agent-name.shrink {
    font-size: 1.4rem !important;
    max-width: 150px !important;
}

/* Couleur spéciale pour les agents renforts (non programmés, dispo) */
.agent-item.reinforcement {
    background-color: #28a745;
}

.agent-item.reinforcement .agent-initial {
    background-color: #1e7e34;
}

.agent-item.reinforcement .agent-name {
    color: #fff;
}

/* Bleu pour les agents en ligne (OnCall) */
.agent-item.oncall {
    background-color: #3f98e0;
}

.agent-item.oncall .agent-initial {
    background-color: #307ac4;
}

.agent-item.oncall .agent-name {
    color: #fff;
}

.agent-item.hors-file {
  background-color: #ffe066 !important;
  color: #222 !important;
  border: 2px solid #e6c200 !important;
  font-weight: bold;
}
.agent-item.hors-file .agent-name {
  color: #222 !important;
}

.agent-item.hors-file .agent-initial {
  background-color: #e6c200 !important;
  color: #fff !important;
}

.indetermine {
  background: linear-gradient(135deg, #ffe066 50%, #28a745 50%);
  background-size: 100% 100%;
  color: #333;
  border: none;
  box-shadow: none;
  animation: none;
  position: relative;
  z-index: 1;
}

.indetermine-static {
  background: linear-gradient(135deg, #ffe066 50%, #28a745 50%);
  background-size: 100% 100%;
  color: #333;
  border: none;
  box-shadow: none !important;
  animation: none !important;
  position: relative;
  z-index: 1;
}

/* Media queries pour la responsivité */
@media screen and (max-width: 1200px) {
    .agent-item {
        font-size: 2.4rem;
        padding: 10px 16px;
    }
    
    .agent-initial {
        width: 4.8rem;
        height: 4.8rem;
        font-size: 2.8rem;
    }
    
    .agent-name {
        font-size: 1.6rem;
        max-width: 180px;
    }
}

@media screen and (max-width: 768px) {
    .agents-container {
        padding: 10px 20px;
    }
    
    .agent-item {
        font-size: 2rem;
        padding: 8px 12px;
    }
    
    .agent-initial {
        width: 4rem;
        height: 4rem;
        font-size: 2.4rem;
    }
    
    .agent-name {
        font-size: 1.4rem;
        max-width: 150px;
    }
} 