/* Streamer List Styles */
.search-box {
    display: flex;
    margin-bottom: 15px;
}

.search-box input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 4px 0 0 4px;
    border: 1px solid var(--border-color);
    background-color: #2c2c2f;
    color: var(--text-color);
}

.search-box button {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Add a disabled state for the search button */
.search-box button:disabled {
    background-color: #4e3688;
    cursor: not-allowed;
}

.streamer-list {
    list-style: none;
}

.streamer-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.streamer-item:hover {
    background-color: #2c2c2f;
}

.streamers-section .streamer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    flex-shrink: 0;
}

/* 
 * CSS POUR LA SECTION STREAMERS (FENÊTRE PRINCIPALE)
 * 
 * Ces styles sont spécifiques à l'affichage des streamers dans la fenêtre principale.
 * Ils utilisent .streamers-section comme préfixe pour éviter les conflits
 * avec le chat global (.global-chat) et la sidebar (.sidebar).
 */

.streamers-section .streamer-info {
    flex: 1;
    display: flex;
    flex-direction: column; /* Affichage vertical pour la fenêtre principale */
    gap: 2px;
    min-width: 0;
    align-items: flex-start;
    margin-left: 8px;
}

.streamers-section .streamer-name {
    font-weight: 700;
    font-size: 1.2em;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.streamers-section .streamer-game {
    font-size: 0.65em;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.streamers-section .streamer-viewers {
    font-size: 0.8em;
    color: #e91916;
    margin-top: 1px;
}

.streamers-section .streamer-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-height: 32px;
}

.streamers-section .streamer-actions .streamer-viewers {
    font-size: 0.75em;
    color: #e91916;
    margin: 0;
    padding: 4px 8px;
    background-color: rgba(233, 25, 22, 0.1);
    border-radius: 12px;
    white-space: nowrap;
    font-weight: 500;
    border: 1px solid rgba(233, 25, 22, 0.2);
}

.streamers-section .streamer-actions button {
    background-color: transparent;
    border: none;
    color: #a8a8aa;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: color 0.2s;
    font-size: 14px;
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.streamers-section .streamer-actions button:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Bouton de chat spécifique */
.streamers-section .chat-btn {
    color: #6441a5;
}

.streamers-section .chat-btn:hover {
    color: #8b5fbf;
    background-color: rgba(100, 65, 165, 0.1);
}

/* Bouton de suppression spécifique */
.streamers-section .remove-streamer-btn {
    color: #f44336;
}

.streamers-section .remove-streamer-btn:hover {
    color: #ff6b6b;
    background-color: rgba(244, 67, 54, 0.1);
}

/* Add this to the streamers.css file */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Add this to the streamers.css file */

.loading {
    color: var(--text-color);
    text-align: center;
    padding: 20px;
    font-style: italic;
    opacity: 0.7;
}

/* Add this to the streamers.css file */

.welcome-message {
    padding: 20px;
    color: var(--text-color);
    text-align: center;
}

.welcome-message h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.welcome-message p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.welcome-message ul {
    list-style: none;
    margin-top: 15px;
}

.welcome-message li {
    margin-bottom: 8px;
    font-family: monospace;
    background-color: rgba(100, 65, 165, 0.2);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}