.squad-body {
  display: none;
  font-family: 'Arial', sans-serif;
  color: #fff;
  margin: 0 auto;
  width: 100vh;
  max-width: 100vh;
  margin: 12vh auto;
  overflow: hidden;
  min-height: 68vh;  /* Hauteur minimale */
  max-height: 68vh;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1vh 2vh;
  background: #0E0E0E;
  border: 0.2vh solid #EDDB17; 
  box-shadow: 0 0 0.5vh #EDDB17;
}

.main-content {
  margin-top: 1vh;
  border: 0.2vh solid #EDDB17; 
  background: #0E0E0E;
}

.profile {
  display: flex;
  align-items: center;
}

.profile-pic {
  width: 6vh;
  height: 6vh;
  margin-right: 1.5vh;
}

.profile-info {
  font-size: 1.2vh;
}

.username {
  font-weight: bold;
  font-size: 1.6vh;
}

.title {
  font-size: 3vh;
  color: #ffffff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%); 
  text-align: center;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2vh; 
  color: #EDDB17;
  cursor: pointer;
  line-height: 1;
}

.tab-container {
  display: flex;
  gap: 4vh;
  justify-content: center;
  align-items: center;
  padding: 1vh 0;
}

.tab {
  width: 4vh;
  height: 4vh; 
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.3s ease;
  margin-top: 1vh;

}

.tab:hover {
  opacity: 1;
}

.tab img {
  width: 3vh;
  height: 3vh;
}

.tab-text {
  margin-top: 1vh; 
  color: #fff;
  font-size: 1vh; 
  text-transform: uppercase; 
  font-weight: bold;
}

.tab.active {
  opacity: 1;
}

.tab.private.active {
  opacity: 1;
}



.search-container {
  position: relative; 
}

.search-icon {
  position: relative; 
  width: 2.7vh;
  height: 2.7vh;
  margin-top: -1.5vh;  
  position: absolute; 
  left: 21vh; 
}

.search-bar {
  font-size: 1vh;
  border: 0.02vh solid #EDDB17;
  border-radius: 0.5vh; 
  margin-top: -1.5vh; 
  position: absolute;
  left: 25vh;
  height: 2vh;
  width: 13vh; 
}




.squad-list {
  padding: 2vh;
  max-height: 40vh;
  height: 40vh;
  scrollbar-color: #EDDB17 #222; 
  scrollbar-width: thin; 
  overflow-y: auto;
}

.squad-list.private .squad-row {
  display: block;
}

.squad-list.public .squad-row {
  display: none;
}

.squad-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 2fr 1fr;
  align-items: center;
  gap: 0.2vh;
  padding: 0;
}
.squad-row div,
.squad-row button {
  text-align: center;
  font-size: 1.5vh;
  padding: 1vh 0;
  margin: 0.1vh;
  height: 5vh;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.rank-and-name {
  border: 0.2vh solid #3d3d3d;
  background: #222;
  color: #fff;
}

.rank {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 5vh;
  height: 5vh; 
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  color: #ffffff; 
  font-weight: bold;
  text-align: center;
}

.squad-name {
  font-weight: bold;
  text-transform: uppercase;
  flex-grow: 1;
}

.players {
  font-weight: bold;
  background: #2dff5a41;
  display: inline-flex; 
  align-items: center;
  border: 0.2vh solid #3d3d3d; 
}

.player-icon {
  width: 1.8vh; 
  height: 1.8vh;
  margin-right: -1vh;  
  background-color: green; 
  padding: 1.5vh;  
  position: relative;  
  left: -2.3vh;
}

.personalized-text {
  font-weight: bold;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border: 0.2vh solid #3d3d3d; 
}

.join-btn {
  font-weight: bold;
  color: #ffffff;
  background: #222; 
  cursor: pointer;
  border: 0.02vh solid #4d4d4d; 
  transition: all 0.3s ease;
}

.join-btn:hover {
  color: #ffea00; 
  background: #000000;
  border: 1px solid #ffea00; 
  box-shadow: 0 0 1px #ffea00, 0 0 2px #ffea00, 0 0 3px #ffea00; 
  transform: scale(1.02); 
}

.footer {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 1.4vh 2vh;
  background: #1b1b1b;
}

.settings-btn {
  background: #0E0E0E;
  border: 0.02vh solid #FFEA00;
  color: #EDDB17;
  padding: 0.4vh 2vh; 
  cursor: pointer;
  text-transform: uppercase;
  font-size: 1.1vh; 
  display: inline-flex; 
  align-items: center; 
  transition: transform 0.3s ease;
}

.settings-icon {
  width: 1.2vh; 
  height: 1.2vh; 
  transform: translateX(-60%); 
  transition: transform 0.3s ease;
}

.settings-btn:hover {
  transform: scale(1.1);
}
  
  .create-squad-btn {
    background: #0E0E0E;
    border: 0.02vh solid #FFEA00;
    color: #EDDB17;
    padding: 0.4vh 2vh; 
    cursor: pointer;
    text-transform: uppercase;
    font-size: 1.1vh; 
    transition: transform 0.3s ease;
  
  }

  .create-squad-btn:hover {
    transform: scale(1.1);
  }

  .mysquad-btn {
    background: #0E0E0E;
    border: 0.02vh solid #FFEA00;
    color: #EDDB17;
    padding: 0.4vh 2vh; 
    cursor: pointer;
    text-transform: uppercase;
    font-size: 1.1vh; 
    transition: transform 0.3s ease;
  
  }

  .mysquad-btn:hover {
    transform: scale(1.1);
  }
  
  .tab-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
  }
  
  .tab-icon.globe {
    background: url('https://example.com/globe-icon.png') no-repeat center center;
    background-size: contain;
  }
  
  .tab-icon.lock {
    background: url('https://example.com/lock-icon.png') no-repeat center center;
    background-size: contain;
  }


.create-squad-form {
  width: 100%;
  max-width: 50vh;
  margin: 5vh auto;
  font-size: 1.5vh;
}

.create-squad-form h2 {
  color: #EDDB17;
  font-size: 2vh;
  margin-bottom: 1.5vh;
}

.create-squad-form label {
  font-weight: bold;
  color: #fff;
  margin-bottom: 1vh;
  display: block;
  text-align: left;
  width: 100%;
}

.create-squad-form input,
.create-squad-form textarea {
  background: #222; 
  border: 0.2vh solid #ffffff; 
  color: #fff; 
  padding: 1vh;
  width: 100%;
  margin-bottom: 1.2vh;
  font-size: 1.5vh;
}

.create-squad-form input:focus,
.create-squad-form textarea:focus {
  border-color: #EDDB17; 
  outline: none; 
}



.create-squad-form button {
  background-color: #00000000;
  color: #f5f5f5;
  font-size: 1.5vh;
  padding: 1.2vh 2vh;
  border: 0.3vh solid #383838;
  cursor: pointer;
  margin-top: 1vh;
  width: 52.5vh;
  text-transform: uppercase;
  font-weight: bold;
  transition: all 0.3s ease;
}

.create-squad-form button:hover {
  transform: scale(1.05);
  color: #f5f5f5;
}

.cancel-btn {
  border: 0.3vh solid #383838;
  cursor: pointer;
  margin-top: 1vh;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.cancel-btn:hover {
  color: #1E1E1E;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.create-squad-form {
  animation: slideIn 0.5s ease-out;
}



.visibility-toggle {
  display: flex;
  align-items: center;
  margin: 1.5vh 0vh;
  gap: 3vh; 
}

.visibility-toggle div {
  display: flex;
  align-items: center;
  gap: 0.7vh;  
}

.visibility-toggle label {
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  margin: 0; 
}

.visibility-toggle input[type="radio"] {
  accent-color: #EDDB17; 
  transform: scale(1.2); 
  margin: 0;
}

#squad-password:disabled {
  background-color: #444; 
  border-color: #888;
  color: #aaa; 
  cursor: not-allowed; 
  opacity: 0.4; 
}

#squad-password {
  background-color: #222; 
  border: 0.2vh solid #fff;
  color: #fff; 
  padding: 1vh;
  width: 100%;
  font-size: 1.6vh;
  margin-bottom: 1vh;
}

#squad-password:focus:not(:disabled) {
  border-color: #EDDB17; 
  outline: none;
}





#password-modal {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 15, 15, 0.884); 
  justify-content: center;
  align-items: center;
  z-index: 1000; 
}

.modal-content {
  background-color: rgb(8, 6, 6);
  padding: 2vh;
  border-radius: 1vh;
  width: 40vh;
  text-align: center;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
  font-size: 1.6vh;
  margin-bottom: 2vh;
}

#password-input {
  width: 30vh;
  height: 1vh; 
  padding: 1vh;
  margin-bottom: 2vh;
  border: 0.2vh solid #2b2b2a;
  border-radius: 1vh;
  font-size: 1.4vh;
  text-align: center;
}

#password-submit, #password-cancel {
  padding: 1vh 2vh;
  margin-bottom: 3vh;
  border: none;
  border-radius: 0.4vh;
  cursor: pointer;
  font-size: 1vh;
  transition: background-color 0.3s ease;
}

#password-submit {
  background-color: #0d0e0d;
  margin-right: 1vh;
  color: white;
}

#password-cancel {
  background-color: #0d0e0d;
  margin-right: 1vh;
  color: white;
}

#password-submit:hover {
  background-color: #118511;
}

#password-cancel:hover {
  background-color: #c82333;
}

@media screen and (max-width: 600px) {
  #password-input {
      width: 90%;
  }

  .modal-content {
      padding: 15px;
      max-width: 90%;
  }
}

.mysquad {
  display: none;
  padding: 2vh;
  max-height: 46.9vh;
  height: 46.9vh;
  scrollbar-color: #EDDB17;
  scrollbar-width: thin;
  overflow-y: auto;
  background: #0E0E0E;
  border-radius: 10px;
  color: #fff;
}


.member-list {
  margin-top: 2vh;
}

.member-list h3 {
  margin-bottom: 1vh;
  font-size: 2vh;
  font-weight: bold;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1vh;
}

table th, table td {
  padding: 0.8vh;
  text-align: left;
  font-size: 1.5vh;
  border: 0.02vh solid #444;
}

table th {
  background-color: #333;
  color: #fff;
  font-weight: bold;
}


table tr:hover {
  background-color: #11111194;
}

table td {
  color: #ccc;
}

#back-btn {
  background-color: #222;
  color: #ffffff;
  padding: 0.4vh 1vh;
  border: 0.02vh solid #575651; 
  border-radius: 0.3vh;
  cursor: pointer;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  font-size: 1.4vh;
  margin-top: 2vh;
  transition: all 0.3s ease;
}

#back-btn:hover {
  color: #ffea00; 
  background: #000000;
  border: 1px solid #ffea00; 
  box-shadow: 0 0 1px #ffea00, 0 0 2px #ffea00, 0 0 3px #ffea00; 
  transform: scale(1.02); 
}

#leave-btn {
  background-color: #222;
  color: #ffffff;
  padding: 0.4vh 1vh;
  border: 0.02vh solid #575651; 
  border-radius: 0.3vh;
  cursor: pointer;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  font-size: 1.4vh;
  margin-top: 2vh;
  transition: all 0.3s ease;
}

#leave-btn:hover {
  color: #ffea00; 
  background: #000000;
  border: 1px solid #ffea00; 
  box-shadow: 0 0 1px #ffea00, 0 0 2px #ffea00, 0 0 3px #ffea00; 
  transform: scale(1.02); 
}

.actions button {
  font-weight: bold;
  color: #ffffff;
  background: #222; 
  cursor: pointer;
  padding: 0.4vh 1vh;
  font-size: 1.3vh;
  border: 0.02vh solid #4d4d4d; 
  transition: all 0.3s ease;
}

.actions button:hover {
  color: #ffea00; 
  background: #000000;
  border: 1 solid #ffea00; 
  box-shadow: 0 0 1px #ffea00, 0 0 2px #ffea00, 0 0 3px #ffea00; 
  transform: scale(1.02); 
}




#message-modal {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 15, 15, 0.884); 
  justify-content: center;
  align-items: center;
  z-index: 1000; 
}

.modal-content2 {
  background-color: rgb(8, 6, 6);
  border-radius: 1vh;
  width: 40vh;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.modal-content2 h2 {
  font-size: 1.8vh;
  margin-bottom: 2vh;
}

#message-input {
  width: 30vh;
  height: 6vh; 
  padding: 1vh;
  margin-bottom: 2vh;
  border: 0.2vh solid #2b2b2a;
  border-radius: 1vh;
  font-size: 1.4vh;
  text-align: left; /* Le texte commence à gauche */
  resize: none; /* Empêche l'utilisateur de redimensionner manuellement */
}


#send-message-btn, #cancel-message-btn {
  padding: 1vh 2vh;
  margin-bottom: 3vh;
  border: none;
  border-radius: 0.4vh;
  cursor: pointer;
  font-size: 1vh;
  transition: background-color 0.3s ease;
}

#send-message-btn {
  background-color: #0d0e0d;
  margin-right: 0.5vh;
  color: white;
}

#cancel-message-btn {
  background-color: #0d0e0d;
  margin-left: 0.5vh;
  color: white;
}

#send-message-btn:hover {
  background-color: #118511;
}

#cancel-message-btn:hover {
  background-color: #c82333;
}

#players-container {
  position: fixed; 
  top: 33%; 
  left: 1.5vh; 
  transform: translateY(-50%); 
  display: flex;
  flex-direction: column; 
  gap: 1vh;
  z-index: 1000; 
}

.player-info {
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.664);
  width: 23vh;
  height: 4vh;
}

.avatar {
  margin-right: 1vh;
  margin-top: 0.45vh;
}

.avatar img {
  margin-left: 0.5vh;
  width: 3.1vh;
  height: 3.1vh;
  object-fit: cover;
}

.info {
  flex-grow: 1;
}

.player-name {
  font-size: 1.3vh;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  color: white;
  display: flex;
}

.health-bar-container {
  width: 90%; 
  background-color: #0e0d0db7;
  margin-top: 0.7vh;
  height: 0.38vh;
}

.health-bar {
  height: 100%;
  width: 100%;  /* Par défaut, on part de 100% */
  background-color: rgb(255, 255, 255);
  transition: width 0.4s ease; /* Animation fluide de la largeur sur 1 seconde */
}
