/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
  }
  
  header {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
  }
  
  nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 1rem;
  }
  
  nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
  }
  
  .hero {
    text-align: center;
    padding: 5rem 1rem;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/background.jpg') no-repeat center center/cover;
    color: #fff;
  }
  
  .hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }
  
  .cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #7289da;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
  }
  
  .cta-button:hover {
    background-color: #677bc4;
  }
  
  .features {
    display: flex;
    justify-content: space-around;
    padding: 2rem 1rem;
    background-color: #f4f4f4;
  }
  
  .feature {
    text-align: center;
    max-width: 300px;
  }
  
  .feature h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .feature p {
    font-size: 1.1rem;
    color: #555;
  }
  
  footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 1000
  }
  
  /* Ajoute ces styles à ton fichier existant public/styles.css */

  .staff-panel {
    display: flex;
    height: 100vh; /* Utilise toute la hauteur de la fenêtre */
  }

  .sidebar {
    width: 200px; /* Largeur fixe pour la barre latérale */
    background-color: #f4f4f4;
    padding: 1rem;
    border-right: 1px solid #ddd;
    flex-shrink: 0; /* Empêche la barre latérale de rétrécir */
  }

.tabs {
  list-style: none;
  padding: 0;
}

.tab {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: 5px;
}

.tab.active {
  background-color: #7289da;
  color: #fff;
}

.content {
  flex-grow: 1;
  overflow-y: auto; /* Permet le défilement si le contenu dépasse la hauteur disponible */
  padding: 1rem;
  max-width: calc(100vw - 220px); /* Ajuste cette valeur en fonction de la largeur de ta sidebar */
}
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.ticket-list {
  list-style: none;
  padding: 0;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.ticket-item {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between; /* Aligne les éléments à gauche et à droite */
  align-items: center; /* Centre verticalement les éléments */
}


.ticket-item:hover {
  background-color: #f9f9f9;
}

.ticket-content {
  display: none;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 1rem;
  background-color: #fff;
  margin-top: 1rem;
  overflow-x: auto;
}

.ticket-content pre {
  white-space: pre-wrap;       /* Permet le retour à la ligne */
  word-wrap: break-word;        /* Cassure des mots longs */
  overflow-wrap: break-word;    /* Cassure des mots longs (version standardisée) */
  max-width: 100%;              /* Limite la largeur du contenu */
}
.chess-player-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.chess-ranking-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  font-family: Arial, sans-serif;
}

.chess-ranking-table thead {
  background-color: #333;
  color: #fff;
}

.chess-ranking-table th,
.chess-ranking-table td {
  padding: 0.75em;
  text-align: left;
  border: 1px solid #ddd;
}

.chess-ranking-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.chess-ranking-table tbody tr:hover {
  background-color: #f1f1f1;
}

.no-participants {
  padding: 1em;
  background-color: #ffe0e0;
  border: 1px solid #e0a0a0;
  color: #a00;
  border-radius: 5px;
}

.charts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.chart-box {
  width: 600px;
  max-width: 90%;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.chart-box canvas {
  width: 100%;
  height: 300px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-10px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.card-header h2 {
  margin: 0;
  color: #4CAF50;
  font-weight: 600;
}
#mod-details-content {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.moderator-list {
  list-style: none;
  padding: 0;
}

.moderator-list li {
  padding: 10px;
  margin-bottom: 10px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.moderator-list li:hover {
  background-color: #f0f0f0;
}
