
.admin-card {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 40px auto;
    text-align: center;
    font-family: 'Lato', sans-serif;
    position: relative;
    top: 88px;
    border: 2px solid #F29C38;
}
.theme-toggle-btn1 {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2.2rem;
  color: var(--text-color);
  position: absolute;
  left: 79px;
  z-index: 999;
}
.admin-card h2 {
    color: #f29c35;
    margin-bottom: 15px;
}

.admin-card p {
    margin: 5px 0;
    font-size: 1.3rem;
    color: var(--text-color);
}

.admin-links {
    margin-top: 20px;
}

.admin-links a {
    display: inline-block;
    margin: 6px;
    padding: 6px 14px;
    background-color: #f29c35;
    color: white;
    border: none;
    border-radius: 7px;
    text-decoration: none;
}

.admin-links a:hover {
    background-color: #d8822d;
}


.back-to-dashboard {
    text-align: center;
    margin-bottom: 20px;
}
.back-btn {
    display: block;
    margin: 20px auto 0 auto;
    background-color: #f29c35;
    color: #fff;
    padding: 10px 20px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 500;
    width: fit-content;
    text-align: center;
}
.back-btn1 {
    background-color: #f29c35;
    color: #fff;
    padding: 10px 12px;
    border-radius: 13px;
    text-decoration: none;
    /* font-size: 0.9rem; */
    font-weight: 500;
    width: 248px;
    position: relative;
    top: 23px;
    left: 203px;
}

.back-btn:hover {
    background-color: #d8822d;
}
.back-btn:hover {
    background-color: #d8822d;
}

.user-line h2 {
    font-size: 1.1rem;
    color:  var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 8px;
}

.status-dot.actif {
    background-color: green;
}

.status-dot.inactif {
    background-color: red;
}

.title-section {
  margin-top: -38px;
  margin-bottom: 18px;
  text-align: center;
}

.page-title {
  text-align: center;
  font-size: 2.4rem;
  /* margin-bottom: 11px; */
  color: #f29c38;
  position: relative;
  top: 19px;
  left: 5px;
}





select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 16px;
    appearance: none; /* enlève le style natif */
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
  }
  
  /* les boutons de la page admin  */
  form button.delete-btn {
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  form button.delete-btn:hover {
    background-color: #c0392b;
  }
  
  /* les styles des transactions-list de la page admin  */
  .transaction-list {
    max-height: 400px;  /* ou ajuste selon la hauteur que tu veux */
    overflow-y: auto;
    padding: 10px;
  }
  
  .transaction-item.revenu {
    color: green;
  }
  
  .transaction-item.depense {
    color: red;
  }
  
  .transaction-item {
    margin-bottom: 5px;
  }
  
  /* style pour le bouton de suppression */
  
  .transaction-page {
    max-width: 800px;
    margin: 0 auto; /* centre horizontalement */
    text-align: left;
    position: relative;
    /* top: 116px; */
  }
  
  .transaction-summary {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2em;
  }
  
  .transaction-list-container {
    max-height: 200px;
    overflow-y: auto;
    background-color: var(--bg-color);
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 6px;
  }
  
  .transaction-list-container ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  
  .transaction-list-container li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
  }
  
  .transaction-list-container li:last-child {
    border-bottom: none;
  }
  
  
  
  .transaction-text {
    flex: 1;
  }
  
  form.delete-form {
    margin-left: 10px;
  }
  
  form.delete-form button {
    background-color: #e74c3c;
    color: white;
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  form.delete-form button:hover {
    background-color: #c0392b;
  }
  
  
  .revenu {
    color: green;
  }
  
  .depense {
    color: red;
  }
  /* bouton de modification de transaction */
  .edit-btn {
    padding: 5px 10px;
    background-color: #3498db; /* bleu */
    color: white;
    border-radius: 4px;
    text-decoration: none;
    margin-left: 5px;
  }
  
  .edit-btn:hover {
    background-color: #2980b9; /* bleu foncé */
  }
  
  
  
  /* Style pour la page de modification */
  .transaction-edit-container {
    max-width: 450px;
    margin: 106px auto;
    padding: 32px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: var(--bg-color);
    font-family: 'Roboto', sans-serif;
    border: 2px solid #f29c35;
    /* margin-bottom: 55px; */
    /* max-height: 388px; */
    /* margin-top: 15px; */
}
  
.transaction-edit-container h1 {
  text-align: center;
  /* margin-top: 112px; */
  font-size: 22px;
  color: var(--text-color);
  margin-bottom: -108px;
  position: relative;
  top: -125px;
  color: #f29c38;
}
  
  .field-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
    /* font-size: 14px; */
    width: 308px;
  }
  
  .field-line span {
    flex: 1;
    font-weight: 500;
  }
  
  .field-line input,
  .field-line select {
    flex: 1;
    padding: 6px 8px;
    font-size: 14px;
    border-radius: 4px;
  }
  
  .transaction-edit-container button {
    width: 100%;
    padding: 10px;
    background-color: #F29C35;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .transaction-edit-container button:hover {
    background-color: #d57f28;
  }
  
  .transaction-edit-container a {
    display: block;
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: #AA1155;
    text-decoration: none;
  }
  
  .transaction-edit-container a:hover {
    color: #F29C38;
  }
  
  /* style pour la page des utilisateurs et admin  suppression de la transaction */
  
  
  .all-users-block {
    width: 100%;
    max-width: 557px;
    margin: 0 auto;
    background-color:var(--bg-color);
    border: 2px solid var(--border-color1);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 413px;
    overflow-y: auto;
    top: 7px;
    position: relative;
    height: 247px;
}
  
h1 {
  font-size: 2rem;
  margin-bottom: -10px;
  color: #f29c38;
  margin-bottom: 9px;
  margin-top: 103px;
  bottom: 123px;
  left: 19px;
}
  
  
  .user-line h2 {
    margin: 0;
  }
  
  
  
  .revenu {
    color: green;
  }
  
  .depense {
    color: red;
  }
  
  .solde {
    color: black;
  }
  
  .user-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 5px;
  }
  
  .details-btn {
    background-color: #3498db;
    color: white;
    padding: 4px 8px;
    text-decoration: none;
    border-radius: 4px;

    margin-top: 5px;
  }
  
  .details-btn:hover {
    background-color: #2980b9;
  }
  
  .delete-btn {
    background-color: #e74c3c;
    color: white;
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .delete-btn:hover {
    background-color: #c0392b;
  }

  /* ============================
   Responsive : Téléphone (max-width: 768px)
============================= */

@media (max-width: 768px) {
  .profile-balance, .total-balance {
    font-size: 1.2rem;
    transform: translate(11%, 7%);
}
.admin-card {
  background: var(--bg-color);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 253px;
  margin: 40px auto;
  text-align: center;
  font-family: 'Lato', sans-serif;
  position: relative;
  top: 122px;
  border: 2px solid #F29C38;
}
.all-users-block {
  width: 74%;
  max-width: 378px;
  /* margin: 0 auto; */
  background-color: var(--bg-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* max-height: 413px; */
  /* overflow-y: auto; */
  top: 7px;
  position: relative;
  height: 247px;
}
.transaction-page {
  max-width: 408px;
  /* margin: 0 auto; */
  /* text-align: left; */
  position: relative;
  /* top: 108px; */
}
.back-btn1 {
  background-color: #f29c35;
  color: #fff;
  padding: 10px 12px;
  border-radius: 13px;
  /* text-decoration: none; */
  /* font-size: 0.9rem; */
  /* font-weight: 500; */
  width: 248px;
  position: relative;
  top: 23px;
  left: 82px;
}
h1 {
  font-size: 1.6rem;
  /* margin-bottom: -10px; */
  color: #f29c38;
  /* margin-bottom: 11px; */
  /* margin-top: 89px; */
  bottom: 6px;
  left: 5px;
}
.transaction-edit-container h1 {
  text-align: center;
  /* margin-top: 112px; */
  font-size: 22px;
  color: var(--text-color);
  margin-bottom: -108px;
  position: relative;
  top: -125px;
  color: #f29c38;
}
}
/* ============================
   Responsive : Tablette (769px à 992px)
============================= */
@media (min-width: 769px) and (max-width: 992px) {
  .profile-balance, .total-balance {
    font-size: 1.2rem;
    transform: translate(11%, 7%);
}
.transaction-edit-container h1 {
  text-align: center;
  /* margin-top: 112px; */
  font-size: 22px;
  color: var(--text-color);
  margin-bottom: -108px;
  position: relative;
  top: -125px;
  color: #f29c38;
}
.admin-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 350px;
  margin: 40px auto;
  text-align: center;
  font-family: 'Lato', sans-serif;
  position: relative;
  top: 122px;
  border: 2px solid #F29C38;
}
.admin-card p {
  margin: 5px 0;
  font-size: 1.2rem;
  color: var(--text-color);
}
.all-users-block {
  width: 100%;
  max-width: 431px;
  margin: 0 auto;
  background-color: var(--bg-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-height: 413px;
  overflow-y: auto;
  top: 7px;
  position: relative;
  height: 247px;
}
.transaction-page {
  max-width: 684px;
  /* margin: 0 auto; */
  /* text-align: left; */
  position: relative;
  /* top: 108px; */
}
.back-btn1 {
  background-color: #f29c35;
  color: #fff;
  padding: 10px 12px;
  border-radius: 13px;
  /* text-decoration: none; */
  /* font-size: 0.9rem; */
  /* font-weight: 500; */
  width: 248px;
  position: relative;
  top: 23px;
  
}
h1 {
  font-size: 1.6rem;
  /* margin-bottom: -10px; */
  color: #f29c38;
  /* margin-bottom: 11px; */
  /* margin-top: 89px; */
  bottom: 6px;
  left: 5px;
}
}
