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;
  box-sizing: border-box;
}

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

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

.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: 20px;
}

.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;
  overflow: hidden;
}

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

#selectedFileName {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.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: 0%;
  height: 10px;
  background: #0ff32e;
  border-radius: 20px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar.processing {
  animation: pulse 1.2s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    opacity: 0.85;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.85;
  }
}

.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: 4px 30px 30px 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;

}

.features h2 {

  margin-bottom: 0px !important;
}

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

.features {
  margin-bottom: 10px;
}


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

.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);
  margin-bottom: 15px;

}

.result-hidden {
  display: none;
}

#viewScoresBtn {
  margin-top: 10px;

}

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

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


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


.exportpdf,
.viewscores {
  color: white;
  border: none;
  padding: 10px 20px !important;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 10px;
  background-color: #1e4ea8;
}

.deletebtn {
  color: white;
  border: none;
  padding: 10px 20px !important;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 10px;
  background-color: #dc3545;
}

.deletebtn:hover {
  background-color: #b02a37;
  border-color: #b02a37;
}



.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;
}

/* Drag-over visual feedback */
.upload-box {
  border: 2px dashed #1e4ea8;
  transition: background-color 0.2s, border-color 0.2s;
}

.upload-box.dragover {
  background-color: #f0f6ff;
  border-color: #1e4ea8;
}

/* 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 */
}

.custom-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.custom-modal.show {
  opacity: 1;
  pointer-events: auto;
}



.custom-modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;

}

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

.notification_modal {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-modal-close {

  display: grid;
  justify-content: end;
  transition: opacity 0.3s ease;
}

.custom-modal-close:hover {
  opacity: 0.8;

}

.custom-modal-btn {
  margin-top: 10px;
}

.custom-modal-close {
  cursor: pointer;
}

.custom-modal-footer {
  display: flex;
  justify-content: flex-end;
  /* aligns button to the right */
  margin-top: 10px;
}

.features .slider-label {
  opacity: .6;
  font-size: 13px;
}


/* ------------------ 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: 0;
    height: 100vh;
    /* FULL screen height */
    width: 260px;
    /* your sidebar width */
    background: #fff;
    z-index: 1000;

    transform: translateX(-100%);
    transition: transform 0.3s ease;

    overflow-y: auto;
    /* ✅ sidebar scrolls */
    overscroll-behavior: contain;
  }

  #sidebar.open {
    transform: translateX(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;

    cursor: pointer;
  }

  .content-wrapper {
    padding: 0 15px;
  }

  /* Optional overlay blur effect */
  .sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: white;
    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;
  }




  .mymodalbutton {
    padding: 5px 10px;

    font-size: 10px;
  }






}

/* ==========================================================================
   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;
  min-height: calc(100vh - 74px)
}

/* 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 */
}


.marquee-container {
  width: 100%;
  overflow: hidden;

}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 18s linear infinite;
}

.marquee-track span {
  white-space: nowrap;
  padding: 15px 30px;
  font-size: 1.1rem;
  color: #2c65d1;
}

.marquee-track a {
  color: inherit;
  /* keeps the same color as text */
  text-decoration: underline;
  cursor: pointer;
}

.marquee-track a:visited {
  color: inherit;
  /* prevents purple visited color */
}

.marquee-track a:hover,
.marquee-track a:focus {
  text-decoration: underline;
  /* keep underline on hover */
}

@keyframes marquee {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(-50%);
  }
}





.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;
  transform: translateY(0);
  transition: opacity 1s ease, transform 1s ease;
}

.flash.fade-out {
  opacity: 0;
  transform: translateY(-10px);
  /* slightly slide up while fading */
}

.mobile_padding {

  padding: 0 15px;
}


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

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



/* ==========================================================================
   Results page
   ========================================================================== */


.results_container {
  padding: 1rem;

}

.results_container h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;

}

thead {
  background-color: #1e4ea8;
  color: white;
}

th,
td {
  padding: 0.9rem 1rem;
  text-align: left;
  font-size: 0.95rem;
}

tbody tr {
  border-bottom: 1px solid #eee;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: #f8f9ff;
}

.score {
  font-weight: 600;
  color: #1e4ea8;
}

.table_wrapper {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: white;
}




@media (max-width: 768px) {

  table,
  thead,
  tbody,
  tr {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  .results_container {
    padding: 1rem;
  }

  tbody tr {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 14px;
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  }

  /* GRID ROW */
  td {
    display: grid;
    grid-template-columns: 110px .9fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    border: none;
    word-break: break-all;
  }

  /* LABEL BOX */
  td::before {
    content: attr(data-label);
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.75rem;
    white-space: nowrap;
    word-break: break-word;
  }

  /* VALUE BOX */
  td:not(::before) {
    color: #111827;
    text-align: left;
  }

  /* SCORE HIGHLIGHT */
  td.score {
    font-weight: 600;
    color: #4f46e5;
  }
}

@media (max-width: 667px) {

  .flash-container {
    margin-top: 10px;
  }

  .sidebar-nav-bottom-results {

    position: static;
    margin-top: 10px;

  }

  .result_side_hidden {
    display: block !important;
  }

  .result_side_hidden {
    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;
  }

  .marquee-track {
    animation-duration: 25s;
    /* slower for readability */
  }

  .marquee-track span {
    font-size: 1rem;
  }

  /* Animation moves FULL text width */
  @keyframes marquee {
    from {
      transform: translateX(0);
    }

    to {
      transform: translateX(-50%);
    }
  }


}

/* ==========================================================================
   Feedback Modal
   ========================================================================== */


/* Make main relative so absolute modal is inside it */
#main {
  position: relative;
}

/* Backdrop inside main */
.feedback-backdrop {
  position: absolute;
  /* was fixed */
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.feedback-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

/* Modal remains the same */
.feedback-modal {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  animation: feedback-scale-in 0.3s ease;
}


.feedback-modal *,
.feedback-modal *::before,
.feedback-modal *::after {
  box-sizing: border-box;
}


@keyframes feedback-scale-in {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.feedback-title {
  margin: 0;
  font-size: 1.5rem;
  color: #111;
}

.feedback-subtitle {
  margin: 8px 0 20px;
  color: #555;
  font-size: 0.95rem;
}

.feedback-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.feedback-field {
  margin-bottom: 16px;
}

.feedback-select,
.feedback-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

.feedback-textarea {
  min-height: 90px;
  resize: vertical;
}

/* Rating */
.feedback-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 10px;
}

.feedback-stars input {
  display: none;
}

.feedback-stars label {
  font-size: 1.6rem;
  color: #ddd;
  cursor: pointer;
}

.feedback-stars input:checked~label,
.feedback-stars label:hover,
.feedback-stars label:hover~label {
  color: #f5b301;
}

/* Actions */
.feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.feedback-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.feedback-cancel {
  background: #f2f2f2;
  color: #333;
}

.feedback-send {
  background: #2c65d1;
  color: #fff;
}

.feedback-send:hover {
  background: #1f4fb3;
}

@media (max-width: 600px) {

  .feedback-modal {
    width: 80%;
    max-width: 320px;
    padding: 16px 20px;
    border-radius: 12px;

  }

  .feedback-select,
  .feedback-textarea {
    font-size: .7rem;
  }

  .feedback-title {
    font-size: 1.2rem;
  }

  .feedback-subtitle {
    font-size: 0.85rem;
  }

  .feedback-stars label {
    font-size: 1.6rem;
    /* smaller stars for touch */
  }

  .feedback-actions {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .feedback-btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  .main {
    min-height: 100vh;
  }

  .fa-home:before,
  .fa-lightbulb-o:before,
  .fa-info-circle:before,
  .fa-comment:before {
    margin-right: 5px;
  }



  .fa-lightbulb-o:before {
    margin-right: 8px;
    padding-left: 2px;
    align-items: center;
  }
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  #main {
    position: relative;
    overflow-x: hidden;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
  }

  .sidebar-nav-bottom {
    display: block;
    margin-top: auto;
    /* push it to the bottom of sidebar content */
    position: static;
    /* no absolute/fixed here */
    width: 100%;
    margin-bottom: 15px;
  }

  #sidebar {
    position: fixed;
    top: 60px;
    /* height of mobile-header */
    left: 0;
    height: calc(100vh - 60px);
    width: 90vw;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
}