* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/*login*/
.hero {
  height: 100%;
  width: 100%;
  position: absolute;
}
.form-box {
  box-shadow: 0 0.4rem 0.8rem #13265eb5;
  width: 380px;
  height: 400px;
  position: relative;
  margin: 10% auto;
  background: #fff;
  padding: 5px;
  /* border: 1px solid; */
  overflow: hidden;
  border-radius: 10px;
}
.form-box-register {
  width: 700px;
  margin: 80px auto;
  background: #fff;
  padding: 5px;
  border: 1px solid;
  overflow: hidden;
}
.form-box-register1 {
  width: 900px;
  margin: 20px auto;
  background: #fff;
  padding: 5px;
  border: 1px solid;
  overflow: hidden;
  height: 650px;
}
.button-box {
  width: 220px;
  margin: 35px auto;
  position: relative;
  box-shadow: 0 0 10px 1px #2757e2bd;
  border-radius: 30px;
}

.img-box img {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
}
.toggle-btn {
  padding: 10px 30px;
  cursor: pointer;
  background: transparent;
  border: 0;
  outline: none;
  position: relative;
}
#btn {
  top: 0;
  left: 0;
  position: absolute;
  width: 110px;
  height: 100%;
  background: linear-gradient(to right, #243fae, #55bfff);
  border-radius: 30px;
  transition: 0.5s;
}
.input-group {
  top: 150px;
  position: absolute;
  width: 280px;
  transition: 0.5s;
}
.input-field {
  width: 100%;
  padding: 10px 0;
  margin: auto;
  border-left: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 1px solid #999;
  outline: none;
  background: transparent;
}

.input-field1 {
  width: 50%;
  padding: 10px 0;

  border: 1px solid #000;
  outline: none;
  background: #cedef3;
  margin-bottom: 10px;
}
.submit-btn {
  margin-top: 50px;
  margin-left: 70px;
  width: 50%;
  padding: 10px 30px;
  cursor: pointer;
  display: block;

  background: linear-gradient(to right, #243fae, #55bfff);
  border: 0;
  outline: none;
  border-radius: 30px;
}
.otpsubmit-btn {
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 50%;
  padding: 10px 30px;
  cursor: pointer;
  display: block;

  background: linear-gradient(to right, #243fae, #55bfff);
  border: 0;
  outline: none;
  border-radius: 30px;
}
#login {
  left: 50px;
}
#register {
  left: 450px;
}
/*Login navbar*/
.dropdown {
  margin: 0 auto;
}
nav {
  width: 100%;
  height: 60px;
  background: #073395;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  position: fixed;
}
.logo {
  padding: 5px 0 0 80px;
  width: 150px;
  height: auto;
}
nav ul {
  padding: 0;
  margin: 0;
  float: right;
  margin-right: 30px;
}
nav ul li {
  padding-right: 10px;
  position: relative;
  list-style: none;
  display: inline-block;
}
nav ul li a {
  display: block;
  padding: 0 15px;
  color: white;
  text-decoration: none;
  line-height: 60px;
  font-size: 20px;
}
nav ul li a:hover {
  background: #243342;
}
nav ul li a:focus {
  background: #243342;
}

/** registration table**/
table {
  width: 100%;
  margin-top: 20px;
  margin-left: 20px;
}

td {
  padding-left: 15px;
  text-align: left;
  padding-bottom: 10px;
  padding-top: 10px;
  padding-right: 15px;
}

.tdata {
  border-radius: 10px;
  width: 300px;
  padding: 5px;
  background: #cedef3;
}
.tdata1 {
  width: 300px;
}
tr {
  height: 30px;
}

.text-box {
  display: block;
  margin-top: 25px;
  padding: 5px;
  margin-left: auto;
  margin-right: auto;
  font-size: 10px;
  text-align: center;
}
.input-group1 {
  position: absolute;
  width: 300px;
  transition: 0.5s;
  right: 100px;
  margin-left: auto;
  margin-right: auto;
}
.input-group2 {
  position: absolute;
  width: 300px;
  right: 10px;
  margin-left: auto;
}
.input-group3 {
  position: absolute;
  width: 200px;
  left: 10px;
  margin-right: auto;
}

/** home contenet **/
.i-name {
  color: #444a53;
  padding: 30px 30px 0 30px;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}
.values {
  padding: 30px 30px 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.values .val-box {
  background: #fff;
  width: 290px;
  height: 130px;
  padding: 16px 20px;
  border-radius: 5px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-right: 100px;
}
.values .val-box .material-symbols-outlined {
  font-size: 25px;
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  text-align: center;
  color: #fff;
  background: chartreuse;
  margin-right: 15px;
}
.values .val-box:nth-child(1) .material-symbols-outlined {
  background: #7b74ec;
}
.values .val-box:nth-child(2) .material-symbols-outlined {
  background: #e45d99;
}
.values .val-box:nth-child(3) .material-symbols-outlined {
  background: #74daec;
}

.values .val-box h3 {
  font-size: 18px;
  font-weight: 600;
}

.values .val-box span {
  font-size: 15px;
  color: #828997;
}
/*TABLE*/
.board {
  width: 94%;
  margin: auto;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
}
.overview-table {
  border-collapse: collapse;
}
.overview-tr {
  border-bottom: 1px solid #eef0f3;
}
thead td {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 400;
  background: #f9fafb;
  text-align: start;
  padding: 15px;
}
tbody tr td {
  padding: 10px 15px;
}
.pay a {
  background: #4a7ceb;
  padding: 2px 10px;
  display: inline-block;
  border-radius: 40px;
  color: #fff;
  text-decoration: none;
}
/*contact form */
.contactform {
  width: 60%;
  padding: 40px 60px;
  background: #ffffff;
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
}
.input-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.input-row .input-requestform {
  flex-basis: 45%;
}
.input-row .input-requestform input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  outline: none;
  padding-bottom: 5px;
}
.contactform textarea {
  width: 100%;
  border: 1px solid #ccc;
  outline: none;
  padding: 10px;
  box-sizing: border-box;
}
.contactform label {
  margin-bottom: 6px;
  display: block;
  color: #1c00b5;
}
.contactform button {
  background: #1c00b5;
  width: 100px;
  border: none;
  outline: none;
  color: #fff;
  height: 35px;
  border-radius: 30px;
  margin-top: 20px;
  box-shadow: 0px 5px 15px 0px rgba(28, 0, 181, 0.3);
  cursor: pointer;
}
.contactform h3 {
  color: #1c00b5;
  font-weight: 600;
  margin-bottom: 30px;
}
/*reg form */
.wrapper {
  max-width: 500px;
  width: 100%;
  background: #fff;
  margin: 20px auto;
  padding: 30px;
}

.wrapper .form {
  width: 100%;
}

.wrapper .form .inputfield {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.wrapper .form .inputfield label {
  width: 200px;
  color: #000;
  margin-right: 10px;
  font-size: 14px;
}

.wrapper .form .inputfield .input {
  width: 100%;
  outline: none;
  border: 1px solid #fff;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: #cedef3;
}

.wrapper .form .inputfield .btn {
  width: 100%;
  padding: 8px 10px;
  font-size: 15px;
  border: 0px;
  background: #fec107;
  color: #fff;
  cursor: pointer;
  border-radius: 3px;
  outline: none;
}

.wrapper .form .inputfield .btn:hover {
  background: #ffd658;
}

.form-box h1 {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
}
.form-box p {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
  color: #444a53;
}

.confirm-btn {
  margin-top: 10px;
  margin-left: 300px;
  width: 30%;
  padding: 10px 30px;
  cursor: pointer;
  display: block;

  background: linear-gradient(to right, #243fae, #55bfff);
  border: 0;
  outline: none;
  border-radius: 30px;
}

.forminput {
  width: 200px;
  height: 50px;
  text-align: center;
  margin: auto;
  display: block;
}

.board {
  width: 96%;
  margin-top: 30px;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  margin-left: 30px;
}

.add_po_board {
  width: 96%;
  margin-top: 30px;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  margin-left: 30px;
  margin-bottom: 30px;
  padding: 30px;
}

.board table {
  border-collapse: collapse;
}

.board thead td {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 400;
  background: #f9fafb;
  text-align: start;
  padding: 15px;
  border-collapse: collapse;
  border-bottom: 2px solid #000000bf;
}

.board tbody tr td {
  border-collapse: collapse;
  padding: 10px 15px;
  border-bottom: 2px solid #00000040;
}

@media (max-width: 420px) {
  .wrapper .form .inputfield {
    flex-direction: column;
    align-items: flex-start;
  }
  .wrapper .form .inputfield label {
    margin-bottom: 5px;
  }
  .wrapper .form .inputfield.terms {
    flex-direction: row;
  }
}

@media screen and (max-width: 400px) {
  .sidebar {
    width: 240px;
  }
  .sidebar.close {
    width: 78px;
  }
  .sidebar .profile-details {
    width: 240px;
  }
  .sidebar.close .profile-details {
    background: none;
  }
  .sidebar.close .profile-details {
    width: 78px;
  }
  .home-section {
    left: 240px;
    width: calc(100% - 240px);
  }
  .sidebar.close ~ .home-section {
    left: 78px;
    width: calc(100% - 78px);
  }
}
.hidden {
  position: absolute;
  right: 15px;
  transform: translate(0, -50%);
  top: 23%;
  cursor: pointer;
  display: inline;
}

.hidden2 {
  position: absolute;
  right: 15px;
  transform: translate(0, -50%);
  top: 75%;
  cursor: pointer;
  display: inline;
}
.fa {
  font-size: 20px;
  color: #7a797e;
}

.required-color {
  color: #ff4747;
}
.error {
  border-color: #ff4747;
}
.valid {
  border-color: #37a137;
}
.hide {
  display: none;
}
.error-message {
  margin-top: 0.2em;
  font-size: 10px;
  margin-bottom: 10px;
}

/** Date & Time CSS**/

.date-time {
  width: 400px;
  margin-left: 70%;
  color: #1d1b31;
  margin-top: 10px;
}

.date {
  display: inline-block;
}

.time {
  display: inline-block;
  margin-left: 20px;
  margin-right: 40px;
  color: #1d1b31;
}

.editbtn {
  background: linear-gradient(to right, #243fae, #55bfff);

  border-radius: 10px;

  color: #ffffff;
  width: 60px;
  padding: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  margin-left: 10px;
}
.editbtn:hover {
  background: #3cb0fd;
  background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
  background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
  background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
  background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
  background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
  text-decoration: none;
}
.status {
  background: #cff6dd;
  color: #1fa750;
  position: relative;
  border-radius: 30px;
  padding: 4px 10px 4px 25px;
}
.status::after {
  background: #23bd5a;
  position: absolute;
  top: 9px;
  left: 10px;
  width: 10px;
  height: 10px;
  content: "";
  border-radius: 50%;
}
/*search bar*/
.paymentsearch {
  width: 96%;
  background-color: white;
  height: 100px;
  border-radius: 5px;
}

.search {
  height: 20px;
  width: 95%;
}

.searchbar select {
  width: 15%;
}

.serchinput {
  width: 330px;
  margin: 0px 2%;
}

.searchbtn {
  width: 100px;
}

/* Action buttons styling */
.title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.action-buttons {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(to right, #243fae, #55bfff);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(to right, #1e2f8a, #4a9fd1);
  transform: translateY(-1px);
}

.btn i {
  font-size: 16px;
}

/* Modal Styles */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 0;
  border: none;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: modalSlideIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

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

.modal-header {
  background: linear-gradient(to right, #243fae, #55bfff);
  color: white;
  padding: 20px;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
}

.close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover {
  opacity: 0.7;
}

.modal-body {
  padding: 30px;
  flex: 1;
  overflow-y: auto;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #e1e1e1;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #243fae;
  box-shadow: 0 0 0 3px rgba(36, 63, 174, 0.1);
}

.form-group input:invalid {
  border-color: #e74c3c;
}

.modal-footer {
  padding: 20px 30px;
  background-color: #f8f9fa;
  border-radius: 0 0 8px 8px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #e1e1e1;
}

.modal-footer .btn {
  min-width: 120px;
  padding: 10px 20px;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

/* Responsive modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-footer {
    padding: 15px 20px;
    flex-direction: column;
  }
}

/* -- FORCER LE SCROLL HORIZONTAL SUR LES TABLEAUX, TOUTES RESOLUTIONS -- */
.table.table-responsive,
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

.table.table-responsive table,
.table-responsive table {
  width: 100%;
  min-width: 900px; /* largeur minimale pour déclencher le scroll */
  border-collapse: collapse;
}

.table.table-responsive th,
.table.table-responsive td,
.table-responsive th,
.table-responsive td {
  white-space: nowrap; /* éviter le retour à la ligne qui empêche le scroll */
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-box {
    width: 90%;
    margin: 5% auto;
  }
  
  .form-box-register {
    width: 95%;
    margin: 20px auto;
  }
  
  .form-box-register1 {
    width: 95%;
    margin: 10px auto;
  }
  
  .values {
    flex-direction: column;
    align-items: center;
  }
  
  .values .val-box {
    width: 90%;
    margin: 10px 0;
  }
  
  .board {
    width: 95%;
    margin: 20px auto;
    overflow-x: auto;
  }
  
  .board table {
    min-width: 600px;
  }
  
  /* Responsive table wrapper */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .table-responsive table {
    width: 100%;
    border-collapse: collapse;
  }
  
  /* Horizontal scroll for tables on small screens */
  .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-responsive table {
    width: 100%;
    min-width: 900px;
  }
  .table-responsive th,
  .table-responsive td {
    white-space: nowrap;
  }
  
  .contactform {
    width: 90%;
    padding: 20px;
  }
  
  .input-row {
    flex-direction: column;
  }
  
  .input-row .input-requestform {
    flex-basis: 100%;
    margin-bottom: 15px;
  }
  
  .date-time {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }
  
  .searchbar select {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .serchinput {
    width: 100%;
    margin: 10px 0;
  }
}

@media (max-width: 480px) {
  .form-box {
    width: 95%;
    height: auto;
    padding: 20px;
  }
  
  .button-box {
    width: 180px;
  }
  
  .input-group {
    width: 90%;
    position: relative;
    top: 0;
  }
  
  .submit-btn {
    width: 80%;
    margin: 20px auto;
  }
  
  .values .val-box {
    width: 95%;
    height: auto;
    padding: 15px;
  }
  
  .board table {
    font-size: 12px;
  }
  
  .board thead td,
  .board tbody tr td {
    padding: 8px 5px;
  }
  
  .editbtn {
    width: 50px;
    padding: 5px;
    font-size: 12px;
  }
  
  .contactform {
    width: 95%;
    padding: 15px;
  }
  
  .wrapper {
    width: 95%;
    padding: 15px;
  }
  
  .confirm-btn {
    width: 80%;
    margin: 10px auto;
  }
}
