@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400;1,500;1,600;1,700;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Reddit+Mono:wght@200..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap");

:root {
  --ff-1: "Roboto";
  --ff-2: "Roboto Flex";
  --ff-3: "Ubuntu";
  --ff-4: "Inter";
  --ff-5: "Reddit Mono";
  --ff-6: "Rubik";
  --ff-7: "Plus Jakarta Sans";

  --custom-color-black: hsl(252, 30%, 10%);
  --custom-color-dark: hsl(252, 30%, 20%);
  --custom-color-light: hsl(252, 30%, 95%);
  --custom-color-gray: hsl(252, 15%, 65%);

  --page-padding: 0.5rem;
  --page-radius: var(--bs-border-radius-xl);
  --common-sidebar-margin: 1rem;
  --section-margin: 20px;
  --main-text-size: 2rem;
  --main-text-size-small: 1.5rem;
  --main-text-size-tiny: 1.2rem;
  --main-text-size-tiny-small: 1rem;
}

:root[data-theme="light"] {
  --text-50: #f0f0f4;
  --text-100: #e1e1ea;
  --text-200: #c3c3d5;
  --text-300: #a5a5c0;
  --text-400: #8888aa;
  --text-500: #6a6a95;
  --text-600: #555577;
  --text-700: #3f3f5a;
  --text-800: #2a2a3c;
  --text-900: #15151e;
  --text-950: #0b0b0f;

  --background-50: #f1e7fb;
  --background-100: #e3d0f8;
  --background-200: #d6b8f4;
  --background-300: #c8a0f1;
  --background-400: #ba89ed;
  --background-500: #ac71e9;
  --background-600: #3b096e;
  --background-700: #2f0758;
  --background-800: #230542;
  --background-900: #17042c;
  --background-950: #0c0216;

  --primary-50: #efeafa;
  --primary-100: #dfd5f6;
  --primary-200: #cfc0f1;
  --primary-300: #bfabec;
  --primary-400: #b096e8;
  --primary-500: #a080e3;
  --primary-600: #301668;
  --primary-700: #261253;
  --primary-800: #1d0d3e;
  --primary-900: #13092a;
  --primary-950: #0a0415;

  --secondary-50: #e7f5f6;
  --secondary-100: #cfeaed;
  --secondary-200: #b7e0e4;
  --secondary-300: #9fd5db;
  --secondary-400: #87cbd2;
  --secondary-500: #6fc0c9;
  --secondary-600: #084b53;
  --secondary-700: #063c42;
  --secondary-800: #042d31;
  --secondary-900: #031e21;
  --secondary-950: #010f10;

  --accent-50: #fde9f2;
  --accent-100: #fbd2e4;
  --accent-200: #fabcd7;
  --accent-300: #f8a5c9;
  --accent-400: #f68fbc;
  --accent-500: #f478ae;
  --accent-600: #770f3c;
  --accent-700: #5f0c30;
  --accent-800: #470924;
  --accent-900: #2f0618;
  --accent-950: #18030c;
}

:root[data-theme="dark"] {
  --text-50: #0b0b0f;
  --text-100: #16161d;
  --text-200: #2b2b3b;
  --text-300: #414158;
  --text-400: #575775;
  --text-500: #6c6c93;
  --text-600: #8a8aa8;
  --text-700: #a7a7be;
  --text-800: #c4c4d4;
  --text-900: #e2e2e9;
  --text-950: #f0f0f4;

  --background-50: #0c0216;
  --background-100: #17042c;
  --background-200: #230542;
  --background-300: #2f0758;
  --background-400: #3b096e;
  --background-500: #460b83;
  --background-600: #ba89ed;
  --background-700: #c8a0f1;
  --background-800: #d6b8f4;
  --background-900: #e3d0f8;
  --background-950: #f1e7fb;

  --primary-50: #090910;
  --primary-100: #0a0415;
  --primary-200: #1d0d3e;
  --primary-300: #261253;
  --primary-400: #301668;
  --primary-500: #3a1a7d;
  --primary-600: #b096e8;
  --primary-700: #bfabec;
  --primary-800: #cfc0f1;
  --primary-900: #dfd5f6;
  --primary-950: #efeafa;

  --secondary-50: #010f10;
  --secondary-100: #031e21;
  --secondary-200: #042d31;
  --secondary-300: #063c42;
  --secondary-400: #084b53;
  --secondary-500: #095a63;
  --secondary-600: #87cbd2;
  --secondary-700: #9fd5db;
  --secondary-800: #b7e0e4;
  --secondary-900: #cfeaed;
  --secondary-950: #e6f9f6;

  --accent-50: #18030c;
  --accent-100: #2f0618;
  --accent-200: #470924;
  --accent-300: #5f0c30;
  --accent-400: #770f3c;
  --accent-500: #8e1248;
  --accent-600: #f68fbc;
  --accent-700: #f8a5c9;
  --accent-800: #fabcd7;
  --accent-900: #fbd2e4;
  --accent-950: #fde9f2;
}

body {
  font-family: var(--ff-7), sans-serif !important;
  color: var(--text-700) !important;
  height: 100% !important;
  line-height: 1.5rem !important;
}

header {
  display: none !important;
}

/* main .main-content {
  max-height: calc(100vh - 27vh);
  overflow-y: auto;
} */

main .card,
main button,
main select,
main textarea,
main a.btn {
  border-radius: var(--bs-border-radius-xl) !important;
}

.profil-picture {
  width: 2.5rem !important;
  aspect-ratio: 1/1 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

.rouded-profil-picture {
  width: 2.8rem !important;
}

form#js-new-semester-course-form .profil-picture,
form#js-teacher-form .profil-picture,
form#js-student-form .profil-picture,
form#js-admin-members-form .profil-picture,
form#js-profil-form .profil-picture {
  width: 100% !important;
}

.profil-picture img {
  display: block;
  max-width: 100%;
}

.details-student__header .profil-picture__lg {
  width: 20vw !important;
}

#bg-spinner {
  top: 0;
  z-index: 100;
  height: 100%;
  width: 100%;
  position: fixed;
  display: none;
  background-color: rgba(1, 1, 1, 0.7);
}

#position-spinner {
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;
}

#spinner {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  border: 6px solid #d3d3d3;
  border-top: 6px solid var(--primary-600);
  animation: loading 1s infinite linear;
}

@keyframes loading {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 992px) {
  header {
    display: flex !important;
  }
}

form input {
  margin-bottom: 0.3rem;
}

.btn-toggle {
  background-color: transparent;
  transition: 0.3s background-color;
}

.btn-toggle:not(.no-collapse):after {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform 0.35s ease;
  transform-origin: 0.5em 50%;
}

.btn-toggle.no-collapse:hover {
  background-color: var(--color-second-600);
}

/* .btn-toggle[aria-expanded="true"] {
    color: white !important;
} */

.btn-toggle[aria-expanded="true"]::after {
  transform: rotate(90deg);
}

.btn-toggle-nav a {
  padding: 0.1875rem 0.5rem;
  margin-top: 0.125rem;
  margin-left: 1.25rem;
}

.custom-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 0.3rem;
  font-size: 0.7rem !important;
}

a .material-symbols-outlined,
button .material-symbols-outlined {
  font-size: 1rem;
}

#fixed-bottom-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 25px;
  padding: 10px 15px;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.5s;
  background-color: var(--background-900);
  color: var(--text-100);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.btn-choice-view.active {
  background-color: var(--primary-500) !important;
}

.btn-choice-view a {
  color: var(--bs-secondary-color);
  transition: color 0.5s;
  text-decoration: none;
}

.btn-choice-view.active a {
  color: var(--bs-white) !important;
}

.js-view-display {
  display: none !important;
}

.js-view-display.active {
  display: flex !important;
}

.custom-responsive-card {
  width: 900px !important;
}

.just-for-mobile {
  display: none;
}

.js-field-choice-container {
  display: none;
}

.js-field-choice-container.visible {
  display: flex !important;
}

ul.pagination .page-item a {
  color: var(--accent-500);
  font-weight: 600;
}

.pagination .page-item.active a {
  background-color: var(--accent-500) !important;
  color: white !important;
  border-color: var(--accent-500);
}

.custom-list-item {
  border-bottom: 2px solid var(--custom-color-gray);
  padding-bottom: 0.1rem;
  padding: 0.5rem 0;
}

.custom-list-item:last-child {
  border-bottom: none;
}

.custom-bg-card {
  background-color: var(--background-100) !important;
  color: var(--text-700) !important;
  transition: background-color 0.5s, box-shadow 0.5s;
}

.custom-bg-card.custom-bg-card-accent {
  background-color: var(--accent-300) !important;
}

.custom-bg-card.custom-bg-card-accent:hover {
  background-color: var(--accent-400) !important;
}

.custom-bg-card.custom-bg-card-deactivate {
  background-color: var(--secondary-300) !important;
}

.custom-bg-card.custom-bg-card-deactivate:hover {
  background-color: var(--secondary-400) !important;
}

.custom-bg-card:hover {
  background-color: var(--background-200) !important;
  color: var(--text-800) !important;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.custom-bg-card__title {
  font-weight: 700;
}

.custom-bg-card__content {
  margin-top: 1rem;
  font-weight: 400;
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 0.5rem;
}

.custom-bg-card__item a {
  display: flex;
  flex-direction: column;
  align-items: start;
  text-decoration: none;
  color: inherit;
  transition: color .3s ease;
}

.custom-bg-card__item a:hover {
  color: var(--primary-500);
}


.custom-bg-card__item {
  font-weight: 600;
}

.custom-bg-card__item__value {
  font-size: 0.9rem;
}

.custom-bg-card__sub-text {
  color: var(--text-400);
}

.custom-bg-card .material-symbols-outlined {
  font-size: 0.9rem;
}

.custom-card__1 {
  position: relative !important;
  background-color: transparent !important;
}

.custom-card__1 .card-body {
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.custom-card__1 .card-absolute-cover,
.custom-section-card .custom-card-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: var(--bs-border-radius-xl);
  z-index: 1;
  background-image: linear-gradient(
      to right,
      rgba(172, 113, 233, 0.3),
      rgba(172, 113, 233, 0.7)
    ),
    url("../img/bg-2.jpg");
}

.custom-card__1 .card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 900;
  color: var(--text-100);
  font-size: 0.9rem;
}

.custom-card__1 .main-info {
  display: flex;
  flex-direction: column;
  color: var(--text-100);
  margin-bottom: 0.9rem;
}

.custom-card__1 .main-info .main-info__title {
  font-weight: 900;
  font-size: 1.5rem;
}

.custom-card__1 .main-info .main-info__desc {
  font-weight: 700;
  font-size: 1.2rem;
}

.custom-card__1 .card-row__container,
.custom-card__1-h100 .card-row__container {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-100);
}

.custom-card__1 .card-row__container .card-row {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.custom-card__1 .card-row__container .card-row .card-row__title {
  font-weight: 700;
  font-size: 1.1rem;
}

.custom-section-card .custom-card__1,
.custom-card__1-h100 {
  height: 100% !important;
}

.custom-section__title {
  font-weight: 900;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.table {
  color: var(--text-700) !important;
  background-color: var(--primary-100) !important;
}

.modal-content {
  background-color: var(--background-100) !important;
}

.table > tbody > tr > * {
  font-weight: 500;
}

.table-hover > tbody > tr:hover > * {
  --bs-table-accent-bg: var(--primary-200) !important;
  color: var(--text-700) !important;
}

.admin-container {
  display: grid;
  grid-template-columns: 250px 1fr; /* Sidebar de 200px, puis le reste pour le contenu principal */
  grid-template-areas: "sidebar main";
  gap: var(--section-margin);
  height: calc(100vh - var(--page-padding)); /* Hauteur égale à la fenêtre */
  overflow: hidden; /* Empêche le défilement global */
  padding: var(--page-padding);
}

.main-content {
  grid-area: main;
}

.top-bar-container {
  background-color: var(--background-50);
  border-radius: var(--page-radius);
  padding: var(--common-sidebar-margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.top-bar-container__end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  width: 50%;
}

.top-bar-container__end__text {
  display: flex;
  flex-direction: column;
  justify-content: start;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1rem;
}

.top-bar-container__end__text-2 {
  color: var(--text-400);
}

.main-container {
  padding: var(--common-sidebar-margin);
  border-radius: var(--page-radius);
  background-color: var(--background-50);
  margin-top: var(--section-margin);
  overflow-y: auto;
}

.scroll-section-card {
  overflow-x: scroll;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  max-width: 250px;
  gap: 0.5rem;
}

.scroll-section-card .card {
  flex: 0 0 auto;
  background-color: var(--background-100);
  /* width: 200px; */
}

.scroll-section-card .card-body {
  display: flex;
  flex-direction: column;
  font-size: 0.7rem;
  word-wrap: break-word;
  padding: 0.5rem;
  color: var(--text-700);
}

.main-container__top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.custom-bg-card.custom-content-center {
  border-radius: var(--bs-border-radius-xl) !important;
  padding: var(--page-padding) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.custom-bg-card.custom-content-start {
  border-radius: var(--bs-border-radius-xl) !important;
  padding: var(--section-margin) !important;
  display: flex;
  flex-direction: column;
  align-items: start;
}

.custom-bg-card .custom-bg-card__header {
  margin-bottom: var(--section-margin);
  font-size: var(--main-text-size-tiny);
  font-weight: 700;
}

.custom-bg-card__body {
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-600);
}

.custom-bg-card__body .custom-bg-card__number {
  font-size: var(--main-text-size-small);
}

.custom-bg-card__body .custom-bg-card__title {
  font-size: 1rem;
  margin-top: 0.5rem;
}

.custom-bg-card .material-symbols-outlined {
  font-size: var(--main-text-size);
}

.page-main-title-container {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-direction: column;
  gap: var(--page-padding);
}

.page-main-title {
  font-weight: 700;
  font-size: var(--main-text-size-small);
  color: var(--text-700);
}

.page-main-subtitle {
  font-weight: 500;
  font-size: var(--main-text-size-tiny-small);
  color: var(--text-400);
}

section {
  margin-bottom: var(--section-margin);
}

section:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 992px) {
  body {
    padding-bottom: 7.5rem;
  }

  .main-container__top-bar {
    align-items: start;
    gap: 1rem;
    flex-direction: column-reverse;
  }

  .custom-responsive-card {
    width: 100% !important;
  }

  .custom-hidden-btn .custom-hidden-btn__title {
    display: none;
  }

  .just-for-pc {
    display: none;
  }

  .just-for-mobile {
    display: block;
  }

  #fixed-bottom-button {
    bottom: 130px;
  }

  .admin-container {
    grid-template-columns: none; /* Sidebar de 200px, puis le reste pour le contenu principal */
    grid-template-areas: "main";
    padding: 0;
  }

  .main-content {
    height: 100vh !important;
    padding: var(--common-sidebar-margin) var(--common-sidebar-margin) 0 var(--common-sidebar-margin);
  }

  .main-container #page-content {
    max-height: calc(100vh - 27vh);
    overflow-y: auto;
    padding-bottom: 2.5rem;
  }

  .scroll-section-card::-webkit-scrollbar {
    display: none;
  }

  .top-bar-container__end__text {
    display: none;
  }
}
