@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@900&family=Pacifico&display=swap');

body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #f1f1f1;
	margin-left: 10px;
	margin-right: 10px;
	margin-bottom: 30px;
}

.dashboard {
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#notif-icon {
    background-color: #222;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    position: relative;
}

#notif-count {
    background: #ff4500;
    border-radius: 10px;
    padding: 1px 3px;
    font-size: 10px;
    position: absolute;
    top: 0;
    right: 0;
}

.xp-section {
    margin-top: 20px;
    background-color: #1e1e1e;
    padding: 10px;
    border-radius: 8px;
}

.upcoming-session, .recent-sessions {
    margin-top: 20px;
}

.add-btn {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #ff8000;
    border: none;
    color: white;
    border-radius: 4px;
    font-size: 16px;
}

.popup {
    background-color: #222;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
}

.hidden {
    display: none;
}

/*  
Logo
*/

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    font-size: 48px;
    margin: 20px auto;
    height: 60px;
}

.logo .fit {
    font-family: 'Roboto', sans-serif;
    color: #ff8000;
    position: relative;
    z-index: 3;
    margin-right: 0px;
}

.logo .by {
    font-family: 'Pacifico', cursive;
    font-size: 24px;
    color: #ffffffcc;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-130%) rotate(-10deg);
    z-index: 4;
}

.logo .orso {
    font-family: 'Roboto', sans-serif;
    color: white;
    position: relative;
    z-index: 1;
    margin-left:04px;
}

.logo-small {
    font-size: 28px;
    margin-bottom: 10px;
    height: 40px;
}

/*
Boutons header
*/

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.logout-btn {
    padding: 6px 12px;
    background-color: #444;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}
.logout-btn:hover {
    background-color: #ff4500;
}

/*
Page de login
*/
@media (max-width: 460px) {
  .login-container {
    margin: 20px;
    padding: 20px;
  }

  .logo-login {
    transform: scale(0.9);
    margin-bottom: 20px;
  }
}

.logo-login {
    transform: scale(1.1);
    margin-bottom: 30px;
}

@keyframes floatBy {
    0% { transform: translateX(-200%) rotate(-10deg) translateY(0); }
    50% { transform: translateX(-200%) rotate(-10deg) translateY(-2px); }
    100% { transform: translateX(-200%) rotate(-10deg) translateY(0); }
}

.logo-login .by {
    top: 25px;
    transform: translateX(-200%) rotate(-10deg);
    z-index: 5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    animation: floatBy 2s ease-in-out infinite;
}


.login-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 30px;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 0 10px #00000080;
    text-align: center;

}

.login-form input {
    display: block;
    width: 100%;
    box-sizing: border-box; /* ← Clé du problème ! */
    margin: 15px 0;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    background-color: #2a2a2a;
    color: #f1f1f1;
}


.login-form button {
    background-color: #ff8000;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.login-form button:hover {
    background-color: #ff9933;
}

/* Header Dashboard */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.dashboard-header .logo {
    margin-left: -10px; /* ou -20px si tu veux le coller vraiment à gauche */
}


.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid #fff;
}

.profile-dropdown {
    position: absolute;
    right: 20px;
    top: 60px;
    background-color: #222;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 0 10px #00000080;
    z-index: 999;
    text-align: left;
    min-width: 180px;
}

.profile-dropdown a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 6px 0;
}

.profile-dropdown a:hover {
    color: #ff8000;
}

.hidden {
    display: none;
}

/*
/*
Barre d'XP
*/
.xp-section {
    margin: 20px auto;
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 100%; /* Pas de restriction de largeur */
    margin-top: 20px; /* Crée un espace pour le label au-dessus */
    padding-left: 10px;  /* Crée un petit espace à gauche pour l'onglet */
    padding-right: 10px; /* Ajoute aussi un peu de marge à droite pour ne pas pousser la barre */
    box-sizing: border-box; /* Prendre en compte padding et marges */
}

.xp-tab-label {
    position: absolute;
    top: -9.8px; /* Ajuste légèrement la position de l'onglet */
    left: 10px;
    transform: translateY(-50%);
    background-color: #ffaa00;
    color: #111;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.4);
    font-family: 'Roboto', sans-serif;
    z-index: 3;
}

.xp-tab-content {
	font-size: 15px;
}

.xp-bar {
    position: relative;
    width: 100%;
    height: 24px;
    background-color: #222;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 5px #000000aa;
    margin: 0 auto;
}


.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff8000, #ffaa00);
    transition: width 0.4s ease-in-out;
}

.xp-label-inside {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    line-height: 24px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: white;
    pointer-events: none;
}
.xp-label-top {
    font-size: 13px;
    font-weight: bold;
    color: #ccc;
    margin-bottom: 6px;
    margin-top: 4px;
}

/* Animation barre */

.xp-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%; /* commence en dehors de la barre */
    height: 100%;
    width: 20%;
    background: linear-gradient(120deg, rgba(255,255,255,0.3), rgba(255,255,255,0));
    transform: skewX(-25deg);
    animation: shine 10s ease-in-out infinite; /* Accélérer l'animation et réduire le temps */
}

@keyframes shine {
    0% {
        left: -100%; /* Début de l'animation, totalement en dehors */
    }
    20% {
        left: 110%; /* Pousser l'effet jusqu'au bord de la barre */
    }
    100% {
        left: 110%; /* Fin de l'animation, garder l'effet jusqu'à la fin */
    }
}

/* L'élément parent de l'image de profil doit être positionné en 'relative' */
.profile-menu {
    position: relative;
}

/* Badge de niveau sous l'image de profil */
.level-badge {
    position: absolute;
    bottom: -4px;  /* Ajuste la position du badge sous l'image */
    left: 50%;     /* Centre horizontalement */
    transform: translateX(-50%); 
    background-color: #ff8000;  /* Couleur du badge */
    color: white;   /* Couleur du texte */
    font-weight: bold;
    padding: 1px 2px;
	min-width:35px;
    border-radius: 2px 2px 2px 2px;
    font-size: 8px;   /* Taille du texte */
    z-index: 10;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);  /* Légère ombre portée */
}


/* Style pour l'historique des XP */
.xp-popup {
    position: fixed;
    top: 35%;  /* Ajuste pour le centrage vertical */
    left: 50%;
    transform: translate(-50%, -40%);
    background: rgba(34, 34, 34, 0.97);
    color: white;
    padding: 10px;
    border-radius: 8px;
    z-index: 9999;
    overflow-y: auto;
    box-sizing: border-box;  /* Ajoute cette ligne pour bien inclure le padding dans la taille de l'élément */
    max-width: 90%;  /* Largeur maximale de 90% de l'écran */
    width: 90%;  /* Prend 90% de la largeur de l'écran sur mobile */
    max-height: 90%;  /* Limite la hauteur de la popup à 70% de la hauteur de l'écran */
    overflow-y: auto;
	box-shadow: 0 0 5px #000000aa;
}

.xp-popup button {
    background-color: #ff8000;  /* Couleur du bouton */
    color: white;               /* Texte en blanc */
    border: none;               /* Retirer les bordures */
    padding: 10px 20px;         /* Un peu de padding pour un bouton agréable */
    border-radius: 5px;         /* Coins arrondis */
    font-size: 14px;            /* Taille de texte */
    cursor: pointer;           /* Le curseur en forme de main pour indiquer l'interaction */
    transition: background-color 0.3s ease;
	margin-top: 10px;
}

.xp-popup.hidden {
    display: none;
}

.xp-popup ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.xp-event {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid #444;
    font-size: 14px;
    color: #f1f1f1;
    flex-wrap: wrap;
}

.xp-badge {
    background-color: #ff8000;
    color: white;
    font-weight: bold;
    padding: 5px;
    border-radius: 12px;
    font-size: 13px;
    width: 20px;          /* ✅ largeur fixe */
    text-align: center;
    flex-shrink: 0;
}

.xp-description {
    flex: 1 1 auto;
    word-break: break-word;
    min-width: 60%;
}

.xp-date {
    color: #ccc;
    font-size: 12px;
    font-style: italic;
    white-space: nowrap;
    margin-left: auto;
}


.icon-btn {
    background-color: #222;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    position: relative;
}

.icon-btn:hover {
  background: #444;
}

#notif-count {
  background: #ff6600;
  color: white;
  font-size: 0.6rem;
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  position: absolute;
  top: -5px;
  right: -5px;
}

/* Popup général */
.popup {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e1e1e;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  z-index: 1000;
  max-width: 75%;
  min-width: 75%;
  color: white;
}

.popup.hidden {
  display: none;
}

.popup h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #FF6600;
  font-size: 1.3rem;
}

.popup label {
  display: block;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  color: #ccc;
}

.popup input,
.popup textarea,
.popup select {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.4rem;
  border-radius: 8px;
  border: none;
  background: #2b2b2b;
  color: white;
}

.popup input[type="range"] {
  padding: 0;
  margin-top: 0.7rem;
}

.popup textarea {
  resize: vertical;
}

/* Boutons */
.btn-fit {
  background-color: #FF6600;
  color: white;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-fit:hover {
  background-color: #e65500;
}

.btn-danger {
  background-color: #aa1e1e;
  color: white;
}
.btn-danger:hover {
  background-color: #cc2e2e;
}

.btn-secondary {
  background: transparent;
  color: #FF6600;
  border: 2px solid #FF6600;
  margin-left: 0.5rem;
}

.btn-tri {
  background: transparent;
  color: #FF6600;
  border: 2px solid #FF6600;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  text-decoration: none;       /* supprime le soulignement */
  font-weight: bold;
}

.session-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.session-item {
  background: #2b2b2b;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  transition: background 0.2s;
}

.session-item a {
  color: white;
  text-decoration: none;
  display: block;
}

.session-item:hover {
  background: #3a3a3a;
}

.session-detail {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 15px;
  padding: 2rem;
  padding-top: 0.5rem;
  background: #1e1e1e;
  border-radius: 12px;
  color: white;
}

.session-detail h2,
.session-detail h3 {
  color: #FF6600;
  margin-bottom: 1rem;
}

.session-detail form label {
  display: block;
  margin: 1rem 0 0.5rem;
  font-size: 0.95rem;
}

.session-detail input,
.session-detail select,
.session-detail textarea {
  width: 100%;
  padding: 0.6rem;
  border: none;
  border-radius: 8px;
  background: #2b2b2b;
  color: white;
}


.session-exercise-list {
  list-style-type: none;
  padding: 0;
  margin-top: 1rem;
}

.exercise-item {
  background: #2a2a2a;
  padding: 1rem;
  margin-bottom: 0.7rem;
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 0 6px rgba(255, 102, 0, 0.2);
}

.no-exercise-msg {
  color: #999;
  font-style: italic;
}

.session-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.full-width {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  text-align: center;
  box-sizing: border-box;
}

.separator {
  border: none;
  border-top: 2px solid white;
  margin: 1rem 0;
}

.btn-danger {
  background-color: #aa1e1e;
  color: white;
}

.btn-danger:hover {
  background-color: #cc2e2e;
}

.popup input,
.popup textarea,
.popup select {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.4rem;
  border-radius: 8px;
  border: none;
  background: #2b2b2b;
  color: white;
  box-sizing: border-box; /* 🔥 assure que padding ne gonfle pas la taille */
}

.popup textarea {
  resize: vertical;
  min-height: 60px; /* optionnel pour harmoniser */
}
.exercise-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.exercise-info {
  flex-grow: 1;
}

/* Pour améliorer l'apparence du bouton */
.delete-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #ff6666;
}

.delete-btn:hover {
  color: #ff0000;
  transform: scale(1.1);
}

/* Profil des utilisateurs */

.profile-container {
  max-width: 500px;
  margin: 0 auto;
  margin-top: 10px;
  padding: 2rem;
  padding-top: 3rem;
  background: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  text-align: center;
}

.profile-title {
  font-size: 1.6rem;
  color: #FF8000;
  margin-bottom: 1.5rem;
}

.profile-photo-wrapper {
  position: relative;
  display: inline-block;
  margin: 0 auto;
}

.profile-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Bouton Modifier (✏️) */
.profile-upload-btn {
  position: absolute;
  bottom: 4px;
  left: 7px;
  background-color: #FF8000;
  color: white;
  padding: 6px 6px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  z-index: 5;
}

/* Bouton Supprimer (❌) */
.profile-delete-btn {
  position: absolute;
  bottom: 4px;
  right: 7px;
  background-color: #aa1e1e;
  color: white;
  padding: 6px 6px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  z-index: 5;
}



.profile-stats {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-around;
  font-size: 1.1rem;
  color: #ccc;
}

.profile-measurements {
  margin-top: 2rem;
  text-align: left;
}

.separator {
  border: none;
  border-top: 2px solid #444;
  margin: 2rem 0;
}

#cropModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  max-height: 100vh;
  overflow: auto;
  width: 80%;
  background: #1c1c1c;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 1000;
  color: white;
}

#cropModal img,
#cropModal .cropper-container {
  max-width: 100%;
  max-height: 60%;
  width: 80%;
  height: 50%;
  display: block;
  margin: 0 auto;
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  padding: 4px 4px;
}

/* En-tête du popup */
.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #ccc;
  cursor: pointer;
}

/* Liste des activités */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Chaque élément d’activité */
.activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2a2a2a;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  color: white;
  font-size: 0.9rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.activity-text {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.activity-desc {
  font-weight: bold;
}

.activity-time {
  font-size: 0.75rem;
  color: #bbb;
}

/* Bouton like */
.btn-like {
  background-color: transparent;
  border: none;
  font-size: 1.3rem;
  color: #00c853;
  cursor: pointer;
  padding: 0;
  margin-left: 0.5rem;
}

.icon-btn.new::after {
  content: "";
  position: absolute;
  top: 0px;
  right: 0px;
  width: 8px;
  height: 8px;
  background: red;
  border-radius: 50%;
  box-shadow: 0 0 6px red;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.effort-stats {
  margin-top: 1.5rem;
  background-color: #1f1f1f;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.effort-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.effort-box {
  flex: 1;
}

.effort-value {
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
}

.effort-label {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 0.2rem;
}

.separator-vertical {
  width: 1px;
  height: 40px;
  background-color: #444;
  margin: 0 0.5rem;
}

.xp-section-effort {
    margin: 20px auto;
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 100%; /* Pas de restriction de largeur */
    margin-top: 20px; /* Crée un espace pour le label au-dessus */
    padding-left: 10px;  /* Crée un petit espace à gauche pour l'onglet */
    padding-right: 10px; /* Ajoute aussi un peu de marge à droite pour ne pas pousser la barre */
    box-sizing: border-box; /* Prendre en compte padding et marges */
}

.effort-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;  /* 👈 aligne en bas */
  align-items: center;
  height: 40px; /* ou plus si nécessaire */
}

.machine-list li {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-section {
  max-width: 600px;
  margin: auto;
  padding: 2rem 1rem;
  background-color: #1c1c1c;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 128, 0, 0.2);
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #FF8000;
}

.machine-form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #ccc;
}

.machine-form input,
.machine-form select,
.machine-form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border-radius: 5px;
  border: none;
  background: #2b2b2b;
  color: white;
}

.machine-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.machine-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: #2a2a2a;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.machine-info {
  font-size: 1.1rem;
  color: #eee;
}

.category-tag {
  color: #888;
  font-size: 0.9rem;
  margin-left: 0.4rem;
}

.machine-actions {
  display: flex;
  gap: 0.5rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.site-footer {
    margin-top: 3rem;
    padding: 1rem;
    text-align: center;
    background: #1a1a1a;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #333;
  }

.footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw; /* force la pleine largeur de la fenêtre */
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  z-index: 999;
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}

.footer-bar .footer-content {
  margin: 0 auto;
  padding: 0;
  max-width: 100%;
  display: inline-block;
  text-align: center;
}

.footer-bar a {
  color: #ffa500;
  text-decoration: none;

}

.orso-popup-container {
  position: relative;
  display: inline-block;
}

.orso-popup {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  background-color: rgba(30, 30, 30, 0.95);
  color: #fff;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  padding-bottom: 1.5rem;
  font-size: 0.9rem;
  z-index: 100;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  min-width: 180px;
}

.orso-popup ul {
  padding-left: 1rem;
  margin: 0;
  list-style-type: none; 
  padding-left: 0;
}

.orso-popup.hidden {
  display: none;
}

.orso-link {
  cursor: pointer;
  color: #ff8000;
  text-decoration: underline dotted;
}

.leaderboard-section {
  margin-bottom: 2rem;
}


.leaderboard-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 1px solid #ccc;
}

.rank {
  font-weight: bold;
  width: 2rem;
}

.leaderboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.leaderboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0.6rem;
  border-bottom: 1px solid #ddd;
}

.rank {
  width: 2rem;
  font-weight: bold;
}

.username {
  flex: 1;
  padding-left: 0.5rem;
  text-align: left;
}

.score {
  font-weight: bold;
  text-align: right;
  white-space: nowrap;
  color: #ff8000;
}

.flash-messages {
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.flash {
  padding: 0.8rem 1rem;
  border-radius: 5px;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: white;
}

.flash-danger {
  background-color: #e74c3c;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4); /* Fond semi-transparent */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup h3 {
	text-align: center;
}

.popup {
  padding: 1rem;
  border-radius: 10px;
  z-index: 1001;
  max-width: 500px;
  width: 80%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
    align-items: center;
}

.hidden {
  display: none;
}

.notif-title-bar {
	width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-title-bar h3 {
  margin: 0 auto;
  text-align: center;
  flex-grow: 1;
}

.notif-title-bar button {
  flex-shrink: 0;
}

.form-measurements {
  background-color: #1e1e1e;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.form-measurements label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: #ccc;
}

.form-measurements input {
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #444;
  background-color: #2c2c2c;
  color: white;
  margin-top: 4px;
}

<style>
.measurement-summary {
  background-color: #f8f8f8;
  border-left: 4px solid #005f88;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  border-radius: 4px;
}
</style>
