body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #f0f4ff;
  color: #fff;
  background-color: #1e4ea8;

}

.container {
  display: flex;
  min-height: calc(100vh - 100px);
  overflow: hidden;
  justify-content: space-between;
}

/* ================= Header =============== */

.header-container {
  display: flex;
  overflow: hidden;
}

.header-container {
  display: flex !important;
}

.header-section {
  background-color: transparent;
  width: 100%;
  height: 80px;
  z-index: 999;
  padding: 10px 0;
}

.navbar-fixed-top {
  background-color: #1e4ea8;
  box-shadow: 0px 16px 28px 0px rgba(0, 0, 0, 0.05);
  height: 70px;
  border-bottom: 0;
  padding: 0;
}

.navbar {
  border: medium none;
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  -ms-border-radius: 0;
  border-radius: 0;
  margin: 0;
  position: relative;
  padding: 0;
  display: flex;
  justify-content: space-between !important;
  width: 100vw;


}

.navbar-header {
  padding: 17px 0;
}

.mainmenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

/* Update the existing ul li styles */
.mainmenu ul li {
  background: transparent;
  margin: 0 !important;
  padding: 0px !important;
  border-radius: 5px;
  word-break: break-all;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}

.mainmenu ul.nav>li>a {
  color: rgba(255, 255, 255, 0.9);
  font-family: "Poppins", sans-serif !important;
  display: inline-block;
  vertical-align: middle;
  padding: 0 10px;
  letter-spacing: 1px;
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
  line-height: 70px;
  z-index: 1;
  text-decoration: none;
}

ul.nav>li>a:hover,
ul.nav>li>a:focus,
ul.nav>li>a.active {
  background: none;
  color: #fff;
  opacity: 1;
}



/* ================= Header End =============== */
/* Sidebar */
.sidebar {
  width: 250px;
  background: #f1f3f5;
  padding: 5px 20px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 11111;
  color: rgba(0, 0, 0, 0.6) !important;
}

.brand {
  font-size: 25px;
  color: #333;
  font-family: "Poppins", sans-serif;
  letter-spacing: -1px;
  font-weight: 600;
  margin-left: 13px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 25px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  letter-spacing: -1px;
  font-weight: 600;
  margin-left: 13px;
}

.brand-icon {
  flex: 0 0 36px;
  padding-top: 10px;
}

.brand-text {
  font-weight: 700;
  font-size: 1.05rem;
}

.sidebar.collapsed {
  width: 20px;
  padding: 0px 0px;
}



.sidebar-content {
  transition: opacity 0.3s ease;
}

.sidebar-content h2 {
  margin-top: 10px;
}

.sidebar.collapsed .sidebar-content {
  display: none;
}

/* Upload icon when collapsed */
.upload-icon-collapsed {
  display: none;
  text-align: center;
  margin-top: 100px;
  font-size: 30px;
}

.sidebar.collapsed .upload-icon-collapsed {
  display: block;
}

.upload-icon-collapsed {
  display: none !important;
}

/* Toggle button */
.toggle-btn {
  position: absolute;
  top: 10px;
  right: 0px;
  background: #f1f3f5;
  color: rgba(0, 0, 0, 0.6);
  border-radius: 0 5px 5px 0;
  padding: 8px 5px;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s;
  z-index: 1001;
  border: 1px solid #dee2e6;
}

.sidebar.collapsed .toggle-btn {
  right: 0px;
}

.toggle-btn:hover {
  background: #15408a;
  color: white;
  border: none;
}

/* Upload box */
.upload-box {

  border: 2px dashed #ced4da;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 20px;
}

.selectedFileName {
  word-break: break-word;
}


.doc-row {
  display: flex;
  align-items: flex-start;
}

.doc-main {
  margin-left: 3px;
}

.doc-name {
  color: white;
}

.deletebtn {
  margin-top: 10px;
}

.progress {
  margin-bottom: 20px;
}

.progress-bar {
  width: 100%;
  background: #dce3f7;
  border-radius: 20px;
  overflow: hidden !;
  height: 10px;
  margin: 5px 0px;
}

.progress-fill {
  height: 100%;
  width: 80%;
  background: #1e4ea8;
  transition: width 0.3s;
}

/* Styling for the Range Input Container and Wrapper */
.range-wrapper {
  position: relative;
  padding-top: 25px;
  /* Space for the floating value */
  margin-bottom: 5px;
  margin-top: 10px;
}

.range-container {
  position: relative;
  padding: 0;
  height: 30px;
  /* Space for the track and the min/max labels below */
}

/* Current Value Display (The '14' shown above the thumb) */
span#rangeValue {
  position: absolute;
  top: 0;
  /** color: #fff; **/
  font-size: 14px;
  transform: translateX(-50%);
  /* Crucial for centering the text on the thumb */
  /* JavaScript will handle the 'left' property */
}

/* Style the Range Input Track and Thumb */
#quizRange {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #ccc;
  border-radius: 5px;
  outline: none;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  z-index: 2;
}

/* Style the track to show progress color */
#quizRange::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  height: 6px;
  background: linear-gradient(to right,
      #1e4ea8 var(--range-progress),
      #e0e0e0 var(--range-progress));
  border-radius: 5px;
}

/* Style the Thumb (the red circle/dot) */
#quizRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -5px;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #1e4ea8;
  cursor: grab;
  border: none;
  z-index: 3;
  position: relative;
}

/* Min/Max Labels at the bottom */
.range-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: absolute;
  bottom: 0;
  /* Position below the track */
  left: 0;
  /*  color: #fff; Use a subtle color */
  font-size: 14px;
}

.range-labels span:last-child {
  margin-right: -10px;
  /* Adjust right edge position if needed */
}

.range-labels span:first-child {
  margin-left: -5px;
  /* Adjust left edge position if needed */
}

.upload-box input {
  display: block;
  margin: 10px auto;
}

.small-text {
  font-size: 12px;
  opacity: 0.8;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Update the existing ul li styles */
ul li {
  background: #2c65d1;
  margin: 5px 0;
  padding: 8px;
  border-radius: 5px;
  word-break: break-all;

  /* New: Use Flexbox to align name and delete icon */
  display: flex;
  justify-content: space-between;
  /* Push icon to the right */
  align-items: center;
}

/* Style for the Delete Icon */
.delete-file-btn {
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
  font-size: 14px;
  padding: 5px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.delete-file-btn:hover {
  color: #d9534f;
  opacity: 1;
}

.uploaded-file-item {
  background-color: transparent;
  padding: 0px;
  margin-bottom: 15px;
}

/* Ensure the file name uses available space */
.file-name {
  flex-grow: 1;
}

/* Main content */
.main {
  flex: 1;
  background: #fff;
  color: #2c65d1;
  padding: 30px;
  overflow-y: auto;
  position: relative;
}

.desktop-only {
  margin-top: -20px;
}

/* Mobile Header */
.mobile-header {
  display: none;
}

.mobile-toggle {
  font-size: 22px;
  color: #1e4ea8;
  cursor: pointer;
}

/* Cards, buttons, etc. */
/* 
.card {
  background: #1e4ea8;
  background: #eaf0ff; 
  border-radius: 15px;
  color: #eaf0ff;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

 */

.card,
.features {
  margin-bottom: 10px;
  line-height: 1.5;
}

.card label,
.features label {
  color: rgba(0, 0, 0, 0.8);
  margin-top: 10px;
}

.card h2,
.features h2 {
  color: rgba(0, 0, 0, 0.8);
  margin-bottom: 10px;
}

.range-labels,
span#rangeValue {
  color: rgba(0, 0, 0, 0.8);
}

.features {
  margin-bottom: 10px;
}


.features h2 {
  color: rgba(0, 0, 0, 0.8);
}

.summary-design,
.features .summary-design,
.card .summary-design,
#answerText {
  color: black;
  border: 1px solid #dee2e6;
  padding: 15px;
  border-radius: 5px;
  line-height: 1.5;
  background-color: rgb(248, 249, 250);

}


#answerText {
  white-space: pre-wrap;
  background-color: rgb(248, 249, 250, 0.8);

}

textarea {
  width: 97%;
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 10px;
  margin: 10px 0;
  font-family: inherit;
  text-align: left;
}

textarea::placeholder {
  text-align: left;
}

.mybutton {
  background-color: #1e4ea8;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}




.mybutton:hover {
  background-color: #2474ff;
  transition: all 0.5s;
}

.warning {
  color: #ff7a00;
  font-weight: 500;
  margin-top: 10px;
}

footer {
  background-color: #fff;
  display: block;
  color: #777;
  text-align: center;
  width: 100% !important;
  left: 0;
  padding: 10px 0;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 999;
}


.sidebar-nav-bottom {
  display: none;
}

.sidebar-nav-bottom .nav-link {
  display: flex;
  background: #15408a;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  color: white;
  /* border: 1px solid #fff; */
  text-decoration: none;
  font-size: 16px;
  padding: 5px 20px;
  margin: 1px;
  transition: background 0.3s;
}

.sidebar-nav-bottom .nav-link:hover {
  background: #2c65d1;
  transition: all 0.3s;
}

/* --- Hide text when collapsed --- */
.sidebar.collapsed .sidebar-nav-bottom .nav-link {
  justify-content: center;
}

.sidebar.collapsed .sidebar-nav-bottom .nav-link i {
  font-size: 20px;
}

.sidebar.collapsed .sidebar-nav-bottom .nav-link::after {
  content: "";
  /* No label when collapsed */
}

.sidebar.collapsed .sidebar-nav-bottom .nav-link span {
  display: none;
}



/* 1. Style the Upload Icon */
.upload-box .upload-icon {
  font-size: 30px;
  color: #1e4ea8;
  margin-bottom: 1px;
}

/* 2. Style the Drag and Drop Text */
.upload-box .drag-text {
  font-size: 16px;
  margin-bottom: 10px;
}

/* 3. Hide the Native File Input */
.custom-file-input-wrapper input[type="file"] {
  /* Completely hide the default input element */
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

/* 4. Style the Custom "Browse" Button (The label triggers the hidden input) */
.custom-upload-button {
  background-color: #fff;
  /* White background for the button */
  color: #1e4ea8;
  /* Dark blue text */
  padding: 8px 25px;
  border-radius: 20px;
  /* Rounded corners */
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s;
  /* Center the button */
  margin: 0 auto 10px auto;
}

.custom-upload-button:hover {
  background-color: #eee;
}

/* Optional: Ensure small-text is centered */
.small-text {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 10px;
  /* Add space below the button */
}

/* ------------------ Responsive ------------------ */
@media (max-width: 667px) {
  .sidebar-nav-bottom {
    display: block;
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    text-align: left;
  }

  header {
    display: none !important;
  }

  /* Sidebar overlay full screen */
  .sidebar {
    position: fixed;
    top: 0;
    left: -110%;
    width: 90%;
    height: 100%;
    background: #1e4ea8;
    transition: left 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
    overflow-y: scroll;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-content {
    width: 90%;
    display: contents;
    justify-content: center;
    flex-direction: column;
  }

  /* Hide the desktop toggle */
  .toggle-btn {
    display: none;
  }

  /* Mobile header (acts as top navbar) */
  .mobile-header {
    display: flex;
    justify-content: space-between;
    /* Pushes content to the edges */
    align-items: center;
    background: #1e4ea8;
    color: white;
    padding: 18px 7px;
    position: sticky;
    top: 0;
    z-index: 1001;
  }

  .mobile-toggle {
    font-size: 22px;
    color: white;
    cursor: pointer;
  }

  /* Optional overlay blur effect */
  .sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(3px);
    z-index: -1;
  }

  /* Main content adjustments */
  .main {
    padding: 0px;
  }

  .main-section {
    padding: 20px !important;
  }

  .sidebar-nav-bottom {
    bottom: 100px;
    text-align: center;
  }
}

/* ==========================================================================
   Scroll To Top
   ========================================================================== */
#scroll-to-top {
  background-color: #1e4ea8;
  display: none;
  width: 45px;
  height: 45px;
  text-align: center;
  font-size: 14px;
  border-radius: 50%;
  line-height: 45px;
  color: #fff;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  border: 1px solid #fff;
}

#scroll-to-top:hover {
  background-color: #ff7a00;
  color: #fff;
}



/* Make the page a full-height flex column */
html,
body {
  height: 100%;
  margin: 0;
}

/* The container controls sidebar + main horizontally */
.container {
  display: flex;
  min-height: calc(100vh - 100px);
  /* Full viewport height */
  justify-content: space-between;
}

/* Make sure the main content area grows vertically to push the footer */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: rgba(0, 0, 0, 0.8);
  padding-bottom: 10px;
}

/* The main-section grows, footer stays at bottom naturally */
.main-section {
  flex: 1;
}

/* Footer stays below all content, not fixed */
footer {
  background-color: #fff;
  color: #777;
  text-align: center;
  width: 100%;
  padding: 10px 0;
  position: relative;
  /* normal flow */
  margin-top: auto;
  /* push it to the bottom of main */
}


.answer-correct {
  border: 2px solid #28a745;
  /* Bootstrap success green */
  background-color: #e9f9ee;
  border-radius: 10px;
  padding: 8px 12px;
  display: inline-block;
  margin-top: 10px;
}

.answer-wrong {
  border: 2px solid #dc3545;
  /* Bootstrap danger red */
  background-color: #fde8e8;
  border-radius: 10px;
  padding: 8px 12px;
  display: inline-block;
  margin-top: 10px;
}


#quizList {

  border-radius: 0.75rem;
  border: 1px solid white;
  padding: 1.5rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
  margin: 0px 0px 10px 0px;
}

.list-group-item {
  border: none;
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}

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


.fw-semibold {
  font-weight: 600;
}

.form-check {
  margin-top: 0.5rem;
}

.badge {
  border-radius: 0.5rem;
  font-size: 0.85rem;

}


/**** Flash Messages *****/

/* Flash container 
.flash-container {
  margin: 1rem auto;
}

*/

/* Base flash style */
.flash {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease;
  color: #fff;
}

/* Variants (like Bootstrap: success, error, warning, info) */
.flash-success {
  background-color: #198754;
}

/* green */
.flash-error {
  background-color: #dc3545;
}

/* red */
.flash-warning {
  background-color: #ffc107;
  color: #212529;
}

/* yellow */
.flash-info {
  background-color: #0dcaf0;
  color: #212529;
}

/* light blue */

/* Close button */
.flash-close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}


.flash {
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* Animation */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}