/* Profile */
.profile-container {
    min-height: calc(100vh - 350px);
    padding: 0 10%;
    margin-top: 10px;
}

.band {
    display: flex;
    align-items: end;
    border: solid 1px #e4e6e7;
    height: 200px;
    padding: 10px 20px;
    width: 100%;
    border-radius: 4px;
}

.name-container {
    display: flex;
    align-items: end;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
}

.name-container h1 {
    margin: 0;
}

.name-container p {
    margin: 0px;
    color: #666;

}

.tag {
    padding: 2px 8px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tag::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.6) 50%,
      rgba(255, 255, 255, 0.2) 100%
    );
    transform: rotate(25deg) translateX(-100%);
    transition: transform 0.7s ease;
    pointer-events: none;
}

.tag:hover::before {
    transform: rotate(25deg) translateX(100%);
}


.rank {
    margin: 0;
}

.progress-bar-container {
    width: 100%;
    max-width: 100%;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 5px 0;
    position: relative;
    height: 28px;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.06); */
    display: flex;
    align-items: center;
}

.progress-bar {
    background: linear-gradient(90deg, #000 60%, #444 100%);
    height: 100%;
    border-radius: 4px 0 0 4px;
    transition: width 0.4s cubic-bezier(.4,2,.6,1);
}

.progress-label {
    position: absolute;
    width: 100%;
    text-align: center;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    z-index: 2;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.change_btn {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}

/* New Styles for Elements Without Styling */

.profile-details {
    display: flex;
    justify-content: space-between;
    margin-top: 13px;
}

.profile-section {
    border: solid 1px #e4e6e7;
    padding: 0px 15px;
    width: 49.5%;
    border-radius: 5px;
    background-color: white;
}

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

.progress-title {
    color: gray;
    font-size: 15px;
    margin: 5px 0;
    font-weight: normal;
}

.progress-sub {
    font-size: 20px;
    font-weight: bold;
}

.color {
    border: none;
    border-radius: 5px;
}

/* Headings */
.profile-title {
    font-size: 1.6em;
    margin: 15px 0px;
    margin-bottom: 5px;
    color: #222;
  }
  
  /* Paragraphs outside name-container */
  .profile-container > p {
    font-size: 1em;
    color: #333;
    margin: 12px 0;
  }
  
  /* Unstyled ul list of completed challenges */
  .profile-container ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }
  
.profile-container ul li {
    background: #ffffff;
    border: #e4e6e7 1px solid;
    margin-bottom: 5px;
    padding: 10px 12px;
    border-radius: 6px;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.05); */
    transition: background 0.2s ease;
}
  
.profile-container ul li:hover {
    /* background: #efefef; */
    border-color: #B33791;
}
  
  /* Input Groups */
  .input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
  }
  
  /* Text Input Styling */
  .input-group input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    font-size: 1em;
    border-radius: 4px;
    border: 1px solid #ccc;
    transition: border 0.2s;
  }
  
  .input-group input[type="text"]:focus {
    outline: none;
    border-color: #666;
  }
  
  /* Color Picker Styling */
  .input-group input[type="color"] {
    opacity: 0;
    display: block;
    width: 50px;
    height: 34px;
    border: none;
}
#color-picker-wrapper {
	float: left;
  border-radius: 5px;
}
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .profile-container {
      padding: 0 5%;
    }
  
    .name-container {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }
  
    .progress-label {
      font-size: 13px;
    }
  
    .input-group {
      flex-direction: column;
      align-items: stretch;
    }
  }
  
.list-title {
    font-weight: bold;
    margin: 0;
    color: #222;
}
.list-subtitle {
    font-size: 0.9em;
    color: #666;
    margin: 4px 0 0 0;
}

/* DELETE SECTION */

.delete-account-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: solid 1px #d16c6c65;
    padding: 15px 20px;
    border-radius: 5px;
    background-color: white;
}

.delete-account-section h4 {
  margin: 5px 0;
}

/* --- Bouton d'ouverture --- */
.btn-delete {
  background-color: #ff00191e;
  color: rgb(255, 0, 0);
  border: solid 1px rgb(255, 0, 0);
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.btn-delete:hover {
  background-color: red;
  color: white;
}

/* --- Overlay (fond gris semi-transparent) --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* --- Fenêtre modale --- */
.modal {
  background: white;
  width: 460px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.25s ease-out;
  overflow: hidden;
  font-family: system-ui, sans-serif;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #e1e4e8;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: #24292e;
}

.modal-header p {
  margin-top: 8px;
  font-size: 13px;
  color: #586069;
}

/* --- Corps du texte --- */
.modal-body {
  padding: 20px;
  font-size: 14px;
  color: #24292e;
}

.modal-body .information {
  margin-bottom: 15px;
}

.modal-body label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.modal-body input {
  width: 100%;
  padding: 8px;
  border: 1px solid #d1d5da;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.modal-body input:focus {
  border-color: #0366d6;
}

.error-msg {
  color: #d73a49;
  font-size: 13px;
  margin-top: 4px;
  display: none;
}

/* --- Boutons actions --- */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.btn-cancel {
  background: #f6f8fa;
  color: #24292e;
  border: 1px solid #d1d5da;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cancel:hover {
  background: #eaeef2;
}

.btn-confirm {
  background: #d73a49;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-confirm:hover {
  background: #b92533;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-8px); }
  40%, 60% { transform: translateX(8px); }
}

.shake {
  animation: shake 0.3s;
}

.input-error {
  border-color: #d73a49 !important;
}
