﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Poppins", Arial, sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  will-change: opacity, transform, filter;
  pointer-events: none;
}

body::before {
  background-image: url("../images/light-watercolor-texture-background-wallpaper.jpg");
  z-index: -2;
}

body::after {
  background-image: url("../images/freepik__assistant__65961.png");
  opacity: 0;
  transform: scale(1.02);
  filter: blur(0.2px);
  transition:
    opacity 600ms ease,
    transform 600ms ease,
    filter 600ms ease;
  z-index: -1;
}

body.dark::after {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    transition: none;
  }
}

.theme-toggle {
  cursor: pointer;
  transition: transform 0.6s ease, color 0.6s ease, text-shadow 0.6s ease, opacity 0.3s ease;
}

.theme-toggle.spin {
  transform: rotate(360deg) scale(1.1);
}

.image-container {
    position: fixed;
    top: 100px;
    left: 20px;
    bottom: 20px;
    width: calc(45% - 40px);
    height: auto;
    max-height: calc(100vh - 120px);
    overflow: hidden;
}

.image-container .cover-image {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    image-rendering: high-quality;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.cover-image.active {
  opacity: 1;
  z-index: 1;
}

.image-container .gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.image-container .gradient-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgb(13, 58, 143) 0%,
    rgb(2, 32, 121) 50%,
    rgb(0, 21, 86) 100%
  );
  opacity: 0.7;
  z-index: 0;
}

.knowledge-icons,
.knowledge-title,.knowledge-separator, .knowledge-subtitle{
  position: relative;
  z-index: 2; 
}

.knowledge-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; 
  z-index: 2;
}

.knowledge-icons .svg-container{
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(250, 255, 4, 0.2);
  padding: 15px;
  margin-right: 30px;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  animation: floatUpDown 3s ease-in-out infinite;
}

.knowledge-icons svg{
  width: 40px;
  height: 40px;
}

.knowledge-title {
  z-index: 2;
}

.knowledge-title h1 {
  color: white;
  font-weight: bold;
  font-size: 32px;
  text-align: center;
  margin: 0;
}

.knowledge-separator{
  z-index: 2;
  background-color: rgb(250, 255, 4);
  height: 4px;
  width: 120px;
  border-radius: 20px;
}

.knowledge-subtitle{
   z-index: 2;
   width: 100%;
   text-align: center;
}

.knowledge-subtitle h5{
  color: white;
  font-size: 15px;
  margin: auto;
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-13px);
  }
}


.fade-in {
  opacity: 1;
  transition: opacity 0.5s ease-in;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}



.image-container .logo {
  position: absolute;
  top: 3%;
  left: 7%;
  width: 60px;
  height: auto;
  z-index: 2;
}


.image-container h4 {
  position: absolute;
  bottom: 60px;
  left: 10%;
  font-weight: 400;
  color: white;
  font-size: 18px;
  margin: 0;
  z-index: 2;
}

.bar-progression {
  position: absolute;
  bottom: 30px;
  left: 10%;
  height: 8px;
  width: 70%;
  border-radius: 20px;
  border: 1px solid white;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(270deg, #faff04, #ffcc00, #faff04);
  background-size: 400% 400%;
  animation: gradientShift 5s ease infinite;
  transition: width 0.6s ease;
}


@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 85px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(15px);
  border-bottom: 1.5px solid rgba(2, 32, 121, 0.7);
  box-shadow: 0 4px 25px rgba(0,0,0,0.1);
  z-index: 150;
  transition: all 0.3s ease;
}

.header:hover {
  background: rgba(255, 255, 255, 0.25);
  border-bottom-color: #022079;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  width: 40px;
  height: auto;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}

.header-title {
  font-family: "Poppins", sans-serif;
  color: #022079;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.5px;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-icons i:not(.multi-select i):not(.mobile-menu-icon):not(.language-check):not(.dropdown-menu-icons) {
  font-size: 22px;
  color: #022079;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: rgba(255,255,255,0.4);
  padding: 10px;
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.header-icons i:not(.multi-select i):not(.mobile-menu-icon):not(.language-check):not(.dropdown-menu-icons):hover {
  background-color: #022079;
  color: white;
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(2, 32, 121, 0.4);
}


.mobile-menu-icon {
    display: none !important;
    font-size: 20px;
    color: #022079;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 7px;
    border-radius: 50%;
    backdrop-filter: blur(7px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: none;
    opacity: 1;
    justify-content: flex-end;
}

.mobile-menu-content {
    width: 100%;
    max-width: 500px;
    height: 100%;
    background: white;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.mobile-menu-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #022079 0%, #0048b3 100%);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.mobile-menu-header img {
  width:40px;
  height: 40px;
}

.mobile-menu-header .mobile-close-icon {
    font-size: 24px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.mobile-menu-body {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-menu-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu-section h4 {
    color: #022079;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-section h4::before {
    content: "";
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, #faff04, #ffcc00);
    border-radius: 2px;
}

.mobile-multi-select {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    border: 2px solid #e0e7ef;
    border-radius: 12px;
    background: #f8fafc;
    padding: 12px 40px 12px 38px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.mobile-multi-select:hover {
    background: white;
    border-color: #022079;
    box-shadow: 0 2px 10px rgba(2, 32, 121, 0.1);
}

.mobile-multi-select.active {
    background: white;
    border-color: #022079;
    box-shadow: 0 4px 15px rgba(2, 32, 121, 0.15);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #6b7280;
    pointer-events: none;
}

.mobile-multi-select .selected-items {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 22px;
    margin-right: 25px;
    margin-left: 10px;
    color: #374151;
    font-size: 14px;
}

.mobile-multi-select .selected-items.empty::before {
    content: attr(data-placeholder);
    color: #9ca3af;
    font-weight: 400;
}

.mobile-multi-select .selected-items span {
    background: linear-gradient(135deg, #022079, #0048b3);
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(2, 32, 121, 0.2);
}

.mobile-multi-select .selected-items span i {
    color: white;
    font-size: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.mobile-multi-select .selected-items span i:hover {
    transform: scale(1.2);
}

.dropdown-arrow {
    color: #6b7280;
    transition: transform 0.3s ease;
}

.mobile-multi-select.active .dropdown-arrow {
    transform: rotate(180deg);
    color: #022079;
}

.mobile-multi-select .dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: white;
    border: 2px solid #e0e7ef;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    z-index: 200;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.mobile-multi-select.active .dropdown {
    display: block;
    animation: dropdownSlide 0.3s ease forwards;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-multi-select .dropdown div {
    padding: 12px 16px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-multi-select .dropdown div:hover {
    background: #f0f4f8;
    padding-left: 24px;
    color: #022079;
}

.mobile-multi-select .dropdown div .check-icon {
    color: #022079;
    font-size: 14px;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    padding: 16px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.mobile-menu-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #022079, #0048b3);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-menu-item:hover {
    background: white;
    border-color: #e0e7ef;
    box-shadow: 0 4px 12px rgba(2, 32, 121, 0.1);
    transform: translateX(8px);
}

.mobile-menu-item:hover::before {
    transform: scaleY(1);
}

.mobile-menu-item.active::before {
    transform: scaleY(1);
}

.mobile-menu-item.active {
    background: white;
    border-color: #e0e7ef;
    box-shadow: 0 4px 12px rgba(2, 32, 121, 0.1);
    transform: translateX(8px);
}

.mobile-menu-item.active i {
    background: linear-gradient(135deg, #faff04, #ffcc00);
    transform: scale(1.1);
}

.mobile-menu-item.active span {
    color: #022079;
    font-weight: 600;
}

.mobile-menu-item i:not(.settings-arrow):not(.mobile-user-arrow) {
    font-size: 20px;
    color: #022079;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(250, 255, 4, 0.2), rgba(255, 204, 0, 0.2));
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-item .settings-arrow {
  background: transparent !important;
  box-shadow: none !important;
}


.mobile-menu-item span {
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-menu-item:hover span {
    color: #022079;
    font-weight: 600;
}

.mobile-menu-item.settings-mobile-trigger:hover i:not(.settings-arrow):not(.mobile-user-arrow) {
  background: linear-gradient(135deg, #faff04, #ffcc00);
  transform: scale(1.1);
}

.settings-mobile-trigger:hover .settings-arrow {
  transform: rotate(180deg);
  color: #022079;
  transition: all 0.3s ease;
}

.mobile-menu-item.settings-mobile-trigger.open {
  background: white;
  border-color: #e0e7ef;
  box-shadow: 0 4px 12px rgba(2, 32, 121, 0.1);
  transform: translateX(8px);
}

.mobile-menu-item.settings-mobile-trigger.open i:not(.settings-arrow):not(.mobile-user-arrow) {
  background: linear-gradient(135deg, #faff04, #ffcc00);
  transform: scale(1.1);
}

.mobile-menu-item.settings-mobile-trigger:hover::before,
.mobile-menu-item.settings-mobile-trigger.open::before {
    transform: scaleY(1);
}

.mobile-menu-item.settings-mobile-trigger:hover {
    background: white;
    border-color: #e0e7ef;
    box-shadow: 0 4px 12px rgba(2, 32, 121, 0.1);
    transform: translateX(8px);
}

.mobile-menu-item.settings-mobile-trigger.open {
    background: white;
    border-color: #e0e7ef;
    box-shadow: 0 4px 12px rgba(2, 32, 121, 0.1);
    transform: translateX(8px);
}


.mobile-menu-footer {
    padding: 10px;
    background: #f8fafc;
    border-top: 1px solid #e0e7ef;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mobile-menu-footer p {
    color: #6b7280;
    font-size: 12px;
    margin: 0;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(2, 32, 121, 0.1), rgba(0, 72, 179, 0.1));
    color: #022079;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-icons a:hover {
    background: linear-gradient(135deg, #022079, #0048b3);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(2, 32, 121, 0.3);
}

.social-icons a.x-twitter:hover {
    background: linear-gradient(135deg, #000000, #1a1a1a);
}

.social-icons a.linkedin:hover {
    background: linear-gradient(135deg, #0077B5, #005885);
}


.mobile-menu-content::-webkit-scrollbar,
.mobile-multi-select .dropdown::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu-content::-webkit-scrollbar-track,
.mobile-multi-select .dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.mobile-menu-content::-webkit-scrollbar-thumb,
.mobile-multi-select .dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.mobile-menu-content::-webkit-scrollbar-thumb:hover,
.mobile-multi-select .dropdown::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* this part is for the other component not the menu when using dark mode */

body.dark-mode {
    color: #e0e0e0;
}

body.dark-mode .header {
    background: rgba(26, 26, 46, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1.5px solid rgba(250, 255, 4, 0.2);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}


body.dark-mode .header-title {
    color: white;
    text-shadow: 0 0 10px rgba(250, 255, 4, 0.3);
}

body.dark-mode .header-logo[src*="acief_logo.png"] {
    content: url("../images/acief_logo_white.png");
}

body.dark-mode .header-icons i:not(.multi-select i):not(.mobile-menu-icon):not(.language-check):not(.dropdown-menu-icons) {
    color: #faff04;
    background-color: rgba(250, 255, 4, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(250, 255, 4, 0.2);
}

body.dark-mode .header-icons i:not(.multi-select i):not(.mobile-menu-icon):not(.language-check):not(.dropdown-menu-icons):hover {
    background-color: #faff04;
    color: #022079;
    box-shadow: 0 0 12px rgba(250, 255, 4, 0.4);
    border-color: #faff04;
}

body.dark-mode .multi-select {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(250, 255, 4, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

body.dark-mode .multi-select:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(250, 255, 4, 0.2);
    border-color: #faff04;
}

body.dark-mode .multi-select.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: #faff04;
    box-shadow: 0 4px 14px rgba(250, 255, 4, 0.3);
}

body.dark-mode .selected-items {
    color: #e0e0e0;
}

body.dark-mode .selected-items.empty::before {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .selected-items span {
    background: linear-gradient(135deg, #faff04, #ffcc00);
    color: #022079;
    border: 1px solid rgba(250, 255, 4, 0.3);
}

body.dark-mode .selected-items span i {
    color: #022079;
}

body.dark-mode .dropdown-arrow {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .multi-select.active .dropdown-arrow {
    color: #faff04;
}

body.dark-mode .dropdown {
    background: rgba(22, 33, 62, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(250, 255, 4, 0.3);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

body.dark-mode .dropdown div {
    color: #e0e0e0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .dropdown div:hover {
    background: rgba(250, 255, 4, 0.15);
    color: #faff04;
}

body.dark-mode .dropdown div .check-icon {
    color: #faff04;
}

body.dark-mode .image-container .gradient-overlay::before {
    background: linear-gradient(
        135deg,
        rgb(26, 26, 46) 0%,
        rgb(22, 33, 62) 50%,
        rgb(15, 15, 30) 100%
    );
    opacity: 0.85;
}

body.dark-mode .knowledge-title h1 {
    color: #faff04;
    text-shadow: 0 0 20px rgba(250, 255, 4, 0.4);
}

body.dark-mode .knowledge-separator {
    background-color: #faff04;
    box-shadow: 0 0 10px rgba(250, 255, 4, 0.6);
}

body.dark-mode .knowledge-subtitle h5 {
    color: #e0e0e0;
}

body.dark-mode .image-container h4 {
    color: #e0e0e0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

body.dark-mode .bar-progression {
    background-color: rgba(26, 26, 46, 0.6);
    border-color: rgba(250, 255, 4, 0.3);
}


body.dark-mode .blog {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .blog:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .blog-type {
    background: linear-gradient(135deg, #faff04, #ffcc00);
    color: #022079;
    border: 1px solid rgba(250, 255, 4, 0.3);
    box-shadow: 0 4px 12px rgba(250, 255, 4, 0.3);
}

body.dark-mode .blog-type:hover {
    background: linear-gradient(135deg, #ffcc00, #faff04);
    box-shadow: 0 6px 18px rgba(250, 255, 4, 0.5);
    transform: translateY(-3px);
}

body.dark-mode .blog-type i,
body.dark-mode .blog-type h5 {
    color: #022079;
}

body.dark-mode .blog-description::before {
    background: linear-gradient(
        transparent 0%,
        rgba(15, 15, 30, 0.95) 100%
    );
}

body.dark-mode .blog-description h2.blog-title {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

body.dark-mode .blog-description h5.blog-subtitle {
    color: #faff04;
}


body.dark-mode .a-propos-separator {
    background-color: #faff04;
    box-shadow: 0 0 8px rgba(250, 255, 4, 0.5);
}

body.dark-mode .a-propos-title {
    color: #faff04;
}

body.dark-mode .blog-content {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .blog-content.collapsed::after {
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.025));
}

body.dark-mode .see-more-btn,
body.dark-mode .see-less-btn {
    background-color: #faff04;
    color: #022079;
    box-shadow: 0 4px 10px rgba(250, 255, 4, 0.3);
    border: 1px solid rgba(250, 255, 4, 0.3);
}

body.dark-mode .see-more-btn:hover,
body.dark-mode .see-less-btn:hover {
    background-color: #ffcc00;
    color: #022079;
    box-shadow: 0 6px 15px rgba(250, 255, 4, 0.5);
    transform: translateY(-2px);
}

body.dark-mode .no-results {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .no-results i {
    color: #faff04;
}

body.dark-mode .no-results h3 {
    color: #faff04;
}

body.dark-mode .no-results p {
    color: #e0e0e0;
}

body.dark-mode .no-results .reset-filter {
    background: linear-gradient(135deg, #faff04, #ffcc00);
    color: #022079;
    box-shadow: 0 4px 10px rgba(250, 255, 4, 0.3);
}

body.dark-mode .no-results .reset-filter:hover {
    background: linear-gradient(135deg, #ffcc00, #faff04);
    box-shadow: 0 6px 15px rgba(250, 255, 4, 0.5);
}

body.dark-mode .toast p {
    color: white;
}

body.dark-mode .input-container {
    border-color: rgba(250, 255, 4, 0.3);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

body.dark-mode .input-container:hover {
    border-color: #faff04;
    box-shadow: 0 4px 10px rgba(250, 255, 4, 0.1);
}

body.dark-mode .response {
    color: #e0e0e0;
}

body.dark-mode .cercle-response {
    border-color: rgba(250, 255, 4, 0.3);
}

body.dark-mode .question {
    color: #b4c7e7;
}

body.dark-mode .confirmation {
    background-color: #faff04;
    color: #022079;
    border: 1px solid rgba(250, 255, 4, 0.3);
}

body.dark-mode .confirmation:hover {
    background-color: #ffcc00;
    color: #022079;
    box-shadow: 0 4px 12px rgba(250, 255, 4, 0.5);
}

body.dark-mode .separator {
    background-color: rgba(250, 255, 4, 0.2);
}

body.dark-mode .correction {
    color: #e0e0e0;
}

body.dark-mode .cercle-correction-True {
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(0, 208, 132, 0.5);
}

body.dark-mode .cercle-correction-False {
    background-color: #ff3447;
    box-shadow: 0 0 8px rgba(255, 52, 71, 0.5);
}


/* this part is for the dark mode for the menu when using mobile */

body.dark-mode .mobile-menu-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
}

body.dark-mode .mobile-menu-header {
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
    border-bottom: 1px solid rgba(250, 255, 4, 0.2);
}

body.dark-mode .mobile-menu-section h4 {
    color: #faff04;
}

body.dark-mode .mobile-menu-section h4::before {
    background: linear-gradient(135deg, #faff04, #ffcc00);
    box-shadow: 0 0 10px rgba(250, 255, 4, 0.5);
}

body.dark-mode .mobile-multi-select {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(250, 255, 4, 0.3);
}

body.dark-mode .mobile-multi-select:hover,
body.dark-mode .mobile-multi-select.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: #faff04;
    box-shadow: 0 4px 15px rgba(250, 255, 4, 0.2);
}

body.dark-mode .mobile-multi-select .selected-items {
    color: #e0e0e0;
}

body.dark-mode .mobile-multi-select .selected-items.empty::before {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .mobile-multi-select .selected-items span {
    background: linear-gradient(135deg, #faff04, #ffcc00);
    color: #022079;
}

body.dark-mode .search-icon {
    color: white;
}

body.dark-mode .dropdown-arrow {
    color: white;
}

body.dark-mode .mobile-multi-select.active .dropdown-arrow {
    color: #faff04;
}

body.dark-mode .mobile-multi-select .dropdown {
    background: #16213e;
    border-color: rgba(250, 255, 4, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

body.dark-mode .mobile-multi-select .dropdown div {
    color: #e0e0e0;
}

body.dark-mode .mobile-multi-select .dropdown div:hover {
    background: rgba(250, 255, 4, 0.15);
    color: #faff04;
}

body.dark-mode .mobile-multi-select .dropdown div .check-icon {
    color: #faff04;
}

body.dark-mode .mobile-menu-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: transparent;
}

body.dark-mode .mobile-menu-item:hover,
body.dark-mode .mobile-menu-item.active {
    background: rgba(250, 255, 4, 0.1);
    border-color: rgba(250, 255, 4, 0.3);
    box-shadow: 0 4px 12px rgba(250, 255, 4, 0.2);
}

body.dark-mode .mobile-menu-item::before {
    background: linear-gradient(135deg, #faff04, #ffcc00);
}

body.dark-mode .mobile-menu-item i:not(.settings-arrow):not(.mobile-user-arrow) {
    color: #faff04;
    background: rgba(250, 255, 4, 0.15);
}

body.dark-mode .selected-items.empty::before {
  color: white;
}

body.dark-mode .mobile-menu-item:hover i:not(.settings-arrow):not(.mobile-user-arrow),
body.dark-mode .mobile-menu-item.active i:not(.settings-arrow):not(.mobile-user-arrow) {
    background: linear-gradient(135deg, #faff04, #ffcc00);
    color: #022079;
    box-shadow: 0 0 15px rgba(250, 255, 4, 0.5);
}

body.dark-mode .mobile-menu-item span {
    color: #e0e0e0;
}

body.dark-mode .mobile-menu-item:hover span,
body.dark-mode .mobile-menu-item.active span {
    color: #faff04;
}

body.dark-mode .mobile-menu-item.settings-mobile-trigger {
    background: rgba(255, 255, 255, 0.05);
    border-color: transparent;
}

body.dark-mode .mobile-menu-item.settings-mobile-trigger:hover,
body.dark-mode .mobile-menu-item.settings-mobile-trigger.open {
    background: rgba(250, 255, 4, 0.1);
    border-color: rgba(250, 255, 4, 0.3);
    box-shadow: 0 4px 12px rgba(250, 255, 4, 0.2);
    transform: translateX(8px);
}

body.dark-mode .mobile-menu-item.settings-mobile-trigger::before {
    background: linear-gradient(135deg, #faff04, #ffcc00);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

body.dark-mode .mobile-menu-item.settings-mobile-trigger:hover::before,
body.dark-mode .mobile-menu-item.settings-mobile-trigger.open::before {
    transform: scaleY(1);
}

body.dark-mode .mobile-menu-item.settings-mobile-trigger i:not(.settings-arrow):not(.mobile-user-arrow) {
    color: #faff04;
    background: rgba(250, 255, 4, 0.15);
    transition: all 0.3s ease;
}

body.dark-mode .mobile-menu-item.settings-mobile-trigger:hover i:not(.settings-arrow),
body.dark-mode .mobile-menu-item.settings-mobile-trigger.open i:not(.settings-arrow) {
    background: linear-gradient(135deg, #faff04, #ffcc00);
    color: #022079;
    box-shadow: 0 0 15px rgba(250, 255, 4, 0.5);
}

body.dark-mode .mobile-menu-item.settings-mobile-trigger .settings-arrow {
    color: #e0e0e0;
    transition: all 0.3s ease;
}

body.dark-mode .mobile-menu-item.settings-mobile-trigger.open .settings-arrow {
    transform: rotate(180deg);
    color: #faff04;
}

body.dark-mode .mobile-menu-item.settings-mobile-trigger span {
    color: #e0e0e0;
}

body.dark-mode .mobile-menu-item.settings-mobile-trigger:hover span,
body.dark-mode .mobile-menu-item.settings-mobile-trigger.open span {
    color: #faff04;
    font-weight: 600;
}


.mobile-menu-item .fa-moon,
.mobile-menu-item .fa-sun {
    transition: all 0.5s ease;
}

body.dark-mode .mobile-menu-item .fa-sun {
    animation: sunRise 0.6s ease;
}

body:not(.dark-mode) .mobile-menu-item .fa-moon {
    animation: moonRotate 0.6s ease;
}

@keyframes moonRotate {
    from { 
        transform: rotate(0deg) scale(1); 
        opacity: 0.5;
    }
    to { 
        transform: rotate(360deg) scale(1); 
        opacity: 1;
    }
}

@keyframes sunRise {
    0% { 
        transform: rotate(0deg) scale(0.5); 
        opacity: 0;
    }
    50% { 
        transform: rotate(180deg) scale(1.2); 
    }
    100% { 
        transform: rotate(360deg) scale(1); 
        opacity: 1;
    }
}

body.dark-mode .mobile-menu-footer {
    background: rgba(0, 0, 0, 0.3);
    border-top-color: rgba(250, 255, 4, 0.2);
}

body.dark-mode .mobile-menu-footer p {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .social-icons a {
    background: rgba(250, 255, 4, 0.1);
    color: #faff04;
    border-color: rgba(250, 255, 4, 0.2);
}

body.dark-mode .social-icons a:hover {
    background: linear-gradient(135deg, #faff04, #ffcc00);
    color: #022079;
    border-color: #faff04;
    box-shadow: 0 5px 20px rgba(250, 255, 4, 0.4);
}

body.dark-mode .mobile-menu-content::-webkit-scrollbar-track,
body.dark-mode .mobile-multi-select .dropdown::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

body.dark-mode .mobile-menu-content::-webkit-scrollbar-thumb,
body.dark-mode .mobile-multi-select .dropdown::-webkit-scrollbar-thumb {
    background: rgba(250, 255, 4, 0.3);
}

body.dark-mode .mobile-menu-content::-webkit-scrollbar-thumb:hover,
body.dark-mode .mobile-multi-select .dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(250, 255, 4, 0.5);
}

body.dark-mode .mobile-menu-icon {
    color: white;
}

/* this part is for the container of the blogs and blogs themseleves and their content (date,like,image,titles,inputs ...) */

.quiz-container {
    position: relative;
    margin-left: 45%;
    margin-top: 100px;
    width: 55%;
    min-height: calc(100vh - 100px);
    padding: 0 40px 0 40px;
    box-sizing: border-box;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
}

.blogs-container {
  display: grid;
  gap: 30px;
/*  padding-bottom: 20px;*/
}

.blog {
  position: relative;
  display: flex;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  /* margin-bottom: 30px; */
  opacity: 1;
  transform: scale(1);
  transition: all 0.4s ease;
}

.blog.hiding {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.blog.hidden {
  display: none;
}

.blog.showing {
  opacity: 0;
  transform: scale(0.95);
  display: flex;
  animation: fadeInBlog 0.4s forwards ease;
}

@keyframes fadeInBlog {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.blog-type {
  position: absolute;
  top: 20px;
  right: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #faff04, #fff24b);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  padding: 8px 14px;
  border-radius: 25px;
  transition: all 0.3s ease-in-out;
  cursor: default;
  z-index: 3;
}

.blog-type:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #fff761, #faff04);
}

.blog-type i {
  color: #022079;
  font-size: 13px;
  transition: transform 0.3s ease;
}

.blog-type:hover i {
  transform: rotate(-20deg);
}

.blog-type h5 {
  color: #022079;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.3px;
  margin: 0;
  text-transform: uppercase;
}

.blog-type::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-type:hover::after {
  opacity: 1;
}

.blog-author {
    font-size: 12px;
    font-weight: 500;
    color: white;
    margin: 8px 0 0 0; 
    position: relative;
    z-index: 2;
    opacity: 0.9;
    font-style: italic;
}

.blog-author i {
    font-size: 11px;
    margin-right: 5px;
    opacity: 0.8;
}

.blog-description {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin-top: 35px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: white;
}

.blog-info-container {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.blog-date i {
    color: white;
    font-size: 13px;
}

.blog-date:hover {
    background: rgba(2, 32, 121, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 32, 121, 0.4);
}

.blog-actions-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}


.blog-likes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    min-width: fit-content;
}

.blog-download {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    min-width: 30px;
}

.blog-download:hover {
    background: rgba(2, 32, 121, 0.4);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(2, 32, 121, 0.4);
}

.download-icon {
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.blog-download:active .download-icon {
    animation: downloadPulse 0.6s ease;
}

@keyframes downloadPulse {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(0.9) translateY(2px);
    }

    50% {
        transform: scale(1.1) translateY(-2px);
    }

    75% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

.blog-likes:hover {
    background: rgba(255, 52, 71, 0.3);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 52, 71, 0.4);
}

.blog-likes.liked {
    background: rgba(255, 52, 71, 0.4);
}

.heart-icon {
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.blog-likes.liked .heart-icon {
    color: #ff3447;
    animation: heartBeat 0.6s ease;
}

.blog-likes.liked .heart-icon::before {
    content: "\f004";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.likes-count {
    font-size: 13px;
    font-weight: 600;
    min-width: 15px;
    text-align: center;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.blog-likes.animating::after {
    content: "❤️";
    position: absolute;
    animation: floatUp 0.8s ease-out forwards;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(1.5);
    }
}

.blog-description img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: high-quality;
  z-index: 0;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.blog-description::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    transparent 0%,
    rgb(0, 21, 86) 100% 70%
  );
  z-index: 1;
}

.blog-description h2,
.blog-description h5 {
  position: relative;
  z-index: 2;
  margin: 0;
}

.blog-description h2.blog-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.blog-description h5.blog-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: rgba(250,255,4);
}


.blog-description:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}


.a-propos-container{
  display: flex;
  align-items: center;
  margin-bottom: -32px;
}

.a-propos-separator{
  background-color: #fff24b;
  width:40px;
  height: 2px;
  margin-right: 5px;
}

.a-propos-title{
  color:rgb(2, 32, 121);
  font-weight: 500;
}

.blog-content {
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
  position: relative;
  white-space: normal;
  transition: max-height 0.4s ease;
}

.blog-content.collapsed {
  max-height: 45px; /* 15 * 1.5 * 2 */
}

.blog-content.collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,0.6),
    #ffffff
  );
}



.see-more-btn,
.see-less-btn {
  display: inline-block;
  background-color: #022079;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px 25px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-top: 15px;
  box-shadow: 0 4px 10px rgba(2, 32, 121, 0.2);
}

.see-more-btn:hover,
.see-less-btn:hover {
  background-color: #faff04;
  color: #022079;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(250, 255, 4, 0.4);
}

.see-less-btn {
  display: none;
  margin: 30px auto 0;
}

.hidden-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-15px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden-content.visible {
  max-height: 2000px;
  opacity: 1;
  transform: translateY(0);
}


.form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  max-width: 700px;
  position: relative;
  margin: auto;
}

.input-container {
  flex: 1 1 45%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid #c6c5cb;
  border-radius: 40px;
  height: 50px;
  padding: 0 15px;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.input-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.response{
    font-size: 13px;
    margin-left: 5px;
    color: black;
}

.cercle-response{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    border : 2px solid #c6c5cb;
    border-radius: 50%;
    margin-right: 0px;
}

.question {
    margin-top: 0;
    color: #3A5FD0;
}

.confirmation {
  margin-top: 10px;
  margin-left: auto;
  width: 120px;
  height: 35px;
  border: none;
  border-radius: 20px;
  background-color: #061848;
  color: white;
  font-size: 14px;
  font-weight: bolder;
  transition: 0.5s ease-in-out;
}

.confirmation:hover {
  background-color: #faff04;
  color: #022079;
}

.separator {
  width: 60%;
  height: 2px;
  background-color: #c6c5cb;
  border-radius: 20px;
  margin: 20px auto; 
}

.correction {
  display: flex;  
  align-items: flex-start;
  width: 100%;
  text-align: left; 
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 10px;
  font-weight: 500;
  color: black; 
  font-size: 15px;
}

.cercle-correction-True,
.cercle-correction-False {
  min-width: 15px;
  width: 15px;
  height: 15px;
  border: none;
  border-radius: 50%;
  margin-right: 8px;
  margin-top: 3px;
  flex-shrink: 0;
}

.cercle-correction-True {
  background-color: #10b981;
  box-shadow: 0 0 8px rgba(0, 208, 132, 0.5);
}

.cercle-correction-False {
  background-color: #ff3447;
  box-shadow: 0 0 8px rgba(255, 52, 71, 0.5);
}


/* this part is for the the container that show there is no blog correspondant to the category chosen by the user */

.no-results {
  position: absolute;    
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;      
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(2, 32, 121, 0.15);
  width: 70%;
  max-width: 500px;
  padding: 50px 30px;
  text-align: center;
  animation: fadeIn 0.6s ease forwards;
  z-index: 10;
}

.no-results i {
  font-size: 70px;
  color: #022079;
  margin-bottom: 15px;
  animation: floatSad 3s ease-in-out infinite;
}

.no-results h3 {
  color: #022079;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
}

.no-results p {
  color: #333;
  font-size: 15px;
  margin-bottom: 25px;
  font-weight: 500;
  line-height: 1.4;
}

.no-results .reset-filter {
  background: #022079;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px 25px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(2, 32, 121, 0.2);
}

.no-results .reset-filter:hover {
  background-color: #faff04;
  color: #022079;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(250, 255, 4, 0.4);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -45%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes floatSad {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}


/* this part is for the alert messages style */

.toast-box {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10002;
  font-family: 'Roboto', sans-serif;
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 320px;
  min-height: 70px;
  padding: 10px 15px;
  border-radius: 8px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.5s ease forwards, fadeOut 5s ease forwards;
}

.toast i:first-child {
  font-size: 30px; 
  margin-right: 12px;
}

.toast-content {
  flex: 1;
}

.toast h3 {
  font-size: 16px;
  margin: 0 0 0 20px;
}

.toast p {
  font-size: 13px;
  color: white;
  margin: 3px 0 0 20px;
  
}

.toast i.fa-xmark {
  cursor: pointer;
  margin-left: 10px;
}

.toast.success {
  background-image: linear-gradient(to right, #01C851aa, #017e3330 25%);
}
.toast.success i:first-child { color: #01C851; }
.toast.success::after {
  background-color: #01C851;
  box-shadow: 0 0 10px #01C851;
}

.toast.error {
  background-image: linear-gradient(to right, #FF3447aa, #CD000130 25%);
}
.toast.error i:first-child { color: #FF3447; }
.toast.error::after {
  background-color: #FF3447;
  box-shadow: 0 0 10px #FF3447;
}

.toast.warning {
  background-image: linear-gradient(to right, #FFBB35aa, #FF880130 25%);
}
.toast.warning i:first-child { color: #FFBB35; }
.toast.warning::after {
  background-color: #FFBB35;
  box-shadow: 0 0 10px #FFBB35;
}

.toast.info {
  background-image: linear-gradient(to right, #33B5E7aa, #0099CC30 25%);
}
.toast.info i:first-child { color: #33B5E7; }
.toast.info::after {
  background-color: #33B5E7;
  box-shadow: 0 0 10px #33B5E7;
}

.toast.success h3,
.toast.success i.fa-xmark {
  color: #01C851;
}

.toast.error h3,
.toast.error i.fa-xmark {
  color: #FF3447;
}

.toast.warning h3,
.toast.warning i.fa-xmark {
  color: #FFBB35;
}

.toast.info h3,
.toast.info i.fa-xmark {
  color: #33B5E7;
}

.toast::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  animation: progress 5s linear forwards;
}


/* this part is for the multi-select dropdown in the desctop view*/

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #6e6e6e;
  pointer-events: none; 
  border: none !important;
  background: none !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
}

.multi-select {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-width: 320px;
  border: 1.5px solid rgba(2, 32, 121, 0.3);
  border-radius: 30px;
  background-color: rgba(255,255,255,0.4);
  box-shadow: 0 2px 6px rgba(2, 32, 121, 0.08);
  padding: 6px 40px 6px 38px;
  cursor: pointer;
  transition: all 0.3s ease;
}


.multi-select:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(2, 32, 121, 0.15);
  border-color: #022079;
}

.multi-select.active {
  background: white;
  border-color: #022079;
  box-shadow: 0 4px 14px rgba(2, 32, 121, 0.2);
}

.selected-items {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 22px;
  margin-right: 25px;
  margin-left: 10px;
  color: #6e6e6e;
  font-size: 14px;
}

.selected-items.empty::before {
  content: attr(data-placeholder);
  color: #888;
  font-weight: 400;
}

.selected-items span {
  background: linear-gradient(135deg, #022079, #0048b3);
  color: #fff;
  padding: 6px;
  border-radius: 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

.selected-items span i {
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  margin-left: 5px;
  font-weight: bold;
  transition: none;
  border: none !important;
  background: none !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
}

.selected-items span i:hover {
  transform: none; 
}

.dropdown-arrow {
  position: relative;
  right: 0;
  top: 0;
  transform: none;
  color: #022079;
  font-size: 11px;
  pointer-events: none;
  transition: transform 0.3s ease;
  border: none !important;
  background: none !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
}

.dropdown-arrow i{
  border: none !important;
  background: none !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
}

.multi-select.active .dropdown-arrow {
  transform: rotate(180deg);
}


.dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid rgba(2, 32, 121, 0.25);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(2, 32, 121, 0.15);
  overflow-y: auto;
  z-index: 200;
  display: none;
  max-height: 120px;
  padding: 4px 0;
}

.multi-select.active .dropdown {
  display: block;
}

.dropdown div {
  padding: 6px 12px;
  color: #022079;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown div .check-icon {
  color: #022079;
  font-size: 12px;
  margin-left: 8px;
}

.dropdown div:hover {
  background: rgba(2, 32, 121, 0.08);
  padding-left: 20px;
}



@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes progress {
  from { width: 0%; }
  to { width: 100%; }
}
@keyframes fadeOut {
  90% { opacity: 1; }
  100% { opacity: 0; }
}

/* this part is for the loading page */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, transform 0.6s ease;
    overflow: hidden;
}

.loading-screen.fade-out {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.loading-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    max-width: 600px;
    width: 90%;
}

.loading-logo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    animation: logoFloat 3s ease-in-out infinite;
}

.loading-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(2, 32, 121, 0.3));
}

.logo-dark {
    display: none;
}

.logo-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(2, 32, 121, 0.2), transparent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 0.5; 
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2); 
        opacity: 0.8; 
    }
}

.loading-title {
    font-size: 32px;
    font-weight: 700;
    color: #022079;
    margin: 0 0 10px;
    letter-spacing: 1px;
    animation: fadeInUp 0.6s ease;
}

.loading-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 40px;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-progress-container {
    margin-bottom: 40px;
    animation: fadeInUp 1s ease;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(2, 32, 121, 0.1);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #022079, #0048b3, #0066cc);
    background-size: 200% 100%;
    animation: gradientSlide 2s ease infinite;
    border-radius: 20px;
    transition: width 0.3s ease;
    box-shadow: 0 0 15px rgba(2, 32, 121, 0.5);
}

.progress-glow {
    position: absolute;
    top: 0;
    left: -50px;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: glowSlide 1.5s ease infinite;
}

@keyframes gradientSlide {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glowSlide {
    0% { left: -50px; }
    100% { left: 110%; }
}

.progress-percentage {
    font-size: 14px;
    font-weight: 600;
    color: #022079;
    text-align: right;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
    animation: fadeInUp 1.2s ease;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(2, 32, 121, 0.1);
    transition: all 0.3s ease;
    opacity: 0.5;
}

.loading-step.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(2, 32, 121, 0.3);
    box-shadow: 0 4px 15px rgba(2, 32, 121, 0.1);
    transform: translateX(5px);
}

.loading-step.completed {
    opacity: 1;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.step-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(2, 32, 121, 0.1), rgba(0, 102, 204, 0.1));
    border-radius: 10px;
    color: #022079;
    font-size: 18px;
}

.loading-step.completed .step-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.3));
    color: #10b981;
}

.step-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-align: left;
}

.step-status i {
    font-size: 18px;
    color: #022079;
}

.loading-step.completed .step-status i {
    color: #10b981;
    animation: none;
}

.loading-step.completed .step-status i::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.loading-quote {
    position: relative;
    padding: 20px 30px;
    background: rgba(2, 32, 121, 0.05);
    border-left: 4px solid #022079;
    border-radius: 10px;
    animation: fadeInUp 1.4s ease;
}

.loading-quote i {
    color: #022079;
    opacity: 0.3;
    font-size: 14px;
}

.loading-quote i.fa-quote-left {
    position: absolute;
    top: 10px;
    left: 10px;
}

.loading-quote i.fa-quote-right {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.loading-quote p {
    font-size: 14px;
    color: #022079;
    font-style: italic;
    margin: 0;
    padding: 0 20px;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(2, 32, 121, 0.1);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}


body.dark-mode .loading-screen {
    background: linear-gradient(135deg, #0a1128 0%, #001f54 100%);
}

body.dark-mode .logo-light {
    display: none;
}

body.dark-mode .logo-dark {
    display: block;
}

body.dark-mode .logo-pulse {
    background: radial-gradient(circle, rgba(250, 255, 4, 0.2), transparent);
}

body.dark-mode .loading-title {
    color: #faff04;
    text-shadow: 0 0 20px rgba(250, 255, 4, 0.3);
}

body.dark-mode .loading-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .progress-bar {
    background: rgba(250, 255, 4, 0.1);
}

body.dark-mode .progress-fill {
    background: linear-gradient(90deg, #faff04, #ffcc00, #faff04);
    box-shadow: 0 0 15px rgba(250, 255, 4, 0.5);
}

body.dark-mode .progress-percentage {
    color: #faff04;
}

body.dark-mode .loading-step {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(250, 255, 4, 0.2);
}

body.dark-mode .loading-step.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(250, 255, 4, 0.4);
    box-shadow: 0 4px 15px rgba(250, 255, 4, 0.2);
}

body.dark-mode .loading-step.completed {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
}

body.dark-mode .step-icon {
    background: linear-gradient(135deg, rgba(250, 255, 4, 0.15), rgba(255, 204, 0, 0.15));
    color: #faff04;
}

body.dark-mode .loading-step.completed .step-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.3));
    color: #10b981;
}

body.dark-mode .step-text {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .step-status i {
    color: #faff04;
}

body.dark-mode .loading-quote {
    background: rgba(250, 255, 4, 0.05);
    border-left-color: #faff04;
}

body.dark-mode .loading-quote i,
body.dark-mode .loading-quote p {
    color: #faff04;
}

body.dark-mode .particle {
    background: rgba(250, 255, 4, 0.1);
}

/* this part is for removing the hide/show password native with some browsers  */

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-textfield-decoration-container {
    display: none;
}

/* this part is for the score container that show the score for the user  */

.score-display-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.score-display-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

body.dark-mode .score-display-overlay {
    background: rgba(0, 0, 0, 0.8);
}

.score-display {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: visible;
    box-shadow: 0 20px 60px rgba(2, 32, 121, 0.3);
    border: 2px solid rgba(2, 32, 121, 0.2);
    display: flex;
    flex-direction: column;
    gap: 25px;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.score-display-overlay.show .score-display {
    transform: scale(1) translateY(0);
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(50px);
    }
    50% {
        transform: scale(1.05) translateY(-10px);
    }
    70% {
        transform: scale(0.95) translateY(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

body.dark-mode .score-display {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(25px);
    border-color: rgba(250, 255, 4, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.score-header {
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 10;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(2, 32, 121, 0.1);
    overflow: visible;
}

body.dark-mode .score-header {
    border-bottom-color: rgba(250, 255, 4, 0.2);
}

.score-content {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 25px;
    justify-content: center;
    width: 100%;
    padding: 15px 0;
}

.score-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
    margin: 10px 0;
}

.score-icon::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0;
    }
}

.score-icon.excellent {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.score-icon.good {
    background: linear-gradient(135deg, #022079, #0048b3);
    color: white;
    box-shadow: 0 8px 25px rgba(2, 32, 121, 0.5);
}

.score-icon.average {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.score-icon.poor {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

body.dark-mode .score-icon.excellent {
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.7);
}

body.dark-mode .score-icon.good {
    background: linear-gradient(135deg, #faff04, #ffcc00);
    color: #022079;
    box-shadow: 0 8px 30px rgba(250, 255, 4, 0.7);
}

body.dark-mode .score-icon.average {
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.7);
}

body.dark-mode .score-icon.poor {
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.7);
}

.score-text {
    text-align: center;
}

.score-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.dark-mode .score-title {
    color: rgba(255, 255, 255, 0.7);
}

.score-value {
    font-size: 36px;
    font-weight: 700;
    color: #022079;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

body.dark-mode .score-value {
    color: #faff04;
    text-shadow: 0 0 20px rgba(250, 255, 4, 0.3);
}

.score-label {
    font-size: 14px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-label.excellent {
    background: rgba(16, 185, 129, 0.2);
    color: #059669;
}

.score-label.good {
    background: linear-gradient(135deg, rgba(2, 32, 121, 0.2), rgba(0, 72, 179, 0.2));
    color: #022079;
}

.score-label.average {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
}

.score-label.poor {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

body.dark-mode .score-label.excellent {
    background: rgba(16, 185, 129, 0.25);
    color: #10b981;
}

body.dark-mode .score-label.good {
    background: linear-gradient(135deg, rgba(250, 255, 4, 0.25), rgba(255, 204, 0, 0.25));
    color: #faff04;
}

body.dark-mode .score-label.average {
    background: rgba(245, 158, 11, 0.25);
    color: #f59e0b;
}

body.dark-mode .score-label.poor {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

.review-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    max-height: 50vh;
    padding: 5px;
}

.review-item {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    padding: 18px;
    border-left: 4px solid;
    transition: all 0.3s ease;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.review-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-item.correct {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.review-item.incorrect {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

body.dark-mode .review-item {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .review-item.correct {
    background: rgba(16, 185, 129, 0.15);
}

body.dark-mode .review-item.incorrect {
    background: rgba(239, 68, 68, 0.15);
}

.review-item:nth-child(1) { animation-delay: 0.1s; }
.review-item:nth-child(2) { animation-delay: 0.2s; }
.review-item:nth-child(3) { animation-delay: 0.3s; }
.review-item:nth-child(4) { animation-delay: 0.4s; }
.review-item:nth-child(5) { animation-delay: 0.5s; }
.review-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.review-header i {
    font-size: 20px;
}

.review-item.correct .review-header i {
    color: #10b981;
}

.review-item.incorrect .review-header i {
    color: #ef4444;
}

.review-number {
    font-weight: 600;
    font-size: 14px;
    color: #022079;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark-mode .review-number {
    color: #faff04;
}

.review-question {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

body.dark-mode .review-question {
    color: #e0e0e0;
}

.review-answers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-answer {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.review-answer strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    opacity: 0.8;
}

.user-answer.correct-answer {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.user-answer.wrong-answer {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.review-answer.correct-answer:not(.user-answer) {
    background: rgba(16, 185, 129, 0.2);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

body.dark-mode .user-answer.correct-answer {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.4);
}

body.dark-mode .user-answer.wrong-answer {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

body.dark-mode .review-answer.correct-answer:not(.user-answer) {
    background: rgba(16, 185, 129, 0.25);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.5);
}

.retry-button {
    padding: 14px 32px;
    background: linear-gradient(135deg, #022079, #0048b3);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    font-family: "Poppins", Arial, sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(2, 32, 121, 0.3);
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

.retry-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(2, 32, 121, 0.5);
    background: linear-gradient(135deg, #0048b3, #0066cc);
}

.retry-button i {
    font-size: 16px;
}

body.dark-mode .retry-button {
    background: linear-gradient(135deg, #faff04, #ffcc00);
    color: #022079;
    box-shadow: 0 6px 20px rgba(250, 255, 4, 0.4);
}

body.dark-mode .retry-button:hover {
    background: linear-gradient(135deg, #ffcc00, #faff04);
    box-shadow: 0 8px 25px rgba(250, 255, 4, 0.6);
}

.review-container::-webkit-scrollbar,
.score-display::-webkit-scrollbar {
    width: 6px;
}

.review-container::-webkit-scrollbar-track,
.score-display::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.review-container::-webkit-scrollbar-thumb,
.score-display::-webkit-scrollbar-thumb {
    background: rgba(2, 32, 121, 0.3);
    border-radius: 3px;
}

.review-container::-webkit-scrollbar-thumb:hover,
.score-display::-webkit-scrollbar-thumb:hover {
    background: rgba(2, 32, 121, 0.5);
}

body.dark-mode .review-container::-webkit-scrollbar-thumb,
body.dark-mode .score-display::-webkit-scrollbar-thumb {
    background: rgba(250, 255, 4, 0.3);
}

body.dark-mode .review-container::-webkit-scrollbar-thumb:hover,
body.dark-mode .score-display::-webkit-scrollbar-thumb:hover {
    background: rgba(250, 255, 4, 0.5);
}

.blog-title-separator {
    margin: 20px 0 15px 0;
}

.blog-title-separator:first-child {
    margin-top: 0;
}

.blog-title-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: linear-gradient(135deg, rgba(2, 32, 121, 0.1), rgba(0, 72, 179, 0.05));
    border-left: 4px solid #022079;
    border-radius: 12px;
    margin-bottom: 15px;
}

.blog-title-header i {
    font-size: 22px;
    color: #022079;
}

.blog-title-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #022079;
    text-transform: none;
    letter-spacing: 0;
}

body.dark-mode .blog-title-header {
    background: linear-gradient(135deg, rgba(250, 255, 4, 0.15), rgba(255, 204, 0, 0.05));
    border-left-color: #faff04;
}

body.dark-mode .blog-title-header i {
    color: #faff04;
}

body.dark-mode .blog-title-header h3 {
    color: #faff04;
}


.floating-score-btn {
    position: fixed;
    bottom: 30px;
    right: 90px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 8px 25px rgba(2, 32, 121, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: scale(0) translateY(20px);
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.floating-score-btn.show {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
    animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0) translateY(20px) rotate(-180deg);
    }
    60% {
        transform: scale(1.15) translateY(-5px) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

.floating-score-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 35px rgba(2, 32, 121, 0.5);
}

.floating-score-btn:active {
    transform: scale(0.95);
}

.floating-score-btn.excellent {
    background: linear-gradient(135deg, #10b981, #059669);
}

.floating-score-btn.good {
    background: linear-gradient(135deg, #022079, #0048b3);
}

.floating-score-btn.average {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.floating-score-btn.poor {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

body.dark-mode .floating-score-btn {
    border-color: rgba(250, 255, 4, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

body.dark-mode .floating-score-btn:hover {
    box-shadow: 0 12px 35px rgba(250, 255, 4, 0.4);
}

body.dark-mode .floating-score-btn.good {
    background: linear-gradient(135deg, #faff04, #ffcc00);
}

.floating-score-btn i {
    font-size: 32px;
    color: white;
    animation: iconPulse 2s ease-in-out infinite;
}

body.dark-mode .floating-score-btn.good i {
    color: #022079;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.floating-score-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: white;
    color: #022079;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid;
}

.floating-score-btn.excellent .floating-score-badge {
    border-color: #10b981;
    color: #059669;
}

.floating-score-btn.good .floating-score-badge {
    border-color: #022079;
    color: #022079;
}

.floating-score-btn.average .floating-score-badge {
    border-color: #f59e0b;
    color: #d97706;
}

.floating-score-btn.poor .floating-score-badge {
    border-color: #ef4444;
    color: #dc2626;
}

body.dark-mode .floating-score-badge {
    background: rgba(26, 26, 46, 0.95);
}

body.dark-mode .floating-score-btn.excellent .floating-score-badge {
    color: #10b981;
}

body.dark-mode .floating-score-btn.good .floating-score-badge {
    border-color: #faff04;
    color: #faff04;
}

body.dark-mode .floating-score-btn.average .floating-score-badge {
    color: #f59e0b;
}

body.dark-mode .floating-score-btn.poor .floating-score-badge {
    color: #ef4444;
}

.floating-score-btn::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    animation: ripple 1.5s ease-out infinite;
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* this part is for the button that help the user to stop the quiz  */

.floating-pause-btn {
    position: fixed;
    bottom: 30px;
    right: 90px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: scale(0) translateY(20px);
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.floating-pause-btn.show {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
    animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards;
}

.floating-pause-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.6);
}

.floating-pause-btn:active {
    transform: scale(0.95);
}

body.dark-mode .floating-pause-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-color: rgba(250, 255, 4, 0.3);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

body.dark-mode .floating-pause-btn:hover {
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.7);
}

.floating-pause-btn i {
    font-size: 28px;
    color: white;
    animation: iconPulse 2s ease-in-out infinite;
}

.floating-pause-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: white;
    color: #6366f1;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #6366f1;
}

body.dark-mode .floating-pause-badge {
    background: rgba(26, 26, 46, 0.95);
    color: #8b5cf6;
    border-color: #8b5cf6;
}

.floating-pause-btn::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    animation: ripple 1.5s ease-out infinite;
}


/* this part is for the dropdown of the language */

.settings-dropdown {
    position: relative;
    display: inline-block;
}

.settings-icon {
    font-size: 22px;
    color: #022079;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(255,255,255,0.4);
    padding: 10px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.settings-icon:hover {
    background-color: #022079;
    color: white;
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 0 12px rgba(2, 32, 121, 0.4);
}

body.dark-mode .settings-icon {
    color: #faff04;
    background-color: rgba(250, 255, 4, 0.1);
    border: 1px solid rgba(250, 255, 4, 0.2);
}

body.dark-mode .settings-icon:hover {
    background-color: #faff04;
    color: #022079;
    box-shadow: 0 0 12px rgba(250, 255, 4, 0.4);
    border-color: #faff04;
}

.settings-dropdown.active .settings-icon {
    background-color: #022079;
    color: white;
    transform: rotate(90deg);
}

body.dark-mode .settings-dropdown.active .settings-icon {
    background-color: #faff04;
    color: #022079;
}

.settings-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    min-width: 200px;
    background: white;
    border: 1px solid rgba(2, 32, 121, 0.25);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(2, 32, 121, 0.15);
    overflow: hidden;
    z-index: 200;
    display: none;
    padding: 4px 0;
}

.settings-dropdown.active .settings-menu {
    display: block;
    animation: dropdownSlide 0.3s ease forwards;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.dark-mode .settings-menu {
    background: #16213e;
    border-color: rgba(250, 255, 4, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.settings-item {
    padding: 10px 16px;
    color: #022079;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.settings-item:hover {
    background: rgba(2, 32, 121, 0.08);
    padding-left: 24px;
}

body.dark-mode .settings-item {
    color: #e0e0e0;
}

body.dark-mode .settings-item:hover {
    background: rgba(250, 255, 4, 0.15);
    color: #faff04;
}

.flag-icon {
    width: 24px;
    height: 16px;
    object-fit: cover;
    image-rendering: high-quality;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.language-check {
    margin-left: auto;
    color: #022079;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.settings-item.active .language-check {
    opacity: 1;
}

body.dark-mode .language-check {
    color: #faff04;
}

/* this part is for the language dropdown for the mobile version */


.settings-mobile-trigger {
    position: relative;
}

.settings-arrow {
    margin-left: auto;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.settings-mobile-trigger.active .settings-arrow {
    transform: rotate(180deg);
}

.mobile-settings-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: transparent;
    margin: 0 -25px;
    padding: 0 25px;
}

.mobile-settings-submenu.open {
    max-height: 200px;
    padding: 10px 25px;
}

.mobile-settings-item {
    padding: 14px 18px;
    margin: 8px 0;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-settings-item:hover {
    background: white;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(2, 32, 121, 0.1);
}

body.dark-mode .mobile-settings-item {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .mobile-settings-item:hover {
    background: rgba(250, 255, 4, 0.1);
}

.mobile-settings-item span {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

body.dark-mode .mobile-settings-item span {
    color: #e0e0e0;
}

.mobile-settings-item .language-check {
    margin-left: auto;
    color: #022079;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-settings-item.active .language-check {
    opacity: 1;
}

body.dark-mode .mobile-settings-item .language-check {
    color: #faff04;
}

/* this part is for the login/registration page */


.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    /* Add padding for mobile */
    padding: 0;
}

.auth-modal.show {
    display: flex;
}

.auth-container {
    position: relative;
    width: 90%;
    max-width: 850px;
    height: 550px;
    background-color: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.auth-form-wrapper {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.auth-form-wrapper.active {
    display: flex;
}

.login-wrapper {
    flex-direction: row;
}

.login-wrapper .auth-form-side {
    order: 1;
}

.login-wrapper .auth-welcome-side {
    order: 2;
}

.register-wrapper {
    flex-direction: row;
}

.register-wrapper .auth-welcome-side {
    order: 1;
}

.register-wrapper .auth-form-side {
    order: 2;
}

.auth-form-side {
    flex: 1;
    padding: 0px 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: white;
    /* CRITICAL: Enable proper scrolling */
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100%;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    /* Ensure content doesn't overflow */
    box-sizing: border-box;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

    .auth-form-side > * {
        flex-shrink: 0; /* Prevent elements from shrinking */
        width: 100%; /* Ensure proper width */
    }

.auth-form-side h2 {
    color: #022079;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border: 2px solid transparent;
    background-color: #f0f0f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: "Poppins", Arial, sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input::placeholder{
    font-size: 13px;
}

.form-group input:focus {
    outline: none;
    background-color: #e8e8e8;
    border-color: #022079;
    box-shadow: 0 0 0 2px rgba(2, 32, 121, 0.1);
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 16px; 
    transform: none;
    color: #666;
    font-size: 16px;
    pointer-events: none;
}


.toggle-password {
    position: absolute;
    right: 45px;
    top: 16px;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 5;
}

.toggle-password:hover {
    color: #022079;
}

.form-group input.error ~ .toggle-password,
.form-group input.success ~ .toggle-password {
    right: 45px;
}

.dark-mode .toggle-password {
    color: rgba(255, 255, 255, 0.7);
}

.dark-mode .toggle-password:hover {
    color: #faff04;
}

.forgot-password {
    text-align: right;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 20px;
    display: block;
    font-family: "Poppins", Arial, sans-serif;
}

.forgot-password:hover {
    color: #022079;
}

.auth-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #022079 0%, #0048b3 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: "Poppins", Arial, sans-serif;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(2, 32, 121, 0.3);
}

.social-text {
    text-align: center;
    color: #666;
    font-size: 13px;
    font-family: "Poppins", Arial, sans-serif;
    margin: 15px 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-size: 18px;
}

.social-btn:hover {
    background: #022079;
    color: white;
    border-color: #022079;
    transform: translateY(-3px);
}

.auth-welcome-side {
    flex: 1;
    background: linear-gradient(135deg, #022079 0%, #0048b3 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.auth-welcome-side h1 {
    font-size: 29px;
    font-weight: bold;
    font-family: "Poppins", Arial, sans-serif;
    margin-bottom: 15px;
    z-index: 1;
}

.auth-welcome-side p {
    font-size: 16px;
    font-family: "Poppins", Arial, sans-serif;
    margin-bottom: 30px;
    opacity: 0.9;
    z-index: 1;
}

.switch-button {
    padding: 12px 40px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    font-family: "Poppins", Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.switch-button:hover {
    background: white;
    color: #022079;
}

.close-auth {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.close-auth:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.auth-form-wrapper.slide-out-left {
    animation: slideOutLeft 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.auth-form-wrapper.slide-in-right {
    animation: slideInRight 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.dark-mode .auth-container {
    background-color: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(25px);
}

.dark-mode .auth-form-side {
    background-color: rgba(26, 26, 46, 0.95);
}

.dark-mode .auth-form-side h2 {
    color: #faff04;
    text-shadow: 0 0 10px rgba(250, 255, 4, 0.3);
}

.dark-mode .form-group input {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(250, 255, 4, 0.2);
}

.dark-mode .form-group input:focus {
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px #faff04;
    border-color: #faff04;
}

.dark-mode .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.dark-mode .input-icon {
    color: rgba(255, 255, 255, 0.7);
}

.dark-mode .forgot-password {
    color: rgba(255, 255, 255, 0.7);
}

.dark-mode .forgot-password:hover {
    color: #faff04;
}

.dark-mode .auth-button {
    background: linear-gradient(135deg, #faff04 0%, #ffcc00 100%);
    color: #022079;
    box-shadow: 0 5px 20px rgba(250, 255, 4, 0.3);
}

.dark-mode .auth-button:hover {
    box-shadow: 0 5px 20px rgba(250, 255, 4, 0.5);
    background: linear-gradient(135deg, #ffcc00 0%, #faff04 100%);
}

.dark-mode .social-text {
    color: rgba(255, 255, 255, 0.7);
}

.dark-mode .social-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(250, 255, 4, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.dark-mode .social-btn:hover {
    background: #faff04;
    color: #022079;
    border-color: #faff04;
    box-shadow: 0 4px 15px rgba(250, 255, 4, 0.4);
}

.dark-mode .auth-welcome-side {
    background: linear-gradient(135deg, #faff04 0%, #ffcc00 100%);
    color: #022079;
}

.dark-mode .switch-button {
    border-color: #022079;
    color: #022079;
}

.dark-mode .switch-button:hover {
    background: #022079;
    color: #faff04;
}

.dark-mode .close-auth {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.dark-mode .close-auth:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #faff04;
}

.form-group input.error {
    border: 2px solid #ef4444;
    background-color: #fef2f2;
}

.form-group input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.form-group input.success {
    border: 2px solid #10b981;
    background-color: #f0fdf4;
}

.form-group input.success:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.error-message {
    display: none;
    color: #ef4444;
    font-size: 12px;
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 500;
    margin-top: 6px;
    margin-bottom: 0;
    animation: slideDown 0.3s ease;
}


.error-message.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#forgot-password-strength {
    margin-top: 8px;
    margin-bottom: 16px;
}

.password-strength {
    margin-top: 8px;
    margin-bottom: 0;
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    display: none;
}

.password-strength.show {
    display: block;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-bar.weak {
    width: 33%;
    background-color: #ef4444;
}

.strength-bar.medium {
    width: 66%;
    background-color: #f59e0b;
}

.strength-bar.strong {
    width: 100%;
    background-color: #10b981;
}

.dark-mode .form-group input.error {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

.dark-mode .form-group input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.dark-mode .form-group input.success {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
}

.dark-mode .form-group input.success:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.dark-mode .error-message {
    color: #fca5a5;
}

.dark-mode .password-strength {
    background-color: rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.auth-button-secondary {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: transparent;
    border: 2px solid #022079;
    color: #022079;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-button-secondary:hover {
    background: linear-gradient(135deg, #022079 0%, #0048b3 100%);
    box-shadow: 0 5px 20px rgba(2, 32, 121, 0.3);
    color: white;
}

.auth-button-link {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: transparent;
    border: none;
    color: #022079;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.auth-button-link:hover {
    color: #ffcc00;
}

.user-dropdown {
    position: absolute;
    top: calc(100% - 5px);
    right: 60px;
    min-width: 200px;
    background: white;
    border: 1px solid rgba(2, 32, 121, 0.25);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(2, 32, 121, 0.15);
    overflow: hidden;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 4px 0;
}

.user-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    animation: dropdownSlide 0.3s ease forwards;
}

body.dark-mode .user-dropdown {
    background: #16213e;
    border-color: rgba(250, 255, 4, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.user-menu {
    padding: 0;
}

.user-menu-item {
    padding: 10px 16px;
    color: #022079;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    border-radius: 0;
}

.user-menu-item:hover {
    background: rgba(2, 32, 121, 0.08);
    padding-left: 24px;
}

.user-menu-item .dropdown-menu-icons {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: inherit;
    transition: all 0.25s ease;
}

body.dark-mode .user-menu-item {
    color: #e0e0e0;
}

body.dark-mode .user-menu-item:hover {
    background: rgba(250, 255, 4, 0.15);
    color: #faff04;
}

.user-dropdown::before {
    display: none;
}

.mobile-user-arrow {
    margin-left: auto;
    font-size: 14px;
    transition: transform 0.3s ease;
    color: #022079;
    display: none;
}

#mobile-profile-item.open .mobile-user-arrow {
    transform: rotate(180deg);
}

/* Mobile User Submenu */
.mobile-user-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: transparent;
    margin: 0 -25px;
    padding: 0 25px;
}

.mobile-user-submenu.open {
    max-height: 200px;
    padding: 10px 25px;
}

.mobile-user-item:not(.mobile-user-arrow) {
    padding: 14px 18px;
    margin: 8px 0;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-user-item:hover {
    background: white;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(2, 32, 121, 0.1);
}

.mobile-user-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #022079;
    flex-shrink: 0;
}

.mobile-user-item span {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

/* Dark mode for mobile user submenu */
body.dark-mode .mobile-user-submenu {
    background: transparent;
}

body.dark-mode .mobile-user-item  {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .mobile-user-item:hover {
    background: rgba(250, 255, 4, 0.1);
}

body.dark-mode .mobile-user-item i {
    color: #faff04;
}

body.dark-mode .mobile-user-item span {
    color: #e0e0e0;
}

body.dark-mode .mobile-user-item:hover span {
    color: #faff04;
}

body.dark-mode .mobile-user-arrow {
    color: #e0e0e0;
}

body.dark-mode #mobile-profile-item.open .mobile-user-arrow {
    color: #faff04;
}


/* iOS Password Toggle Fix - CSS Masking */
.form-group input[type="text"][data-password-visible="false"] {
    -webkit-text-security: disc;
    text-security: disc;
    font-family: "Poppins", Arial, sans-serif;
}

.form-group input[type="text"][data-password-visible="true"] {
    -webkit-text-security: none;
    text-security: none;
    font-family: "Poppins", Arial, sans-serif;
}

/* Ensure placeholder is always visible */
.form-group input::placeholder {
    opacity: 1 !important;
    -webkit-text-security: none !important;
}

/* iOS specific fixes for consistent height */
.form-group input {
    min-height: 48px;
    height: 48px;
    line-height: 1.5;
    -webkit-appearance: none;
    appearance: none;
}

/* this part is for the media queries */

@media(min-width: 1249px) and (max-width: 1400px) {
  .response{
    font-size: 11px;
    margin-left: 0px;
    color: black;
  }
  .cercle-response{
    width: 20px;
    height: 20px;
  }
}


@media(min-width: 1099px) and (max-width: 1250px) {
  .response{
    font-size: 10px;
    margin-left: 0px;
    color: black;
  }
    .cercle-response{
    width: 20px;
    height: 20px;
  }
}

@media(max-width: 1100px) {

  .image-container {
    position: relative;
    width: 95%;
    min-height: 350px;
    max-height: 500px;
    height: auto;
    margin: 0 auto 100px 0;
  }

  .image-container .cover-image {
    width: 100%;
    object-fit: cover;
  }

  .quiz-container {
    height: auto;
    overflow: visible;
    width: 100%;
    margin: 0;
    padding: 20px;
  }

  .image-container .logo {
    top: 10px;
    left: 10px;
    width: 50px;
  }

  .form {
    display: flex;
    flex-wrap: wrap;
    max-width: 700px;
    justify-content: center;
    gap: 10px 20px;
  }

  .input-container {
    flex: 1 1 calc(50% - 10px);
    height: 45px;
    padding: 0 10px;
  }

  .image-container h4 {
    bottom: 50px;
    left: 10px;
  }

  .bar-progression {
    bottom: 20px;
    left: 10px;
    width: 80%;
  }
}

@media (max-width: 1000px) {
  .mobile-menu-overlay {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .header-icons > .multi-select,
  .header-icons > i.fa-moon,
  .header-icons > i.fa-gear,
  .header-icons > i.fa-circle-user,
  .header-icons > i.fa-right-from-bracket,
  .header-icons > #user-icon,
  .header-icons > .desktop-user-icon,
  .settings-icon {
    display: none !important;
  }

  .header-icons #user-icon {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
    justify-content: flex-end;
  }

  .mobile-menu-overlay.closing {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-menu-content {
    width: 100%;
    max-width: 500px;
    height: 100%;
    background: white;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .mobile-menu-content.closing {
    animation: slideOutRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  @keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }

  @keyframes slideOutRight {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
  }
}

@media(min-width: 500px) and (max-width: 1000px){

  .header-icons > .multi-select,
  .header-icons > i.fa-moon,
  .header-icons > i.fa-gear,
  .header-icons > i.fa-circle-user,
  .header-icons > i.fa-right-from-bracket,
  .header-icons > #user-icon,
  .header-icons > .desktop-user-icon,
  .settings-icon {
    display: none !important;
  }

     #user-icon,
  .desktop-user-icon {
    display: none !important;
  }
  
  .header-icons > .mobile-menu-icon {
    display: block !important;
  }

  .header {
    padding: 0 26px;
  }

  .mobile-multi-select{
    font-size: 12px;
  }


  .mobile-menu-overlay.active{
    display: flex;
  }
  .mobile-menu-content{
    width: 65%;
  }
}

@media (max-width: 950px) and (min-width: 711px) {
    .auth-container {
        max-width: 95%;
        width: 750px;
        height: auto;
        min-height: 500px;
        max-height: 90vh;
    }

    .auth-form-wrapper {
        flex-direction: row !important;
    }

    .auth-form-side {
        padding: 40px 35px;
        overflow-y: auto;
    }

    .auth-form-side h2 {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group input {
        padding: 13px 42px 13px 14px;
        font-size: 14px;
    }

    .input-icon {
        top: 15px;
        right: 14px;
        font-size: 15px;
    }

    .auth-button {
        padding: 13px;
        font-size: 15px;
    }

    .social-text {
        font-size: 12px;
        margin: 13px 0;
    }

    .social-buttons {
        gap: 12px;
    }

    .social-btn {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    .auth-welcome-side {
        padding: 40px 35px;
    }

    .auth-welcome-side h1 {
        font-size: 32px;
    }

    .auth-welcome-side p {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .switch-button {
        padding: 11px 38px;
        font-size: 15px;
    }

    .close-auth {
        top: 18px;
        right: 18px;
        width: 33px;
        height: 33px;
        font-size: 17px;
    }

    .forgot-password {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .error-message {
        font-size: 11px;
        margin-top: 5px;
    }

    .password-strength {
        margin-top: 6px;
        height: 3px;
    }
}

@media (max-width: 710px) {
    .auth-modal {
        background-color: transparent;
        backdrop-filter: none;
        padding: 0;
        align-items: flex-start; /* Changed from center */
        justify-content: flex-start; /* Changed from center */
    }

    .auth-container {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        min-height: 100vh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden; /* Prevent container scrolling */
        animation: none;
        margin: 0;
    }

    .auth-form-wrapper {
        flex-direction: column !important;
        position: relative;
        height: 100%;
        overflow: hidden; /* Let child handle scrolling */
    }

    .auth-form-wrapper.active {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .auth-welcome-side {
        order: 1;
        min-height: 200px !important;
        max-height: 200px;
        height: 200px;
        padding: 35px 25px 30px;
        flex-shrink: 0;
        flex-grow: 0;
        position: sticky;
        top: 0;
        z-index: 10;
        overflow: hidden; /* Prevent any overflow */
    }

    .login-wrapper .auth-welcome-side,
    .register-wrapper .auth-welcome-side {
        order: 1;
    }

    .auth-welcome-side h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .auth-welcome-side p {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .switch-button {
        padding: 11px 40px;
        font-size: 15px;
    }

    .auth-form-side {
        order: 2;
        padding: 25px 30px;
        /* CRITICAL: Proper scrolling setup */
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0; /* Important for flexbox scrolling */
        max-height: calc(100vh - 140px); /* Account for header */
        /* Smooth scrolling */
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        background-color: white;
    }

    .login-wrapper .auth-form-side,
    .register-wrapper .auth-form-side {
        order: 2;
    }

    .auth-form-side > * {
        flex-shrink: 0;
    }

    .auth-form-side h2 {
        font-size: 24px;
        margin-bottom: 20px;
        text-align: center;
        margin-top: 0; /* Remove top margin */
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group input {
        padding: 14px 45px 14px 16px;
        font-size: 15px;
        border-radius: 12px;
    }

    .input-icon {
        top: 16px;
        right: 14px;
        font-size: 15px;
    }

    .toggle-password {
        right: 42px;
        top: 14px;
        font-size: 15px;
    }

    .forgot-password {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .auth-button {
        padding: 14px;
        font-size: 16px;
        margin-bottom: 18px;
        margin-top: 5px;
    }

    .social-text {
        font-size: 13px;
        margin: 15px 0 12px;
    }

    .social-buttons {
        flex-shrink: 0;
        margin-bottom: 20px; /* Add bottom spacing */
    }

    .social-btn {
        width: 46px;
        height: 46px;
        font-size: 17px;
    }

    .close-auth {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
        font-size: 17px;
        background: rgba(255, 255, 255, 0.25);
        color: white;
        backdrop-filter: blur(10px);
        z-index: 1000;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .close-auth:hover {
        background: rgba(255, 255, 255, 0.35);
    }

    .error-message {
        font-size: 12px;
        margin-top: 6px;
        margin-bottom: 0;
    }

    .password-strength {
        margin-top: 8px;
        margin-bottom: 0;
        height: 4px;
    }

    .auth-form-side::-webkit-scrollbar {
        width: 5px;
    }

    .auth-form-side::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 2px;
    }

    .auth-form-side::-webkit-scrollbar-thumb {
        background: rgba(2, 32, 121, 0.3);
        border-radius: 2px;
    }

    .auth-form-side::-webkit-scrollbar-thumb:hover {
        background: rgba(2, 32, 121, 0.5);
    }

    @keyframes slideDownMobile {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes slideUpMobile {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(-100%);
            opacity: 0;
        }
    }

    .auth-form-wrapper.slide-out-left {
        animation: slideUpMobile 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    }

    .auth-form-wrapper.slide-in-right {
        animation: slideDownMobile 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    }
}


@media(max-width: 900px) {
  .input-container {
    flex: 1 1 100%;
    height: 45px;
    padding: 0 10px;
  }
  .form{
    max-width: 450px;
  }
}

@media (max-width: 768px) {
    .loading-logo {
        width: 80px;
        height: 80px;
    }

    .loading-title {
        font-size: 24px;
    }

    .loading-subtitle {
        font-size: 14px;
    }

    .loading-steps {
        gap: 10px;
    }

    .loading-step {
        padding: 12px 15px;
    }

    .step-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .step-text {
        font-size: 13px;
    }

    .loading-quote {
        padding: 15px 20px;
    }

    .loading-quote p {
        font-size: 12px;
    }

    .score-display {
        max-height: 90vh;
        padding: 25px 20px;
        width: 95%;
    }

    .score-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .score-text {
        text-align: center;
    }

    .score-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }

    .score-value {
        font-size: 32px;
        justify-content: center;
    }

    .review-container {
        max-height: 45vh;
    }

    .review-item {
        padding: 15px;
    }

    .retry-button {
        max-width: 100%;
        padding: 12px 28px;
    }

    .floating-score-btn,
    .floating-pause-btn {
        width: 60px;
        height: 60px;
    }

    .floating-score-btn i,
    .floating-pause-btn i {
        font-size: 26px;
    }

    .floating-score-badge,
    .floating-pause-badge {
        font-size: 11px;
        padding: 3px 6px;
    }
}

@media(min-width:500px) and (max-width:650px){
    .knowledge-title h1 {
    font-size: 26px;
  }

  .knowledge-subtitle h5 {
    font-size: 13px;
  }
  .mobile-menu-content{
    width: 82%;
  }
  .blog-title-header h3{
    font-size: 13px;
  }
}


@media (max-width: 500px) {

  .image-container {
    position: relative;
    left: 0;
    width: 100%;
    min-height: 350px;
    max-height: 500px;
    margin-bottom: 100px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }


  .image-container .cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .image-container .gradient-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    gap: 10px;
    text-align: center;
  }

  .image-container h4 {
    position: absolute;
    bottom: 70px;
    left: 10%;
    font-size: 14px;
    color: white;
    z-index: 3;
  }

  .bar-progression {
    position: absolute;
    bottom: 40px;
    left: 10%;
    width: 80%;
    height: 6px;
    border-radius: 20px;
    z-index: 3;
  }

  .quiz-container {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
  }

  .knowledge-title h1 {
    font-size: 22px;
  }

  .knowledge-subtitle h5 {
    font-size: 13px;
  }

  .knowledge-icons .svg-container {
    width: 35px;
    height: 35px;
    padding: 10px;
  }

  .quiz-container {
    width: 100%;
    margin: 0;
    padding: 15px;
  }

  .blog {
    padding: 20px;
    border-radius: 15px;
  }

  .blog-description{
    margin-top: 45px;
  }

  .blog-description h2.blog-title {
  font-size: 16px;
  }

  .blog-description h5.blog-subtitle {
    font-size: 11px;
  }

  .blog-content {
    font-size: 13px;
    text-align: justify;
  }

  .question{
    font-size: 13px;
  }

  .input-container {
    flex: 1 1 100%;
    height: 45px;
    padding: 0 10px;
  }

  .confirmation {
    width: 100%;
    height: 40px;
    font-size: 14px;
  }

  .cercle-response {
    width: 20px;
    height: 20px;
  }
  .correction {
    font-size: 13px;
  }

  .response {
    font-size: 12px;
  }

  .toast-box {
    bottom: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    align-items: center;
  }


  .header-icons > .multi-select,
  .header-icons > i.fa-moon,
  .header-icons > i.fa-gear,
  .header-icons > i.fa-circle-user,
  .header-icons > i.fa-sun,
  .header-icons > i.fa-sun,
  .header-icons > i.fa-right-from-bracket,
  .header-icons > #user-icon,
  .header-icons > .desktop-user-icon,
  .settings-icon {
    display: none !important;
  }

     #user-icon,
  .desktop-user-icon {
    display: none !important;
  }
  
  .header-icons > .mobile-menu-icon {
    display: block !important;
  }

  .header-title {
    font-size: 16px;
  }

  .header {
    padding: 0 12px;
    height: 70px;
    margin-bottom: 15px;
  }

  .header-left {
    gap: 4px;
  }

  .header-logo {
    width: 34px;
    margin-left: 0;
    margin-right: 2px;
  }

  .header-icons {
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
  }

  .mobile-menu-icon {
    display: inline-block !important;
    margin-right: 0;
    transform: scale(1.05);
  }

  .loading-content {
        padding: 20px;
    }

    .loading-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .loading-title {
        font-size: 20px;
    }

    .loading-subtitle {
        font-size: 12px;
        margin-bottom: 30px;
    }

    .loading-progress-container {
        margin-bottom: 30px;
    }

    .loading-steps {
        gap: 8px;
    }

    .loading-step {
        padding: 10px 12px;
        gap: 10px;
    }

    .step-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .step-text {
        font-size: 12px;
    }

    .step-status i {
        font-size: 16px;
    }

    .score-display {
        padding: 20px 15px;
        border-radius: 20px;
    }

    .score-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

    .score-value {
        font-size: 28px;
    }

    .score-title {
        font-size: 12px;
    }

    .score-label {
        font-size: 12px;
        padding: 4px 12px;
    }

    .review-item {
        padding: 12px;
    }

    .review-question {
        font-size: 12px;
    }

    .review-answer {
        font-size: 13px;
        padding: 8px 10px;
    }

    .retry-button {
        padding: 12px 24px;
        font-size: 14px;
    }

    .blog-title-header h3{
      font-size: 12px;
    }

    .floating-score-btn,
    .floating-pause-btn {
        width: 55px;
        height: 55px;
        bottom: 35px;
        /* right: 15px; */
    }


    .floating-score-btn i,
    .floating-pause-btn i {
        font-size: 24px;
    }

    .floating-score-badge,
    .floating-pause-badge {
        font-size: 10px;
        padding: 2px 5px;
        top: -3px;
        right: -3px;
    }

    #verification-info {
        text-align: center;
    }

    .blog-author {
        font-size: 11px;
    }

    .blog-author i {
        font-size: 10px;
    }

}

@media (max-width: 400px) {
    .auth-welcome-side {
        padding: 30px 20px 25px;
        min-height: 180px !important;
        max-height: 180px;
        height: 180px;
    }

    .auth-welcome-side h1 {
        font-size: 24px;
    }

    .auth-welcome-side p {
        font-size: 14px;
    }

    .auth-form-side {
        padding: 30px 20px;
    }

    .auth-form-side h2 {
        font-size: 22px;
    }

    .form-group input {
        font-size: 14px;
        padding: 13px 40px 13px 15px;
    }

    .social-buttons {
        gap: 12px;
    }

    .social-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

@media (max-width: 415px) {
  .mobile-multi-select .selected-items.empty::before {
    font-size: 12px;
  }

  .blog-date {
    font-size: 10px;
  }

  .blog-date i {
      font-size: 10px;
  }

  .blog-likes {
      font-size: 10px;
  }

  .heart-icon {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
    .floating-score-btn,
    .floating-pause-btn {
        width: 50px;
        height: 50px;
    }


    .floating-score-btn i,
    .floating-pause-btn i {
        font-size: 20px;
    }

    .floating-score-badge,
    .floating-pause-badge {
        font-size: 9px;
        padding: 2px 4px;
        top: -2px;
        right: -2px;
    }
}

/* this part is for the display of the loading page whne the height of the screen is small */
@media (max-height: 700px) {
    .auth-form-side h2 {
        margin-top: 90px;
    }
}

@media (max-height: 700px) {
    .loading-content {
        padding: 20px;
        max-height: 100vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .loading-logo {
        width: 60px;
        height: 60px;
        margin: 10px auto 15px;
    }

    .logo-pulse {
        width: 80px;
        height: 80px;
    }

    .loading-title {
        font-size: 22px;
        margin: 0 0 5px;
    }

    .loading-subtitle {
        font-size: 13px;
        margin: 0 0 20px;
    }

    .loading-progress-container {
        margin-bottom: 20px;
    }

    .progress-bar {
        height: 6px;
    }

    .progress-percentage {
        font-size: 12px;
    }

    .loading-steps {
        gap: 8px;
        margin-bottom: 20px;
    }

    .loading-step {
        padding: 10px 15px;
        gap: 10px;
    }

    .step-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .step-text {
        font-size: 13px;
    }

    .step-status i {
        font-size: 14px;
    }

    .loading-quote {
        padding: 12px 20px;
        margin-bottom: 10px;
    }

    .loading-quote p {
        font-size: 11px;
        padding: 0 10px;
    }

    .loading-quote i {
        font-size: 10px;
    }

    .score-display {
        max-height: 90vh;
        padding: 20px;
    }

    .score-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

    .review-container {
        max-height: 35vh;
    }

    .score-header {
        padding-bottom: 10px;
    }

}

@media (max-height: 600px) {
    .loading-content {
        padding: 15px;
        gap: 8px;
    }

    .loading-logo {
        width: 50px;
        height: 50px;
        margin: 5px auto 10px;
    }

    .logo-pulse {
        width: 70px;
        height: 70px;
    }

    .loading-title {
        font-size: 18px;
        margin: 0 0 5px;
    }

    .loading-subtitle {
        font-size: 11px;
        margin: 0 0 15px;
    }

    .loading-progress-container {
        margin-bottom: 15px;
    }

    .progress-bar {
        height: 5px;
    }

    .loading-steps {
        gap: 6px;
        margin-bottom: 15px;
    }

    .loading-step {
        padding: 8px 12px;
        gap: 8px;
    }

    .step-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .step-text {
        font-size: 12px;
    }

    .step-status i {
        font-size: 12px;
    }

    .loading-quote {
        padding: 10px 15px;
    }

    .loading-quote p {
        font-size: 10px;
        padding: 0 8px;
    }

    .loading-quote i.fa-quote-left {
        top: 5px;
        left: 5px;
    }

    .loading-quote i.fa-quote-right {
        bottom: 5px;
        right: 5px;
    }
}

@media (max-height: 500px) {
    .loading-screen {
        align-items: flex-start;
        padding-top: 20px;
    }

    .loading-content {
        padding: 10px;
        max-height: 100vh;
        overflow-y: auto;
    }

    .loading-logo {
        width: 40px;
        height: 40px;
        margin: 5px auto 8px;
    }

    .logo-pulse {
        display: none; 
    }

    .loading-title {
        font-size: 16px;
        margin: 0 0 3px;
    }

    .loading-subtitle {
        font-size: 10px;
        margin: 0 0 10px;
    }

    .loading-progress-container {
        margin-bottom: 10px;
    }

    .loading-steps {
        gap: 5px;
        margin-bottom: 10px;
    }

    .loading-step {
        padding: 6px 10px;
    }

    .step-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .step-text {
        font-size: 11px;
    }

    .loading-quote {
        padding: 8px 12px;
    }

    .loading-quote p {
        font-size: 9px;
        padding: 0 5px;
    }
}

@media (max-width: 500px) and (max-height: 700px) {
    .loading-content {
        padding: 15px;
    }

    .loading-logo {
        width: 50px;
        height: 50px;
        margin: 10px auto 10px;
    }

    .loading-title {
        font-size: 18px;
    }

    .loading-subtitle {
        font-size: 11px;
        margin-bottom: 15px;
    }

    .loading-steps {
        gap: 6px;
        margin-bottom: 15px;
    }

    .loading-step {
        padding: 8px 10px;
    }
}

@media (max-width: 400px) and (max-height: 600px) {
    .loading-screen {
        padding-top: 10px;
    }

    .loading-logo {
        width: 40px;
        height: 40px;
        margin: 5px auto 8px;
    }

    .loading-title {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .loading-subtitle {
        font-size: 10px;
        margin-bottom: 10px;
    }

    .loading-steps {
        gap: 4px;
        margin-bottom: 10px;
    }

    .loading-step {
        padding: 6px 8px;
        gap: 6px;
    }

    .step-icon {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .step-text {
        font-size: 10px;
    }

    .loading-quote {
        padding: 6px 10px;
    }

    .loading-quote p {
        font-size: 9px;
    }
}

.loading-content::-webkit-scrollbar {
    width: 4px;
}

.loading-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.loading-content::-webkit-scrollbar-thumb {
    background: rgba(2, 32, 121, 0.3);
    border-radius: 2px;
}

body.dark-mode .loading-content::-webkit-scrollbar-thumb {
    background: rgba(250, 255, 4, 0.3);
}


@media (min-width: 711px) and (max-width: 950px) {
    .auth-container {
        max-height: 90vh;
        overflow: hidden; /* Prevent double scrollbar */
    }

    .auth-form-side {
        padding: 40px 35px;
        max-height: 100%;
        overflow-y: auto;
    }
}

/* NEW: Specific fix for devices with height under 700px */
@media (max-width: 710px) and (min-height: 501px) and (max-height: 700px) {
    .auth-welcome-side {
        min-height: 160px !important;
        max-height: 16px;
        height: 160px;
        padding: 35px 25px 25px;
    }

        .auth-welcome-side h1 {
            font-size: 22px;
            margin-bottom: 8px;
        }

        .auth-welcome-side p {
            font-size: 13px;
            margin-bottom: 12px;
        }

    .switch-button {
        padding: 9px 30px;
        font-size: 13px;
    }

    .auth-form-side {
        padding: 20px 25px;
        max-height: calc(100vh - 120px);
    }

        .auth-form-side h2 {
            font-size: 22px;
            margin-bottom: 15px;
            margin-top: 0;
        }

    .form-group {
        margin-bottom: 12px;
    }

    .auth-button {
        padding: 11px;
        font-size: 14px;
        margin-bottom: 12px;
    }

    .social-text {
        font-size: 12px;
        margin: 10px 0;
    }

    .social-buttons {
        margin-bottom: 15px;
    }
}

@media (max-width: 710px) and (max-height: 500px) {
    .auth-welcome-side {
        min-height: 180px !important;
        max-height: 180px;
        height: 180px;
        padding: 20px 20px 15px;
    }

    .auth-welcome-side h1 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .auth-welcome-side p {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .switch-button {
        padding: 8px 30px;
        font-size: 13px;
    }

    .auth-form-side {
        padding: 20px 20px;
        max-height: calc(100vh - 120px);
    }

    .auth-form-side h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .auth-button {
        padding: 10px;
        font-size: 14px;
    }
}



@supports (-webkit-touch-callout: none) {
    @media (max-width: 710px) {
        .auth-form-side {
            max-height: calc(-webkit-fill-available - 140px);
        }
    }

    @media (max-width: 710px) and (min-height: 501px) and (max-height: 700px) {
        .auth-form-side {
            max-height: calc(-webkit-fill-available - 120px);
        }
    }
}