/* =========== Google Fonts ============ */
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* =============== Globals ============== */
* {
  font-family: "Ubuntu", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #2a2185;
  --white: #fff;
  --gray: #f5f5f5;
  --black1: #222;
  --black2: #999;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

.container-fluid {
  position: relative;
  width: 100%;
  padding-left: 0;
  margin-left: 0;
}

a{
    text-decoration: none;
}

/* =============== Navigation ================ */
.navigation {
  position: fixed;
  width: 300px;
  height: 100%;
  background: var(--blue);
  transition: 0.5s;
  overflow: hidden;
  transform: translateX(-15px);
}
.navigation.active {
  width: 95px;
}

.navigation ul {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.navigation ul li {
  position: relative;
  width: 100%;
  list-style: none;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}

.navigation ul li:hover,
.navigation ul li.hovered {
  background-color: var(--white);
}

.navigation ul li:nth-child(1) {
  margin-bottom: 10px;
  pointer-events: none;
}

.navigation ul li a {
  position: relative;
  display: block;
  width: 100%;
  display: flex;
  text-decoration: none;
  color: var(--white);
}
.navigation ul li:hover a,
.navigation ul li.hovered a {
  color: var(--blue);
}

.navigation ul li a .icon {
  position: relative;
  display: block;
  min-width: 60px;
  height: 60px;
  line-height: 75px;
  text-align: center;
}
.navigation ul li a .icon ion-icon {
  font-size: 1.75rem;
}

.navigation ul li a .title {
  position: relative;
  display: block;
  padding: 0 10px;
  height: 60px;
  line-height: 60px;
  text-align: start;
  white-space: nowrap;
}

/* --------- curve outside ---------- */
.navigation ul li:hover a::before,
.navigation ul li.hovered a::before {
  content: "";
  position: absolute;
  right: 0;
  top: -50px;
  width: 50px;
  height: 50px;
  background-color: transparent;
  border-radius: 50%;
  box-shadow: 35px 35px 0 10px var(--white);
  pointer-events: none;
}
.navigation ul li:hover a::after,
.navigation ul li.hovered a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -50px;
  width: 50px;
  height: 50px;
  background-color: transparent;
  border-radius: 50%;
  box-shadow: 35px -35px 0 10px var(--white);
  pointer-events: none;
}

/* ===================== Main ===================== */
.main {
  position: absolute;
  width: calc(100% - 300px);
  left: 300px;
  min-height: 100vh;
  background: var(--white);
  transition: 0.5s;
}
.main.active {
  width: calc(100% - 80px);
  left: 80px;
}

.topbar {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

.toggle {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  cursor: pointer;
}

.search {
  position: relative;
  width: 400px;
  margin: 0 10px;
}

.search label {
  position: relative;
  width: 100%;
}

.search label input {
  width: 100%;
  height: 40px;
  border-radius: 40px;
  padding: 5px 20px;
  padding-left: 35px;
  font-size: 18px;
  outline: none;
  border: 1px solid var(--black2);
}

.search label ion-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 1.2rem;
}

/* ======================= Cards ====================== */
.cardBox {
  position: relative;
  width: 100%;
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 30px;
}

.cardBox .card {
  position: relative;
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.cardBox .card .numbers {
  position: relative;
  font-weight: 500;
  font-size: 2.5rem;
  color: var(--blue);
}

.cardBox .card .cardName {
  color: var(--black2);
  font-size: 1.1rem;
  margin-top: 5px;
}


.cardBox .card:hover {
  background: var(--blue);
}
.cardBox .card:hover .numbers,
.cardBox .card:hover .cardName,
.cardBox .card:hover .iconBx {
  color: var(--white);
}

/* ================== entrepreneurs Details List ============== */
.details {
  position: relative;
  width: 100%;
  padding: 20px;
  display: grid;
  grid-gap: 30px;
  margin-top: 10px;
}

.details .entrepreneurs {
  position: relative;
  display: grid;
  min-height: 500px;
  background: var(--white);
  padding: 20px;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
  border-radius: 20px;
}

.details .cardHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.cardHeader h2 {
  font-weight: 600;
  color: var(--blue);
}
.cardHeader .btn {
  position: relative;
  padding: 5px 10px;
  background: var(--blue);
  text-decoration: none;
  color: var(--white);
  border-radius: 6px;
}

.details table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.details table thead td {
  font-weight: 600;
}
.details .entrepreneurs table tr {
  color: var(--black1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.details .entrepreneurs table tr:last-child {
  border-bottom: none;
}
.details .entrepreneurs table tbody tr:hover {
  background: var(--blue);
  color: var(--white);
}
.details .entrepreneurs table tr td {
  padding: 10px;
}
.details .entrepreneurs table tr td:last-child {
  text-align: end;
}
.details .entrepreneurs table tr td:nth-child(2) {
  text-align: center;
}
.details .entrepreneurs table tr td:nth-child(3) {
  text-align: center;
}
.details .entrepreneurs table tr td:nth-child(4) {
    text-align: end;
  }
.status.pending {
  padding: 2px 4px;
  background: #e9b10a;
  color: var(--white);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}
.status.return {
  padding: 2px 4px;
  background: #f00;
  color: var(--white);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}
.status.inProgress {
  padding: 2px 4px;
  background: #1795ce;
  color: var(--white);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}



/* ====================== Responsive Design ========================== */
@media (max-width: 991px) {
  .navigation {
    left: -300px;
  }
  .navigation.active {
    width: 300px;
    left: 0;
  }
  .main {
    width: 100%;
    left: 0;
  }
  .main.active {
    left: 300px;
  }
  .cardBox {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .details {
    grid-template-columns: 1fr;
  }
  .entrepreneurs {
    overflow-x: auto;
  }
  .status.inProgress {
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .cardBox {
    grid-template-columns: repeat(1, 1fr);
  }
  .cardHeader h2 {
    font-size: 20px;
  }
  .user {
    min-width: 40px;
  }
  .navigation {
    width: 100%;
    left: -100%;
    z-index: 1000;
    font-size: 12px;
  }
  .navigation.active {
    width: 80%; 
    left: 0;
  }
  .toggle {
    z-index: 10001;
  }
  .main.active .toggle {
    color: transparent;
    position: fixed;
    right: 0;
    left: initial;
  }
}

/* Login form */

.login-page {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  overflow: hidden;
}

.login-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/images/background.png') no-repeat center center;
  background-size: cover;
  z-index: -2;
}

.login-page::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Fond noir semi-transparent */
  z-index: -1;
}

.login-page ::selection {
    color: #fff;
    background: #53f0e3;
}

.login-wrapper {
    width: 380px;
    padding: 40px 30px 50px 30px;
    background: #fff;
    border-radius: 5px;
    text-align: center;
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.1);
}

.login-header {
    font-size: 35px;
    font-weight: 600;
}

.login-form {
    margin: 40px 0;
}

.login-field {
    width: 100%;
    margin-bottom: 20px;
}

.login-field.shake {
    animation: login-shake 0.3s ease-in-out;
}

@keyframes login-shake {
    0%, 100% { margin-left: 0px; }
    20%, 80% { margin-left: -12px; }
    40%, 60% { margin-left: 12px; }
}

.login-input-area {
    height: 50px;
    width: 100%;
    position: relative;
}

.login-input {
    width: 100%;
    height: 100%;
    outline: none;
    padding: 0 45px;
    font-size: 18px;
    background: none;
    caret-color: #5372F0;
    border-radius: 5px;
    border: 1px solid #bfbfbf;
    border-bottom-width: 2px;
    transition: all 0.2s ease;
}

.login-field .login-input:focus,
.login-field.valid .login-input {
    border-color: #5372F0;
}

.login-field.shake .login-input,
.login-field.error .login-input {
    border-color: #dc3545;
}

.login-input-area i {
    position: absolute;
    top: 50%;
    font-size: 18px;
    pointer-events: none;
    transform: translateY(-50%);
}

.login-icon {
    left: 15px;
    color: #bfbfbf;
    transition: color 0.2s ease;
}

.login-error-icon {
    right: 15px;
    color: #dc3545;
}

.login-input:focus ~ .login-icon,
.login-field.valid .login-icon {
    color: #5372F0;
}

.login-field.shake .login-input:focus ~ .login-icon,
.login-field.error .login-input:focus ~ .login-icon {
    color: #bfbfbf;
}

.login-input::placeholder {
    color: #bfbfbf;
    font-size: 17px;
}

.login-error-txt {
    color: #dc3545;
    text-align: left;
    margin-top: 5px;
}

.login-field .login-error-icon,
.login-field .login-error-txt {
    display: none;
}

.login-field.shake .login-error-icon,
.login-field.shake .login-error-txt,
.login-field.error .login-error-icon,
.login-field.error .login-error-txt {
    display: block;
}

.login-pass-txt {
    text-align: left;
    margin-top: -10px;
}

.login-link {
    color: #5372F0;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

.login-submit {
  height: 45px;
  margin-top: 30px;
  color: #fff; 
  padding: 0 20px; 
  border: none; 
  border-radius: 25px; 
  background: linear-gradient(45deg, #5372F0, #2c52ed); 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
  cursor: pointer; 
  font-size: 18px;
  font-weight: bold; 
  transition: all 0.3s ease; 
  outline: none;
}

.login-submit:hover {
  background: linear-gradient(45deg, #2c52ed, #5372F0);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); 
  transform: translateY(-2px); 
}

.login-submit:active {
  transform: translateY(1px);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.login-submit:focus {
  outline: none; 
  box-shadow: 0 0 0 3px rgba(83, 114, 240, 0.5);
}

.login-sign-txt {
    margin-top: 20px;
}