.test-disclaimer {
  position: relative;
  padding: 1rem 1rem;
}

/* Base styling for tiles */
.tile.failed,
.tile.passed {
  font-size: 13px !important;
}
.tile {
  display: flex;
  align-items: center;
  justify-content: space-between; 
  padding: 5px 10px;
  height: 50px;
  overflow: hidden;
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
  border: 1px solid #333;
  background-color: #fff;
  text-decoration: none;
  touch-action: manipulation;
}

.tile .test-set {
  font-size: 15px;
  line-height: 1.2;
  font-weight: bold;
  text-overflow: ellipsis;
  overflow: hidden;
}

.tile img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}


/* Hover effect */
@media (hover: hover) {
  .tile:hover {
    background-color: #17d7ff;
    border-color: #767676;
    color: #fff;
    transform: scale(1.05);
  }
}

.tile .result_status::before {
  color: #fff;
  padding-left: 5px;
}

.tile.passed .result_status::before {
  content: "Passed";
}

.tile.failed .result_status::before {
  content: "Failed";
}


.topic-wise, .road-traffic-signs, .the-highway-codes{
  background-color: #dededc;
}

.mock-tests{
  background-color: #8ed7e6;
}

.exam-questions{
  background-color: #8ebfe6;
}

.chapter-1{
  background-color: #f7bbbb;
}

.chapter-2{
  background-color: #c4bbf7;
}

.chapter-3{
  background-color: #f7dfbb;
}

.chapter-4{
  background-color: #f1bbf7;
}

.chapter-5{
  background-color: #f7f6bb;
}

.tile.passed {
  background: linear-gradient(to right, #e1f4d8 35%, #07b60a 0%);
  background-size: 100%;
  background-position: left;
  animation: progress-bar 2s linear infinite;
  color: #fff;
}

.tile.failed {
  background: linear-gradient(to right, #f4dedd 35%, #fe2d1e 0%);
  background-size: 100%;
  background-position: left;
  animation: progress-bar 2s linear infinite;
  color: #fff;
}

.tile.failed *,
.tile.passed * {
  font-size: inherit !important;
}

/* Mode Card Styling */
.mode-card {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s;
  border-radius: 8px;
  background-color: #fff;
}

.mode-card.active-mode {
  box-shadow: 4px 5px 5px #929292;
  transform: scale(1.03);
}

.mode-card:not(.active-mode) {
  box-shadow: 2px 2px 5px #c3c1c1;
}

.mode-card:hover {
  box-shadow: 0 4px 5px #545454;
  background-color: #ececec;
  color: black;
}

.mode-card:not(.active-mode):hover {
  transform: scale(1.03);
}
.mode-card.active-mode .card-header::after {
  content: " Selected";
  font-weight: bold;
  color: #0bc707db; 
}
.active-mode > .card-header {
  background-color: #182b46;
  border-radius: 8px 8px 0 0;
  font-weight: bolder;
  color: #fff;
}

.test-indicator{
  background-color: #c8f2fb !important;
}

.test-mode-checked img {
  width: 20px;
  margin-bottom: 3px;
}

/* Indicator Styling */
.indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  display: inline-block;
  transition: background-color 0.2s, border-color 0.2s;
}

.indicator.passed {
  background-color: #5bff99; /* Bright green */
  border-color: #2cc36a;
}

.indicator.failed {
  background-color: #ff615b; /* Bright red */
  border-color: #d12c2a;
}

.indicator.bg-light {
  background-color: #e0e0e0; /* Neutral gray */
  border-color: #bdbdbd;
}

/* Disclaimer Section */
.row.alert-info {
  background-color: #f8f9fa;
  border-radius: 5px;
}

/* Reset Progress Button */
#reset-progress {
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.2s;
}

#reset-progress:hover {
  background-color: #b71c1c;
}


/* Responsiveness */
@media (max-width: 768px) {
  .row.alert-info p {
    font-size: 0.8rem;
  }

  .indicator {
    width: 16px;
    height: 16px;
  }

  #reset-progress {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-dialog {
  top: 100px;
}

.responsive-fs {
  font-size: 1.25rem; /* fs-5 size by default */
}
.responsive-fxs {
  font-size: 1rem; /* fs-5 size by default */
}

@media (max-width: 992px) { /* lg breakpoint */
  .responsive-fs {
    font-size: 1rem; /* fs-4 size for large and above */
  }
  .responsive-fxs {
    font-size: 0.8rem; /* fs-5 size by default */
  }
}

.scroll-margin {
    scroll-margin-top: 80px !important;
}


