/* Container général pour le contenu principal */
.twitch-panel-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Assure que le conteneur prend toute la hauteur de la fenêtre */
    justify-content: space-between; /* Distribue l'espace entre le contenu et l'espaceur */
    padding: 0 20px;
}

/* Style général du panel (contenu principal) */
.twitch-panel {
    flex-grow: 1;
    font-family: 'Roboto', sans-serif;
    background-color: #18181b;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    color: #ffffff;
    width: 100%;
}

/* Conteneur pour aligner les informations et la photo de profil */
.twitch-panel-info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* Bloc contenant les informations utilisateur */
.info-box {
    flex-grow: 1;
    margin-right: 20px;
}

/* Photo de profil */
.twitch-panel-profile-image {
    flex-shrink: 0;
    width: 170px;
    height: 170px;
}

.twitch-panel-profile-image img.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 35%; /* Rondir la photo */
    object-fit: cover; /* Couvrir entièrement l'espace */
}

/* Titres principaux */
.twitch-panel h2, .twitch-panel h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid #9146FF;
    padding-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Informations utilisateur et live */
.twitch-panel p {
    font-size: 16px;
    color: #e3e3e3;
    margin: 12px 0;
}

/* Formulaire de mise à jour du titre */
.twitch-panel form {
    margin-top: 25px;
}

.twitch-panel label {
    display: block;
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
}

.twitch-panel input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background-color: #29292e;
    color: #ffffff;
    border: 1px solid #9146FF;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.twitch-panel input[type="text"]:focus {
    outline: none;
    border-color: #b07aff;
}

.twitch-panel input[type="submit"] {
    background-color: #9146FF;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.twitch-panel input[type="submit"]:hover {
    background-color: #b07aff;
}

/* Encadré des informations */
.twitch-panel .info-box {
    background-color: #232327;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 12px;
    /* margin-bottom: 20px; */
    transition: background-color 0.3s, transform 0.3s;
    width: 100%; /* Ajout */

}

.twitch-panel .info-box:hover {
    background-color: #29292e;
    transform: scale(1.02);
}

.twitch-panel .info-box p {
    margin: 8px 0;
    font-size: 14px;
    color: #dcdcdc;
    font-weight: 500;
}

/* Style pour flouter les informations */
.blurred {
    filter: blur(6px);
    transition: filter 0.3s ease-in-out;
    cursor: not-allowed;
}

/* Bouton pour afficher/masquer */
.toggle-blur {
    background-color: #9146ff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.toggle-blur:hover {
    background-color: #b07aff;
}

/* Espaceur pour ajuster la hauteur de la page */
.twitch-panel-spacer {
    flex-grow: 1; /* Prend tout l'espace disponible */
}
