body,
html {
  height: 100%;
  margin: 0;
  background: linear-gradient(-45deg, #0f172a, #1e293b, #334155, #1e40af);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.family {
  font-family: 'Montserrat', serif;
  letter-spacing: 1px;
}

.yellow {
  color: #ffd166;
}

.purple {
  color: #9381ff !important;
}

.orange {
  color: #f76e11;
}

.green {
  color: #70e000;
}

.cinequizLogo {
  font-size: 4.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.panel {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.8rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.panel:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.containerPanel {
  padding: 1.5rem 0 1.5rem 0;
}

.btn {
  border-radius: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  border: none;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.5);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.8rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(99, 102, 241, 0.6);
}

.btn-danger {
  background-color: #e74c3c;
  border: none;
}

.btn-warning {
  background-color: #f39c12;
  border: none;
}

.btn-light {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#lobbyList .card {
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

#lobbyList .card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

#lobbyList .card-title {
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
}

.cardBox {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.8rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 100%;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Masque toutes les vues de jeu / résultats par défaut */
#gameView,
#resultView {
  display: none;
  height: 100vh;
}

/* Overlay global countdown */
#countdownOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  font-size: 8rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.questions-container {
  overflow-y: auto;
  max-height: 30rem;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 15px;
  font-family: 'Poppins', sans-serif;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.questions-container::-webkit-scrollbar {
  width: 6px;
}

.questions-container::-webkit-scrollbar-track {
  background: transparent;
}

.questions-container::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 6px;
}

.question-summary {
  border: none;
  border-radius: 10px;
  padding: 15px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  color: white;
}

.question-summary:hover {
  transform: translateY(-2px);
}

.question-header {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  align-items: center;
}

.category-icon {
  font-size: 24px;
}

.question-text {
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

.correct-answer {
  font-size: 14px;
  color: #70e000;
  margin: 5px 0 0;
  font-weight: 500;
}

.responses {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.player-response {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.player-response.green {
  background-color: rgba(112, 224, 0, 0.2);
  color: #b4ff6e;
}

.player-response.red {
  background-color: rgba(231, 76, 60, 0.2);
  color: #ff8a80;
}

.player-response.orange {
  background-color: rgba(243, 156, 18, 0.2);
  color: #ffd166;
}

.player-name {
  font-weight: 500;
}

.player-answer {
  flex: 1;
  text-align: center;
}

.status-icon {
  font-size: 18px;
}

.player-response {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Poppins', sans-serif;
}

.player-response .cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grouped-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.grouped-choices>.list-group-item:first-child {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.grouped-choices>.list-group-item:last-child {
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.grouped-choices>.list-group-item:not(:last-child) {
  border-bottom: none;
}

.list-group-item-answer {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  transition: all 0.2s ease;
}

.list-group-item-answer:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.dont-know-btn {
  background-color: rgba(108, 117, 125, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.dont-know-btn:hover {
  background-color: rgba(108, 117, 125, 0.3);
}

.dont-know-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.choice-card {
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.choice-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.choice-card.selected {
  background-color: rgba(108, 92, 231, 0.3);
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.navbar-cinequiz {
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.8rem 1rem;
}

.navbar-cinequiz .navbar-brand,
.navbar-cinequiz .nav-link {
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
}

.navbar-cinequiz .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-cinequiz .nav-link:hover {
  color: #fff;
  transform: translateY(-2px);
}

.form-select,
.form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  transition: all 0.3s ease;
}

.form-select:focus,
.form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
  color: white;
}

/* Styles pour les inputs désactivés */
.form-select:disabled,
.form-control:disabled,
.form-select[readonly],
.form-control[readonly] {
  background-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
  opacity: 0.8;
}

.form-select option {
  background-color: #2b5876;
  color: white;
}

@media (min-width: 992px) {
  .navbar-nav-center {
    position: absolute;
    left: 50%;
    transform: translatex(-50%);
  }
}

@media (max-width: 991.98px) {
  .navbar-nav-center .nav-link {
    text-align: center;
  }
}

.list-group-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress {
  height: 0.8rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.progress-ranked .progress-bar {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

@media screen and (max-width: 768px) {
  .panel {
    padding: 1rem !important;
  }
}

@media screen and (max-width: 576px) {
  .logo {
    flex-direction: column;
  }

  .cinequizLogo {
    font-size: 3rem;
  }
}

.lobby-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.lobby-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lobby-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-align: center;
}

.lobby-title.casual {
  background-color: rgba(108, 92, 231, 0.2);
  color: #a29bfe;
}

.lobby-title.ranked {
  background-color: rgba(243, 156, 18, 0.2);
  color: #ffd166;
}

.btn-casual {
  background-color: rgba(108, 92, 231, 0.8);
  color: white;
  border: none;
  transition: all 0.3s ease;
  padding: 0.6rem 1.2rem;
}

.btn-casual:hover {
  background-color: rgba(108, 92, 231, 1);
  transform: translateY(-2px);
}

.btn-ranked {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border: none;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.5);
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.8rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-ranked:hover,
.btn-ranked:focus {
  background: linear-gradient(135deg, #d97706, #dc2626);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(245, 158, 11, 0.6);
  color: white;
}

.lobby-separator {
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin: 2rem 0;
  width: 80%;
}

@media (max-width: 991px) {
  .lobby-separator {
    width: 90%;
  }
}

#iconPlayersLobby {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.player-icon {
  width: 4.5rem;
  height: 5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: default;
  margin-bottom: 0.5rem;
  min-width: 4.5rem;
  min-height: 5rem;
  box-sizing: border-box;
  padding: 0.5rem;
  overflow: hidden;
}

.player-icon i {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  /* Effet de brillance blanc léger */
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
}

/* Nom du joueur */
.player-icon .player-name {
  font-size: 0.7rem;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  /* Assurer que le texte va sur plusieurs lignes au besoin */
  white-space: normal;
  word-wrap: break-word;
  overflow: hidden;
  line-height: 1.1;
  max-height: 2.2rem;
  text-overflow: ellipsis;
}

/* Style pour les joueurs qui ont répondu - témoin lumineux vert */
.player-icon.has-answered i {
  filter: drop-shadow(0 0 5px rgba(76, 209, 55, 0.8));
  transform: scale(1.1);
}

/* Style pour le joueur actuel */
.player-icon.current-player {
  transform: scale(1.1);
}

.player-icon.current-player i {
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
  font-weight: bold;
}

/* Style spécial pour la couronne de l'hôte */
.player-icon i.fa-crown {
  filter: drop-shadow(0 0 5px rgba(255, 193, 7, 0.6));
}

.modal-content {
  background-color: rgba(43, 88, 118, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.badge {
  font-weight: 500;
  padding: 0.5em 0.8em;
  border-radius: 6px;
}

.text-bg-medium {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.3em 0.6em;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 500;
}

/* Nouveaux styles ajoutés pour le design modernisé */
.category-option {
  margin-bottom: 8px;
}

.categories-grid {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 10px;
  margin-top: 5px;
}

.form-check-input {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.form-check-input:checked {
  background-color: #6c5ce7;
  border-color: #6c5ce7;
}

.players-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.players-list::-webkit-scrollbar {
  width: 5px;
}

.players-list::-webkit-scrollbar-track {
  background: transparent;
}

.players-list::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 6px;
}

.question-panel {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.question-content {
  font-size: 1.2rem;
  line-height: 1.6;
}

.timer-container {
  font-size: 1.1rem;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.score-list {
  min-width: 200px;
}

.final-score-list {
  max-width: 500px;
  margin: 0 auto;
}

.final-score-list .list-group-item {
  transition: all 0.3s ease;
  padding: 0.8rem 1.2rem;
  font-size: 1.1rem;
}

.final-score-list .list-group-item:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.15);
}

.countdown-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.countdown-subtitle {
  font-size: 1.5rem;
  margin-top: 10px;
  opacity: 0.8;
}

.input-group-text {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

/* Media queries adaptatives */
@media screen and (max-width: 992px) {

  .question-panel,
  #choicesContainer {
    width: 90% !important;
  }
}

@media screen and (max-width: 576px) {
  .countdown-subtitle {
    font-size: 1.2rem;
  }

  #countdownText {
    font-size: 6rem;
  }

  .question-content {
    font-size: 1rem;
  }
}

/* Styles pour la nouvelle mise en page des lobbies */
#lobbyList {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.1));
  border-left: none;
  position: relative;
}

#lobbyList::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #3b82f6, #6366f1);
  border-radius: 2px;
}

#lobbyList h1 {
  color: white;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

#lobbyList h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  border-radius: 3px;
}

/* Style spécifique pour le lobby compétitif */
#competitive-section {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.1));
  border-left: none;
  position: relative;
}

#competitive-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #f59e0b, #ef4444);
  border-radius: 2px;
}

#competitive-section h1 {
  color: white;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

#competitive-section h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  border-radius: 3px;
}

/* Amélioration de l'apparence responsive */
@media (max-width: 768px) {

  #lobbyList,
  #competitive-section {
    margin-bottom: 1.5rem;
  }

  .cardBox {
    min-height: 400px;
  }

  .mode-icon-wrapper {
    width: 70px;
    height: 70px;
  }

  .mode-icon {
    font-size: 2rem;
  }
}

/* Styles modernisés pour les modes de jeu */
.mode-card {
  border-radius: 16px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mode-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.mode-header {
  padding: 1rem;
  text-align: center;
}

.mode-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.mode-icon-wrapper::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3));
  z-index: -1;
  animation: rotate 4s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

.mode-icon-wrapper.casual {
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.mode-icon-wrapper.ranked {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

.mode-icon {
  font-size: 2.5rem;
  color: white;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mode-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0 1rem;
}

/* Effet de pulsation pour les boutons */
.pulse-effect {
  position: relative;
}

.pulse-effect:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0.5rem;
  background: inherit;
  opacity: 0;
  z-index: -1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.1);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Nouveau style modernisé pour les items de lobby */
.lobby-item {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
  position: relative;
  backdrop-filter: blur(10px);
}

.lobby-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.lobby-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.lobby-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.8rem;
}

.lobby-code {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin: 0;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  color: #f59e0b;
  font-size: 0.8rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.status-badge.available {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.status-badge.in-game {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.status-badge i {
  margin-right: 0.4rem;
}

.lobby-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.info-item i {
  width: 20px;
  margin-right: 0.6rem;
  color: rgba(255, 255, 255, 0.6);
}

.lobby-action {
  margin-top: auto;
  text-align: center;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.join-text {
  color: #3b82f6;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.lobby-item:hover .join-text {
  color: #60a5fa;
}

.lobby-item:hover .join-text i {
  transform: translateX(3px);
}

.join-text i {
  margin-right: 0.4rem;
  transition: transform 0.2s ease;
}

/* Styles pour le Lobby modernisé */
.lobby-header-section {
  margin-bottom: 2rem;
}

.lobby-title {
  font-weight: 800;
  margin-top: 0.8rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.lobby-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.mode-icon-wrapper.lobby {
  background: linear-gradient(135deg, #9333ea, #6366f1);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.6);
}

/* Panneaux modernisés */
.modern-panel {
  background: rgba(30, 41, 59, 0.7);
  border-radius: 16px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
}

.modern-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2.5s infinite;
}

.host-panel::before {
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

.lobby-panel::before {
  background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.3), transparent);
}

.panel-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header h4 {
  margin: 0;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.panel-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.host-panel .panel-icon-wrapper {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(59, 130, 246, 0.2));
  color: #6366f1;
}

.lobby-panel .panel-icon-wrapper {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(99, 102, 241, 0.2));
  color: #9333ea;
}

/* Groupes de paramètres */
.setting-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.setting-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.setting-label i {
  color: rgba(255, 255, 255, 0.7);
  width: 18px;
  text-align: center;
}

/* Inputs modernisés */
.modern-input,
.modern-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: white;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.modern-input:focus,
.modern-select:focus {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.modern-addon {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-right: none;
  color: rgba(255, 255, 255, 0.7);
}

.modern-check .form-check-input,
.modern-switch .form-check-input {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.modern-check .form-check-input:checked,
.modern-switch .form-check-input:checked {
  background-color: #6366f1;
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.modern-switch .form-check-input:checked {
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

.modern-check .form-check-label,
.modern-switch .form-check-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

/* Styles pour la grille de catégories */
.categories-grid {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem 0.8rem;
  margin-top: 0.5rem;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
}

.category-option {
  margin-bottom: 0.8rem;
  transition: all 0.2s ease;
}

.category-option:hover {
  transform: translateX(3px);
}

/* Bouton de démarrage */
.start-button {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 15px rgba(99, 102, 241, 0.4);
}

.start-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(99, 102, 241, 0.5);
}

/* Sections du panneau de lobby */
.share-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.share-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 0 0 60px;
}

.section-header {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
}

.players-section {
  margin-bottom: 1.5rem;
}

.player-counter {
  background: rgba(99, 102, 241, 0.2);
  color: #6366f1;
  font-size: 0.8rem;
  padding: 0.1rem 0.5rem;
  border-radius: 12px;
  margin-left: 0.5rem;
}

.modern-list {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.modern-list .list-group-item {
  background: transparent;
  border-left: none;
  border-right: none;
  border-color: rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1rem;
  transition: all 0.2s ease;
}

.modern-list .list-group-item:first-child {
  border-top: none;
}

.modern-list .list-group-item:last-child {
  border-bottom: none;
}

.modern-list .list-group-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.modern-btn {
  border-radius: 10px;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modern-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.leave-btn {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.leave-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.lobby-actions {
  margin-top: 1.5rem;
}

/* Responsive tweaks */
@media (max-width: 992px) {
  .modern-panel {
    margin-bottom: 1.5rem;
  }

  .lobby-header-section {
    margin-bottom: 1rem;
  }

  .lobby-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .panel-header {
    flex-direction: column;
    text-align: center;
  }

  .panel-icon-wrapper {
    margin-right: 0;
    margin-bottom: 0.8rem;
  }

  .setting-label {
    text-align: center;
  }
}