/* style.css */

/* --- Custom Checkbox --- */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.container {
  display: block;
  position: relative;
  cursor: pointer;
  font-size: 16px; /* Further reduced from 18px */
  user-select: none;
  margin: auto; /* Ensuring it stays centered in table cells */
}

.checkmark {
  position: relative;
  top: 0;
  left: 0;
  height: 2.3em; /* From your provided CSS */
  width: 2.3em; /* From your provided CSS */
  background-color: #ccc;
  border-radius: 50%;
  transition: 0.4s ease-out; /* From your provided CSS */
  box-shadow:
    inset 0.07em 0.07em 0.12em #b3b3b3, /* From your provided CSS */
    inset -0.07em -0.07em 0.12em #ffffff; /* From your provided CSS */
}

.container input:checked ~ .checkmark {
  box-shadow:
    inset -0.07em -0.07em 0.12em rgb(41, 128, 185),   /* Darker blue for bottom-right shadow */
    inset 0.07em 0.07em 0.12em rgb(133, 193, 233),   /* Lighter blue for top-left shadow */
    0.1em 0.1em 0.2em -0.05em #7a7a7a;               /* Outer shadow from your CSS */
  background-color: rgb(52, 152, 219);             /* Blue background */
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  transition: transform 0.4s ease-in-out; /* From your provided CSS */
  transform-origin: center;
}

.container input:checked ~ .checkmark:after {
  display: block;
}

.container .checkmark:after {
  left: 0.98em;   /* From your provided CSS */
  top: 0.6em;    /* From your provided CSS */
  width: 0.3em;  /* From your provided CSS */
  height: 0.7em; /* From your provided CSS */
  border: solid white;
  border-width: 0 0.15em 0.15em 0; /* From your provided CSS */
  transform: rotate(45deg);
}
/* --- End Custom Checkbox --- */

/* --- Test Checkbox --- */
.test-checkbox-container {
  width: 30px;
  height: 30px;
  display: block;
  background-color: #2a2a2a;
  border: 2px solid #555;
  border-radius: 50%;
  cursor: pointer;
  margin: 0 auto;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.test-checkbox-container:hover {
  border-color: #777;
  background-color: #333;
}

.test-checkbox-container.checked {
  background-color: #4CAF50;
  border-color: #4CAF50;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

/* Hide the actual checkbox */
.test-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Checkmark styling */
.test-checkbox-container .checkmark {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.test-checkbox-container .checkmark svg {
  width: 18px;
  height: 18px;
  opacity: 0;
  transform: scale(0.3);
  transition: all 0.3s ease;
}

.test-checkbox-container.checked .checkmark::before {
  opacity: 1;
}

.test-checkbox-container.checked .checkmark {
  background: linear-gradient(145deg, #2d2f36, #1e1f24);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4),
              -2px -2px 4px rgba(255, 255, 255, 0.05),
              inset 1px 1px 2px rgba(0, 0, 0, 0.2),
              0 0 10px rgba(76, 255, 76, 0.3);
}

.test-checkbox-container .checkmark svg {
  width: 65%;
  height: 65%;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 3px rgba(76, 255, 80, 0.5));
}

.test-checkbox-container.checked .checkmark svg {
  opacity: 1;
  transform: scale(1);
}

.test-checkbox-container .checkmark svg path {
  stroke: #4CAF50;
  stroke-width: 5.5; /* Increased thickness for better visibility */
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 3px rgba(102, 255, 102, 0.9)); /* Brighter glow */
  paint-order: stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.test-checkbox-container.checked .checkmark svg path {
  stroke-dashoffset: 0;
  stroke: #4CFF4C; /* Brighter green */
  filter: drop-shadow(0 0 6px rgba(102, 255, 102, 1)) 
          drop-shadow(0 0 3px rgba(255, 255, 255, 0.8)); /* Multiple glows for intensity */
}






/* Hide the actual checkbox */
.test-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
/* --- View File Button --- */
.view-file-button {
  background: #4a5568;
  border: 1px solid #5a6578;
  color: #a0aec0;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: not-allowed;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  opacity: 0.6;
  pointer-events: none;
  margin-left: 30px;
}

.view-file-button.enabled {
  background: #4299e1;
  color: #ffffff;
  border-color: #4299e1;
  cursor: pointer;
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 2px 4px rgba(66, 153, 225, 0.3);
}

.view-file-button.enabled:hover {
  background: #3182ce;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(66, 153, 225, 0.4);
}

.view-file-button.enabled:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(66, 153, 225, 0.3);
}



#testBody tr.checked td {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.186);
    transition: background 0.3s ease;
}


/* Analysis Buttons */
.analysis-cell {
    padding: 5px !important;
}

.analysis-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.analysis-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.analysis-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.analysis-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.analysis-icon {
    font-size: 14px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

/* Tooltip styles */
.analysis-btn::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 100;
}

.analysis-btn:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 5px);
}

/* Custom Dialog Styles */
.custom-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-dialog.active {
    display: flex;
    opacity: 1;
}

.dialog-content {
    background: linear-gradient(145deg, #1e1f26, #2a2b33);
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    transform: translateY(20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.custom-dialog.active .dialog-content {
    transform: translateY(0);
    opacity: 1;
}

.dialog-content h3 {
    margin-top: 0;
    color: #e1e1e1;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.dialog-content p {
    color: #b0b0b0;
    margin-bottom: 25px;
    line-height: 1.5;
}

.dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.dialog-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95em;
}

.dialog-btn.delete {
    background-color: #ff6b6b;
    color: white;
}

.dialog-btn.delete:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

.dialog-btn.cancel {
    background-color: #3a3d4a;
    color: #e1e1e1;
}

.dialog-btn.cancel:hover {
    background-color: #4a4d5a;
    transform: translateY(-2px);
}

.dialog-btn:active {
    transform: translateY(0) !important;
}

/* Delete Button */
/* Test Analysis Button */
.navigation > .test-analysis-btn {
    --bg: #000;
    --hover-bg: #ff90e8;
    --hover-text: #000;
    color: #fff;
    cursor: pointer;
    border: 1px solid var(--bg);
    border-radius: 4px;
    padding: 0.8em 1.5em;
    background: var(--bg);
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-weight: bold;
    margin: 6px 0;
    height: 40px;
}

.delete-button {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1.2em;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.delete-button:hover {
    background-color: rgba(255, 107, 107, 0.1);
    transform: scale(1.1);
}

.delete-button:active {
    transform: scale(0.95);
}

/* Badges Section */
.badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    padding: 15px;
    flex-wrap: wrap;
}

.badges img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(0.7);
    opacity: 0.7;
    transform: scale(0.9);
    border-radius: 50%;
    background: rgba(30, 31, 36, 0.7);
    padding: 5px;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3),
                -3px -3px 6px rgba(255, 255, 255, 0.05);
}

.badges img.active {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.6),
                3px 3px 6px rgba(0, 0, 0, 0.3),
                -3px -3px 6px rgba(255, 255, 255, 0.05);
    animation: badgeGlow 2s infinite alternate;
}

@keyframes badgeGlow {
    0% {
        box-shadow: 0 0 10px rgba(52, 152, 219, 0.4);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 20px rgba(52, 152, 219, 0.8);
        transform: scale(1.15);
    }
}

/* --- End View File Button --- */

/* File Path Input */
.file-path-input {
  background: #1e1f24;
  border: 1px solid #2a2b2f;
  color: #e0e0e0;
  padding: 8px 12px;
  border-radius: 6px;
  width: 200px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.3),
              inset -2px -2px 4px rgba(255, 255, 255, 0.05);
}

.file-path-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2),
              inset 2px 2px 4px rgba(0, 0, 0, 0.3),
              inset -2px -2px 4px rgba(255, 255, 255, 0.05);
}

.file-path-input::placeholder {
  color: #5a5a5a;
}

/* --- End Test Checkbox --- */

:root {
    --black: #121212;
    --white: #f8f8f8;
    --primary-orange: #009fff;
    --secondary-teal: #00bcd4;
    --text-dark: var(--white);
    --text-light: var(--black);
    --border-radius: 12px;
    --box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    --transition-duration: 0.3s ease-in-out;
    --gradient-primary: linear-gradient(to right, #0056ff, #02ca2e);
}

body.theme {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: var(--black);
    color: var(--white);  /* Enforce white text color */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.app-container {
    width: 98%;
    max-width: 1600px;
    margin: 10px auto;
    background: none;
    border-radius: var(--border-radius);
    box-shadow: none;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}



.app-header {
    background: transparent;
    color: var(--white);
    padding: 10px 0 0 0;
    text-align: center;
    border: none;
    box-shadow: none;
}

.app-header h1 {
    margin: 0;
    font-weight: 700;
    font-size: 2.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    letter-spacing: 0.5px;
}

.navigation {
    background-color: #2c2c2c;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-bottom: 1px solid #444;
}

.navigation button {
    background: none;
    border: none;
    color: var(--white);
    padding: 12px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease-in-out;
    border-radius: 8px;
    position: relative;
}

/* Special style for the Checklist button */
.navigation .checklist-btn {
    background-color: #15386c;  /* Dark teal color */
    color: #FFFFFF;
    padding: 0.5em 1em;
    box-shadow: 0.3em 0.3em 0.5em rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border-radius: 0.4em;
    font-size: 1rem;
}

.navigation .checklist-btn::before {
    position: absolute;
    content: '';
    height: 0;
    width: 0;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #444444 0%, #444444 50%, #555555 50%, #777777 60%);
    border-radius: 0 0 0.4em 0;
    box-shadow: 0.1em 0.1em 0.2em rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    z-index: 0;
}

.navigation .checklist-btn:hover::before {
    width: 1.6em;
    height: 1.6em;
}

.navigation .checklist-btn:active {
    box-shadow: 0.2em 0.2em 0.3em rgba(0, 0, 0, 0.3);
    transform: translate(0.1em, 0.1em);
}

.navigation .checklist-btn b {
    position: relative;
    z-index: 1;
}

/* Test Analysis Button Styles */
.navigation .test-analysis-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    background-image: linear-gradient(#3470fa, #313ed7);
    color: white;
    border: solid 1.5px #0618db;
    height: 36px;
    padding: 0px 16px;
    border-radius: 4px;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.navigation .test-analysis-btn:active {
    background-image: linear-gradient(#313ed7, #3470fa);
    border-color: #313ed7;
}

.navigation .test-analysis-btn .icon {
    position: relative;
}

.navigation .test-analysis-btn .icon::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 5px;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 100%;
}

.navigation .test-analysis-btn .icon::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    transform: translate(-19%, -60%);
    width: 80px;
    height: 26px;
    background-color: transparent;
    border-radius: 10px 18px 2px 2px;
    border-right: solid 1.5px #ffffff;
    border-top: solid 1.5px transparent;
}

.navigation .test-analysis-btn .icon .text-icon {
    color: #ffffff;
    position: absolute;
    font-size: 12px;
    left: -37px;
    top: -38px;
}

.navigation .test-analysis-btn .icon svg {
    width: 16px;
    height: 16px;
    border: solid 1.5px transparent;
    display: flex;
}

.navigation .test-analysis-btn:hover .icon svg {
    border: solid 2px #ffffff;
}

.navigation .test-analysis-btn .padding-left {
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.navigation .test-analysis-btn .padding-left:before,
.navigation .test-analysis-btn .padding-left:after {
    content: "";
    width: 2px;
    height: 10px;
    background-color: #ffffff;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.navigation .test-analysis-btn .padding-left:after {
    right: 0;
    left: auto;
}

.navigation .test-analysis-btn .padding-left-line {
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: #ffffff;
    left: -24px;
    top: 11px;
    transform: rotate(-50deg);
}

.navigation .test-analysis-btn .padding-left-line::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 6px;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 100%;
}

.navigation .test-analysis-btn .padding-left-text {
    color: #ffffff;
    font-size: 12px;
    position: absolute;
    white-space: nowrap;
    transform: rotate(50deg);
    bottom: 30px;
    left: -67px;
}

.navigation .test-analysis-btn .padding-right {
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.navigation .test-analysis-btn .padding-right:before,
.navigation .test-analysis-btn .padding-right:after {
    content: "";
    width: 2px;
    height: 10px;
    background-color: #ffffff;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.navigation .test-analysis-btn .padding-right:after {
    right: 0;
    left: auto;
}

.navigation .test-analysis-btn .padding-right-line {
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: #ffffff;
    right: -24px;
    top: 11px;
    transform: rotate(50deg);
}

.navigation .test-analysis-btn .padding-right-line::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 0;
    width: 6px;
    height: 6px;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 100%;
}

.navigation .test-analysis-btn .padding-right-text {
    color: #ffffff;
    font-size: 12px;
    position: absolute;
    white-space: nowrap;
    transform: rotate(-50deg);
    bottom: 34px;
    left: 21px;
}

.navigation .test-analysis-btn .background::before {
    content: "";
    position: absolute;
    right: 27px;
    bottom: -70px;
    width: 100px;
    height: 53px;
    background-color: transparent;
    border-radius: 0px 0px 22px 22px;
    border-right: solid 2px #ffffff;
    border-bottom: solid 2px transparent;
}

.navigation .test-analysis-btn .background::after {
    content: "";
    position: absolute;
    right: 25px;
    bottom: -20px;
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 100%;
}

.navigation .test-analysis-btn .background-text {
    position: absolute;
    color: #ffffff;
    font-size: 12px;
    bottom: -70px;
    left: -115px;
}

.navigation .test-analysis-btn .border:before {
    content: "";
    width: 15px;
    height: 15px;
    border: solid 2px #ffffff;
    position: absolute;
    right: 0%;
    top: 0;
    transform: translate(50%, -50%);
    border-radius: 100%;
}

.navigation .test-analysis-btn .border:after {
    content: "";
    width: 2px;
    height: 25px;
    background-color: #ffffff;
    position: absolute;
    right: -10px;
    top: -15px;
    transform: translate(50%, -50%) rotate(60deg);
}

.navigation .test-analysis-btn .border .border-text {
    position: absolute;
    color: #ffffff;
    font-size: 12px;
    right: -112px;
    top: -30px;
    white-space: nowrap;
}

.navigation .test-analysis-btn:not(:hover) .hide,
.navigation .test-analysis-btn:not(:hover) .icon::before,
.navigation .test-analysis-btn:not(:hover) .icon::after {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.4);
}

.navigation .test-analysis-btn .hide {
    transition: all 0.2s ease;
}

/* Timer Button Styles */
.navigation .timer-btn {
    position: relative;
    font-family: inherit;
    font-size: 14px !important;
    border-radius: 40em;
    width: 7em;
    height: 2.7em;
    z-index: 1;
    color: white;
    overflow: visible;
    border: none;
    background: transparent;
    margin: 4px 8px 0 5px;
    transform: scale(0.95);
}

.navigation .timer-btn .text {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    line-height: 2.5em;
    border-radius: 40em;
    border: none;
    background: linear-gradient(rgba(255, 255, 255, 0.473), rgba(150, 150, 150, 0.25));
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navigation .timer-btn .blob {
    position: absolute;
    z-index: -1;
    border-radius: 3em;
    width: 3.8em;
    height: 2.3em;
    transition: transform .3s ease-in-out, background .3s ease-in-out;
}

.navigation .timer-btn .blob:nth-child(2) {
    left: 0em;
    top: 0;
    background: #209CEE;
}

.navigation .timer-btn .blob:nth-child(3) {
    left: 1.4em;
    top: 0;
    z-index: -1;
    background: #4DAF7C;
}

.navigation .timer-btn .blob:nth-child(4) {
    left: 3.2em;
    top: -0.8em;
    background: #F0916F;
}

.navigation .timer-btn .blob:nth-child(5) {
    left: 3.5em;
    top: 1.3em;
    background: #a8c7a8;
}

.navigation .timer-btn:hover .blob:nth-child(2) {
    background: #a8c7a8;
}

.navigation .timer-btn:hover .blob:nth-child(3) {
    background: #F0916F;
}

.navigation .timer-btn:hover .blob:nth-child(4) {
    background: #4DAF7C;
}

.navigation .timer-btn:hover .blob:nth-child(5) {
    background: #209CEE;
}

.navigation .timer-btn:hover .blob {
    transform: scale(1.3);
}

.navigation .timer-btn:active {
    border: 2px solid white;
}

/* Tests Button with Folder Animation */
.navigation .continue-application {
  --color: #fff;
  --background: #404660;
  --background-hover: #3A4059;
  --background-left: #2B3044;
  --folder: #F3E9CB;
  --folder-inner: #BEB393;
  --paper: #FFFFFF;
  --paper-lines: #BBC1E1;
  --paper-behind: #E1E6F9;
  --pencil-cap: #fff;
  --pencil-top: #275EFE;
  --pencil-middle: #fff;
  --pencil-bottom: #5C86FF;
  --shadow: rgba(13, 15, 25, .2);
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  line-height: 19px;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  padding: 17px 29px 17px 69px;
  transition: background 0.3s;
  color: var(--color);
  background: var(--bg, var(--background));
  height: 53px;
  margin: 0 5px;
}

.navigation .continue-application > div {
  top: 0;
  left: 0;
  bottom: 0;
  width: 53px;
  position: absolute;
  overflow: hidden;
  border-radius: 5px 0 0 5px;
  background: var(--background-left);
}

.navigation .continue-application > div .folder {
  width: 23px;
  height: 27px;
  position: absolute;
  left: 15px;
  top: 13px;
}

.navigation .continue-application > div .folder .top {
  left: 0;
  top: 0;
  z-index: 2;
  position: absolute;
  transform: translateX(var(--fx, 0));
  transition: transform 0.4s ease var(--fd, 0.3s);
}

.navigation .continue-application > div .folder .top svg {
  width: 24px;
  height: 27px;
  display: block;
  fill: var(--folder);
  transform-origin: 0 50%;
  transition: transform 0.3s ease var(--fds, 0.45s);
  transform: perspective(120px) rotateY(var(--fr, 0deg));
}

.navigation .continue-application > div .folder:before,
.navigation .continue-application > div .folder:after,
.navigation .continue-application > div .folder .paper {
  content: "";
  position: absolute;
  left: var(--l, 0);
  top: var(--t, 0);
  width: var(--w, 100%);
  height: var(--h, 100%);
  border-radius: 1px;
  background: var(--b, var(--folder-inner));
}

.navigation .continue-application > div .folder:before {
  box-shadow: 0 1.5px 3px var(--shadow), 0 2.5px 5px var(--shadow), 0 3.5px 7px var(--shadow);
  transform: translateX(var(--fx, 0));
  transition: transform 0.4s ease var(--fd, 0.3s);
}

.navigation .continue-application > div .folder:after,
.navigation .continue-application > div .folder .paper {
  --l: 1px;
  --t: 1px;
  --w: 21px;
  --h: 25px;
  --b: var(--paper-behind);
}

.navigation .continue-application > div .folder:after {
  transform: translate(var(--pbx, 0), var(--pby, 0));
  transition: transform 0.4s ease var(--pbd, 0s);
}

.navigation .continue-application > div .folder .paper {
  z-index: 1;
  --b: var(--paper);
}

.navigation .continue-application > div .folder .paper:before,
.navigation .continue-application > div .folder .paper:after {
  content: "";
  width: var(--wp, 14px);
  height: 2px;
  border-radius: 1px;
  transform: scaleY(0.5);
  left: 3px;
  top: var(--tp, 3px);
  position: absolute;
  background: var(--paper-lines);
  box-shadow: 0 12px 0 0 var(--paper-lines), 0 24px 0 0 var(--paper-lines);
}

.navigation .continue-application > div .folder .paper:after {
  --tp: 6px;
  --wp: 10px;
}

.navigation .continue-application > div .pencil {
  height: 2px;
  width: 3px;
  border-radius: 1px 1px 0 0;
  top: 8px;
  left: 105%;
  position: absolute;
  z-index: 3;
  transform-origin: 50% 19px;
  background: var(--pencil-cap);
  transform: translateX(var(--pex, 0)) rotate(35deg);
  transition: transform 0.4s ease var(--pbd, 0s);
}

.navigation .continue-application > div .pencil:before,
.navigation .continue-application > div .pencil:after {
  content: "";
  position: absolute;
  display: block;
  background: var(--b, linear-gradient(var(--pencil-top) 55%, var(--pencil-middle) 55.1%, var(--pencil-middle) 60%, var(--pencil-bottom) 60.1%));
  width: var(--w, 5px);
  height: var(--h, 20px);
  border-radius: var(--br, 2px 2px 0 0);
  top: var(--t, 2px);
  left: var(--l, -1px);
}

.navigation .continue-application > div .pencil:before {
  -webkit-clip-path: polygon(0 5%, 5px 5%, 5px 17px, 50% 20px, 0 17px);
  clip-path: polygon(0 5%, 5px 5%, 5px 17px, 50% 20px, 0 17px);
}

.navigation .continue-application > div .pencil:after {
  --b: none;
  --w: 3px;
  --h: 6px;
  --br: 0 2px 1px 0;
  --t: 3px;
  --l: 3px;
  border-top: 1px solid var(--pencil-top);
  border-right: 1px solid var(--pencil-top);
}

.navigation .continue-application:before,
.navigation .continue-application:after {
  content: "";
  position: absolute;
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: var(--color);
  transform-origin: 9px 1px;
  transform: translateX(var(--cx, 0)) scale(0.5) rotate(var(--r, -45deg));
  top: 26px;
  right: 16px;
  transition: transform 0.3s;
}

.navigation .continue-application:after {
  --r: 45deg;
}

.navigation .continue-application:hover {
  --cx: 2px;
  --bg: var(--background-hover);
  --fx: -40px;
  --fr: -60deg;
  --fd: .15s;
  --fds: 0s;
  --pbx: 3px;
  --pby: -3px;
  --pbd: .15s;
  --pex: -24px;
}

/* Quickfire Button Styles */
.quickfire-button {
    --stone-50: #fafaf9;
    --stone-800: #292524;
    --yellow-300: #fde047;
    --yellow-400: #facc15;
    --yellow-500: #eab308;
    --black-25: rgba(0, 0, 0, 0.25);
    position: relative;
    display: block;
    width: 7rem;
    height: 3.5rem;
    cursor: pointer;
    margin: 0 5px;
}

.quickfire-button > button {
    cursor: pointer;
    display: inline-block;
    height: 100%;
    width: 100%;
    appearance: none;
    border: 2px solid var(--stone-800);
    border-radius: 0.25rem;
    background-color: var(--yellow-400);
    outline: 2px solid transparent;
    outline-offset: 2px;
    cursor: pointer;
    transition: background-color 0.2s;
    padding: 0;
    position: relative;
}

.quickfire-button > button:hover {
    background-color: var(--yellow-300);
}

.quickfire-button > button:checked {
    background-color: var(--stone-800);
    border-color: var(--stone-800);
}

.quickfire-button > button:checked:hover {
    background-color: #44403c;
}

.quickfire-button > button:active {
    outline-color: var(--stone-800);
}

.quickfire-button > button:focus-visible {
    outline-color: var(--stone-800);
    outline-style: dashed;
}

.quickfire-button > span:nth-child(2) {
    position: absolute;
    inset: 3px;
    pointer-events: none;
    background-color: var(--yellow-400);
    border-bottom: 2px solid var(--black-25);
    transition: transform 75ms;
}

.quickfire-button > span:nth-child(2)::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        rgb(255 255 255 / 80%) 20%,
        transparent 20%
    ),
    radial-gradient(rgb(255 255 255 / 100%) 20%, transparent 20%);
    background-position:
        0 0,
        4px 4px;
    background-size: 8px 8px;
    mix-blend-mode: hard-light;
    opacity: 0.5;
    animation: dots 0.5s infinite linear;
}

.quickfire-button > span:nth-child(3) {
    position: absolute;
    pointer-events: none;
    inset: 0;
}

.quickfire-button > span:nth-child(3)::before {
    content: "";
    width: 0.375rem;
    height: 0.375rem;
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    background-color: var(--stone-800);
    border-radius: 0.125rem;
    box-shadow:
        calc(7rem - 0.375rem - 0.25rem - 0.25rem - 0.375rem) 0 var(--stone-800), 
        0 2.5rem var(--stone-800),
        calc(7rem - 0.375rem - 0.25rem - 0.25rem - 0.375rem) 2.5rem var(--stone-800);
}

.quickfire-button > span:nth-child(4) {
    position: absolute;
    pointer-events: none;
    inset: 0;
    filter: drop-shadow(0.1em 0.1em 0 rgba(0, 0, 0, 0.2));
    transition: all 75ms;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6em;
    color: var(--stone-800);
    line-height: 1.3;
    padding: 0.25rem;
    box-sizing: border-box;
}

.quickfire-button > span:nth-child(4)::before {
    content: "Quickfire";
}

.quickfire-button > span:nth-child(4)::after {
    content: "Q";
    width: auto;
    height: auto;
    position: static;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
}

.quickfire-button > span:nth-child(5) {
    position: absolute;
    background-color: var(--yellow-400);
    border: 2px solid var(--stone-800);
    border-radius: 0.75rem;
    pointer-events: none;
    z-index: -1;
    inset: 0.5rem calc( (7rem - (7rem - 1.5rem - 1.5rem) ) / 2 );
    box-shadow:
        7px 0 0 0 var(--stone-800),
        inset 0 2px 0 0 var(--yellow-300),
        inset 0 -2px 0 0 var(--yellow-500);
    transition: all 0ms cubic-bezier(0, 0.5, 0.4, 1);
}

.quickfire-button button:active ~ span:nth-child(5) {
    transform: translateY(-200%);
    transition-duration: 200ms;
    opacity: 0;
}

.quickfire-button button:hover ~ span:nth-child(4) {
    filter: drop-shadow(0.0625em 0.0625em 0 rgba(0, 0, 0, 0.2));
}

@keyframes dots {
    0% {
        background-position:
            0 0,
            4px 4px;
    }
    100% {
        background-position:
            8px 0,
            12px 4px;
    }
}

/* Progress Bars Animation */
.progress-bars {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 24px;
    gap: 3px;
    margin: 0 5px;
}

.progress-hub-btn .bar {
    width: 3px;
    height: 14px;
    background: rgba(255, 255, 255, 0.8);
    border-top-right-radius: 2px;
    border-top-left-radius: 2px;
    box-shadow: 0 0 8px inset rgba(52, 152, 219, 0.9);
    animation: progress-bar-animation 1.2s ease-in-out infinite;
    transform-origin: bottom center;
    transition: all 0.3s ease;
}

.progress-hub-btn .bar1 { animation-delay: 0.1s; }
.progress-hub-btn .bar2 { animation-delay: 0.2s; }
.progress-hub-btn .bar3 { animation-delay: 0.3s; }
.progress-hub-btn .bar4 { animation-delay: 0.4s; }
.progress-hub-btn .bar5 { animation-delay: 0.5s; }
.progress-hub-btn .bar6 { animation-delay: 0.6s; }
.progress-hub-btn .bar7 { animation-delay: 0.7s; }
.progress-hub-btn .bar8 { animation-delay: 0.8s; }

@keyframes progress-bar-animation {
    0% {
        transform: scaleY(0.1);
        background: rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scaleY(1);
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 0 15px inset rgba(52, 152, 219, 0.9);
    }
    100% {
        transform: scaleY(0.1);
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Progress Hub Button Styles */
.progress-hub-btn {
    position: relative;
    background: #1a237e;
    color: white;
    border: 2px solid #4a5dff;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 0 10px rgba(74, 93, 255, 0.3) inset;
    margin: 12px 0 8px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.checklist-btn {
    background: #15386c;
    color: white;
    border: 1px solid rgba(34, 211, 238, 0.5);
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 4px 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-hub-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #1a237e, #3949ab, #5c6bc0, #3949ab, #1a237e);
    background-size: 400% 400%;
    z-index: -1;
    animation: gradientBG 6s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-hub-btn:hover::before {
    opacity: 1;
}

.progress-hub-btn .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #00e5ff, #00b0ff);
    width: 0%;
    transition: width 1.5s ease-out;
    border-radius: 0 0 6px 6px;
}

.progress-hub-btn:hover .progress-bar {
    width: 100%;
    animation: progressPulse 3s ease-in-out infinite;
}

.progress-hub-btn .content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.progress-hub-btn .emoji {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.progress-hub-btn:hover .emoji {
    animation: bounce 0.8s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Planner Button Styles */
.planner-btn {
  position: relative;
  width: 180px;
  height: 50px;
  border: none;
  background-color: #005f99;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 8px 8px 0px rgb(12, 12, 12);
  transition-duration: .3s;
  margin: 4px 0;
  font-family: Whitney, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.planner-btn .Layer {
  width: 60px;
  position: absolute;
  left: -30px;
  transition-duration: .3s;
  animation: spin 5s linear infinite;
}

.planner-btn:hover {
  transform: translateY(5px);
  box-shadow: 3px 3px 0px black;
  transition-duration: .3s;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.planner-btn:hover .Layer {
  left: 0%;
  width: 100%;
  transition-duration: .3s;
}

.planner-btn .btn-text {
  color: white;
  font-weight: 600;
  font-size: 1.1em;
  position: absolute;
  z-index: 2;
  transition-duration: .1s;
  font-family: inherit;
}

.planner-btn:hover .btn-text {
  color: transparent;
  transition-duration: .3s;
}

/* SVG colors for planner button */
.planner-btn .cls-1 {
  fill: #242021;
}

.planner-btn .cls-2 {
  fill: #e82728;
}

.planner-btn .cls-3 {
  fill: #fefefe;
}

.planner-btn .cls-4 {
  fill: #e92728;
}

.planner-btn .cls-5 {
  fill: #005f99;
}

.planner-btn .cls-6 {
  fill: #fff;
}

/* Mock Tests Button */
.mock-test-btn {
    position: relative;
    padding: 8px 14px;
    border-radius: 6px;
    background: #000000 !important;
    color: #22d3ee;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    border: 1px solid rgba(34, 211, 238, 0.5) !important;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    margin-top: 12px;
    margin-bottom: 0;
}

.mock-test-btn:hover {
    border-color: #22d3ee;
    color: #67e8f9;
    box-shadow: 0 0 35px rgba(34, 211, 238, 0.45);
}

.mock-test-btn:active {
    transform: translateY(1px);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.45);
    scale: 0.98;
}

.mock-test-btn .btn-content {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 10;
}

.mock-test-btn svg {
    fill: currentColor;
    transition: all 0.3s ease;
}

.mock-test-btn .lightning {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.mock-test-btn .arrow {
    width: 14px;
    height: 14px;
    transition: all 0.3s ease;
}

.mock-test-btn:hover .lightning {
    transform: scale(1.25);
}

.mock-test-btn:hover .arrow {
    transform: rotate(-45deg) scale(1.5);
}

.mock-test-btn .glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.2), rgba(37, 99, 235, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(15px);
    border-radius: 4px;
}

.mock-test-btn .glow-strong {
    position: absolute;
    inset: -4px;
    background: linear-gradient(90deg, #22d3ee, #3b82f6);
    opacity: 0.2;
    transition: all 0.3s ease;
    filter: blur(20px);
    border-radius: 8px;
    z-index: -1;
}

.mock-test-btn:hover .glow {
    opacity: 1;
}

.mock-test-btn:hover .glow-strong {
    opacity: 0.3;
    filter: blur(30px);
}

/* Hide old navigation - replaced with bottom taskbar */
.navigation {
    display: none !important;
}

/* Bottom Taskbar Styles - Imported from main.css */
.control-box-taskbar {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) translateY(0) !important;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: linear-gradient(120deg, rgba(18,22,32,0.6) 0%, rgba(22,26,36,0.6) 100%);
    box-shadow: 0 -6px 20px 0 rgba(0,0,0,0.2);
    border-radius: 20px 20px 0 0;
    padding: 8px 16px;
    gap: 12px;
    width: auto;
    max-width: 90vw;
    min-height: 60px;
    backdrop-filter: blur(12px) saturate(1.1);
    opacity: 1;
    transition: transform 0.5s ease, opacity 0.5s ease;
    box-sizing: border-box;
}

.btn-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(42,50,70,0.4);
    border: 2px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    position: relative;
    margin: 0 4px;
}

.btn-icon:hover {
    background: rgba(80,130,255,0.2);
    border-color: rgba(168,213,255,0.6);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(80,130,255,0.25);
}

.btn-icon:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-icon .control-icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.btn-icon:hover .control-icon {
    transform: scale(1.1);
}

/* Active state for taskbar buttons */
.btn-icon.active {
    background: rgba(80,130,255,0.3);
    border-color: rgba(168,213,255,0.8);
    color: #fff;
    box-shadow: 0 0 20px rgba(80,130,255,0.4);
}

/* Center the buttons in the taskbar */
.control-box-taskbar {
    justify-content: center;
    gap: 16px; /* Increase gap for better spacing */
}

.taskbar-divider {
    width: 1.5px;
    height: 28px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    margin: 0 10px;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255,255,255,0.1);
}

/* Taskbar Dropdown Styles */
.taskbar-dropdown {
    position: relative;
    display: inline-block;
}

.taskbar-dropdown-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(120deg, rgba(18,22,32,0.95) 0%, rgba(22,26,36,0.95) 100%);
    backdrop-filter: blur(12px) saturate(1.1);
    border-radius: 12px;
    padding: 8px 0;
    margin-bottom: 8px;
    min-width: 200px;
    box-shadow: 0 -8px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 1001;
}

.taskbar-dropdown-menu.show {
    display: block;
}

.taskbar-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 8px;
}

.taskbar-dropdown-menu .dropdown-item:hover {
    background: rgba(80,130,255,0.2);
    color: #fff;
}

.taskbar-dropdown-menu .dropdown-item .exam-icon {
    margin-right: 12px;
    font-size: 16px;
}

.taskbar-dropdown-menu .dropdown-item .exam-name {
    font-size: 14px;
    font-weight: 500;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 8px 16px;
}

.custom-checklist-item {
    color: #a8d5ff !important;
}

.custom-checklist-item:hover {
    background: rgba(168,213,255,0.1) !important;
}

/* Stream Selection Styles */
.stream-selection-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
}

.stream-selection-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stream-selection-header p {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0;
}

.stream-tile {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    border: 2px solid transparent;
}

.stream-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.stream-tile-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stream-icon {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 60px;
}

.stream-info {
    flex: 1;
}

.stream-name {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 0.3rem 0;
}

.stream-subjects {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

.stream-arrow {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.stream-tile:hover .stream-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Coming Soon Badge Styles */
.coming-soon-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    font-size: 8px;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: auto;
    box-shadow: 0 1px 2px rgba(255, 107, 107, 0.3);
    animation: comingSoonPulse 2s ease-in-out infinite;
}

@keyframes comingSoonPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Disabled dropdown items */
.dropdown-item.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.dropdown-item.coming-soon:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.dropdown-item.coming-soon .exam-icon,
.dropdown-item.coming-soon .exam-name {
    opacity: 0.7;
}

/* Custom checklist disabled state */
.custom-checklist-item.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.custom-checklist-item.coming-soon:hover {
    background: rgba(168,213,255,0.05) !important;
    color: rgba(168,213,255,0.6) !important;
}

/* Responsive Design for Taskbar */
@media (max-width: 700px) {
    .control-box-taskbar {
        gap: 4px;
        padding: 3px 1vw 2px 1vw;
        min-height: 36px;
    }
    
    .btn-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
        border-radius: 6px;
        font-size: 13px;
    }
    
    .btn-icon .control-icon {
        width: 13px;
        height: 13px;
    }
    
    .taskbar-divider {
        height: 18px;
        margin: 0 5px 0 3px;
    }
    
    .taskbar-dropdown-menu {
        min-width: 160px;
        left: 0;
        transform: none;
    }
}

.content {
    padding: 20px 25px 25px 25px;
    padding-bottom: 100px; /* Add bottom padding to avoid taskbar overlap */
}

/* Subject Tiles Styles */
.subject-tiles-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
}

.subject-tile {
    width: 100%;
    min-height: 120px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}



.subject-tile:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.subject-tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.subject-tile-title {
    font-size: 2.1rem; /* Increased from 1.8rem */
    font-weight: 700; /* Increased from 600 */
    color: #ffffff;
    margin: 0;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px; /* Added subtle letter spacing */
    line-height: 1.2; /* Improved line height */
}

.subject-tile-emoji {
    font-size: 2rem;
    margin-left: 12px;
}

.subject-tile-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.subject-tile-progress-bar {
    width: 120px; /* Increased from 100px */
    height: 12px; /* Increased from 8px */
    background: rgba(255, 255, 255, 0.2); /* Increased opacity */
    border-radius: 6px; /* Increased radius */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Added border */
    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.2),
        inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.subject-tile-progress-inner {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A, #4CAF50); /* Enhanced gradient */
    border-radius: 6px; /* Match container */
    transition: width 0.4s ease; /* Slightly longer transition */
    width: 0%;
    position: relative;
    overflow: hidden;
}

.subject-tile-progress-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%);
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.subject-tile-progress-text {
    color: #ffffff; /* Full white instead of 0.9 opacity */
    font-size: 15px; /* Slightly larger */
    font-weight: 600; /* Bolder */
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.3); /* Added subtle glow */
    letter-spacing: 0.3px; /* Added letter spacing */
}

.subject-tile-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
    margin-top: 8px;
}

.subject-tile-loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal Styles */
.checklist-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.checklist-modal.show {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.checklist-modal.show .modal-overlay {
    opacity: 1;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    background: rgba(18, 22, 32, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.checklist-modal.show .modal-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.checklist-modal:not(.show) .modal-content {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.modal-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-body {
    padding: 16px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
    /* Hide scrollbar for better appearance */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.modal-body::-webkit-scrollbar {
    display: none; /* WebKit browsers */
}

/* Modal Checklist Styles */
.checklist-content {
    /* Remove redundant background and border to eliminate nested box effect */
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    /* Disable custom cursor in modal content */
    cursor: default;
}


/* Column Controls */
.column-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.column-controls-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.column-count {
    color: #a8d5ff;
    font-size: 14px;
    font-weight: 500;
}

.column-controls-buttons {
    display: flex;
    gap: 8px;
}

.column-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(60, 100, 170, 0.2);
    border: 1px solid rgba(120, 170, 255, 0.3);
    border-radius: 6px;
    color: #a8d5ff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.column-btn:hover:not(:disabled) {
    background: rgba(60, 100, 170, 0.3);
    border-color: rgba(120, 170, 255, 0.5);
    transform: translateY(-1px);
}

.column-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.add-column-btn {
    border-color: rgba(76, 175, 80, 0.3);
    color: #81c784;
}

.add-column-btn:hover:not(:disabled) {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.5);
}

.remove-column-btn {
    border-color: rgba(244, 67, 54, 0.3);
    color: #ef5350;
}

.remove-column-btn:hover:not(:disabled) {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.5);
}

.column-btn svg {
    width: 16px;
    height: 16px;
}

/* Chapter Completion Styles */
.chapter-complete {
    background: rgba(76, 175, 80, 0.1) !important;
    border-left: 4px solid #4caf50 !important;
}

.chapter-complete td {
    color: #a5d6a7 !important;
}

/* Editable Header Styles */
.editable-header {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.editable-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.header-text {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edit-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
}

.editable-header:hover .edit-header-btn {
    opacity: 1;
}

.edit-header-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
}

.edit-header-btn svg {
    width: 12px;
    height: 12px;
}

/* Header Input Styles */
.header-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(120, 170, 255, 0.6);
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    outline: none;
    transition: all 0.2s ease;
}

.header-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(120, 170, 255, 0.8);
    box-shadow: 0 0 0 2px rgba(120, 170, 255, 0.2);
}

.header-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-transform: none;
    font-weight: 400;
}

/* Editing State */
.editable-header.editing {
    background: rgba(120, 170, 255, 0.1);
    border: 1px solid rgba(120, 170, 255, 0.3);
}

.editable-header.editing .header-content {
    border: 1px solid rgba(120, 170, 255, 0.4);
    border-radius: 4px;
    padding: 4px;
}

.checklist-content * {
    cursor: default;
}

.checklist-content input[type="checkbox"],
.checklist-content input[type="date"],
.checklist-content .checkbox {
    cursor: pointer;
}

/* Test Section Table Styles */
#testTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden;
}

#testTable th, #testTable td {
    padding: 16px;
    text-align: left;
    vertical-align: middle;
    font-size: 14px;
    border: none;
}

#testTable th {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
    font-size: 14px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#testTable td {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}


/* Selected test row styling - subtle light blue highlight */
#testTable tr.selected td {
    background: rgba(173, 216, 230, 0.15);
    border-bottom: 1px solid rgba(173, 216, 230, 0.2);
}


/* Test Section Input Fields */
#testTable input[type="text"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 14px;
    width: 100%;
    transition: all 0.2s ease;
}

#testTable input[type="text"]:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(80, 130, 255, 0.6);
    box-shadow: 0 0 0 2px rgba(80, 130, 255, 0.2);
    outline: none;
}

#testTable input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Test Section Buttons */
#testTable .button {
    background: rgba(80, 130, 255, 0.3);
    border: 1px solid rgba(80, 130, 255, 0.4);
    border-radius: 8px;
    color: #ffffff;
    padding: 8px 16px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    text-transform: uppercase;
    font-weight: 500;
}

#testTable .button:hover {
    background: rgba(80, 130, 255, 0.4);
    border-color: rgba(80, 130, 255, 0.5);
}

/* Analysis Buttons */
.analysis-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    margin: 0 2px;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.analysis-btn.green { background: rgba(76, 175, 80, 0.3); color: #4CAF50; }
.analysis-btn.orange { background: rgba(255, 152, 0, 0.3); color: #FF9800; }
.analysis-btn.red { background: rgba(244, 67, 54, 0.3); color: #F44336; }
.analysis-btn.purple { background: rgba(156, 39, 176, 0.3); color: #9C27B0; }

.analysis-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.analysis-btn:active {
    transform: scale(0.95);
}

/* Test Notes Modal */
.test-notes-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.test-notes-modal::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.test-notes-modal {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.test-notes-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.test-notes-modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    box-sizing: border-box;
}

/* Custom scrollbar for modal content */
.test-notes-modal-content::-webkit-scrollbar {
    width: 8px;
}

.test-notes-modal-content::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
}

.test-notes-modal-content::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.3);
    border-radius: 10px;
}

.test-notes-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 165, 250, 0.5);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.test-notes-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid rgba(148, 163, 184, 0.1);
    background: rgba(30, 41, 59, 0.5);
}

.test-notes-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.test-notes-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.test-notes-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: rotate(90deg);
}

.test-notes-modal-body {
    padding: 25px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.test-notes-section {
    margin-bottom: 30px;
}

.test-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.test-notes-section h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #e2e8f0;
}

.add-question-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-question-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.questions-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    box-sizing: border-box;
}

/* Custom scrollbar for questions list */
.questions-list-container::-webkit-scrollbar {
    width: 6px;
}

.questions-list-container::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 10px;
}

.questions-list-container::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.3);
    border-radius: 10px;
}

.questions-list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 165, 250, 0.5);
}

.question-item {
    background: rgba(30, 41, 59, 0.6);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.question-item:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateX(5px);
}

.question-item-name {
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 5px;
    font-size: 1rem;
}

.question-item-preview {
    color: #94a3b8;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty-questions {
    text-align: center;
    padding: 40px;
    color: #64748b;
    font-style: italic;
}

.general-notes-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.general-notes-textarea:focus {
    outline: none;
    border-color: #60a5fa;
    background: rgba(15, 23, 42, 0.8);
}

.save-notes-btn {
    margin-top: 10px;
    padding: 10px 25px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-notes-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

/* Question Edit Modal */
.question-edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10001;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

/* Hide scrollbar */
.question-edit-modal::-webkit-scrollbar {
    display: none;
}

.question-edit-modal {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.question-edit-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-edit-modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    box-sizing: border-box;
    overflow: hidden;
}

.question-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid rgba(148, 163, 184, 0.1);
    background: rgba(30, 41, 59, 0.5);
}

.question-name-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    padding: 10px 15px;
    color: #e2e8f0;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.question-name-input:focus {
    outline: none;
    border-color: #60a5fa;
    background: rgba(15, 23, 42, 0.8);
}

.question-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-left: 15px;
}

.question-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: rotate(90deg);
}

.question-edit-body {
    padding: 25px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.question-textarea {
    width: 100%;
    min-height: 250px;
    padding: 15px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    line-height: 1.6;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Custom scrollbar for textarea */
.question-textarea::-webkit-scrollbar {
    width: 6px;
}

.question-textarea::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 10px;
}

.question-textarea::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.3);
    border-radius: 10px;
}

.question-textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 165, 250, 0.5);
}

.question-textarea:focus {
    outline: none;
    border-color: #60a5fa;
    background: rgba(15, 23, 42, 0.8);
}

.question-edit-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 25px;
    border-top: 2px solid rgba(148, 163, 184, 0.1);
    background: rgba(30, 41, 59, 0.5);
}

.delete-question-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-question-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.save-question-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-question-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Delete Button */
.delete-btn {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 6px;
    color: #F44336;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.delete-btn:hover {
    background: rgba(244, 67, 54, 0.3);
    border-color: rgba(244, 67, 54, 0.5);
}

.modal-checklist-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.modal-checklist-table th,
.modal-checklist-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-checklist-table th {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-checklist-table td {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

/* Modal Checkbox and Date Input Styles */
.modal-checklist-table .checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-checklist-table .checkbox {
    width: 26px;
    height: 26px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.2s ease;
}

.modal-checklist-table .checkbox:checked {
    background: #4CAF50;
    border-color: #4CAF50;
}

.modal-checklist-table .checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

.modal-checklist-table .checkbox:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.modal-checklist-table .checkbox:checked:hover {
    background: #45a049;
    border-color: #45a049;
}




.modal-checklist-table .date-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}

.modal-checklist-table .date-input:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.modal-checklist-table .date-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(80, 130, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .subject-tiles-container {
        padding: 16px;
    }
    
    .subject-tile {
        min-height: 100px;
        padding: 20px;
    }
    
    .subject-tile-title {
        font-size: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px 24px;
    }
    
    .modal-body {
        padding: 24px;
    }
}

.page {
    display: none;
    animation: fadeIn 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.page.active {
    display: block;
}

/* Simple page title styling */
.page-title {
    color: #ffffff;
    text-align: center;
    margin: 20px 0;
    font-size: 2rem;
    font-weight: 600;
}

/* Section icon styling */
.section-icon {
    margin-left: 12px;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.section-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* Special styling for checklist icon */
.checklist-icon {
    filter: drop-shadow(0 0 10px rgba(0, 249, 255, 0.6)) drop-shadow(0 0 20px rgba(0, 102, 255, 0.4));
    animation: checklistGlow 3s ease-in-out infinite alternate;
}

.checklist-icon:hover {
    filter: drop-shadow(0 0 15px rgba(0, 249, 255, 0.8)) drop-shadow(0 0 30px rgba(0, 102, 255, 0.6));
    animation: checklistGlow 1.5s ease-in-out infinite alternate;
}

@keyframes checklistGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(0, 249, 255, 0.6)) drop-shadow(0 0 20px rgba(0, 102, 255, 0.4));
    }
    100% {
        filter: drop-shadow(0 0 15px rgba(0, 249, 255, 0.8)) drop-shadow(0 0 25px rgba(0, 102, 255, 0.6)) drop-shadow(0 0 35px rgba(255, 239, 0, 0.3));
    }
}

.card {
    background-color: #252525;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    transition: transform 0.15s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid #333;
}

/* Removed hover effects for static appearance */
.card {
    /* Keep the original styles without hover effects */
    transition: none;
}





.test-section.card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.test-section.card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #4d4d4d;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.card-header h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.5rem; /* Reduced */
    font-weight: 600;
}

.card-header .emoji {
    margin-left: 8px;
    font-size: 1em;
}











@keyframes scaleUp {
    from { transform: scale(0.5); }
    to { transform: scale(1); }
}

input[type="text"] {
    width: calc(100% - 30px);
    padding: 12px 15px;
    background-color: #3a3a3a;
    border: none;
    border-radius: 6px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    transition: box-shadow 0.2s ease-in-out;
    outline: none;
}

input[type="text"]:focus {
    box-shadow: 0 0 6px var(--primary-orange);
}

/* Test Styles */
.badges {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badges img {
    height: 70px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.badges img:hover {
    opacity: 0.8;
}

.badges img.earned {
    opacity: 1;
}

.button {
    background-color: var(--primary-orange);
    color: var(--text-dark);
    border: none;
    padding: 14px 30px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.15s ease-in-out, transform 0.1s ease-in-out, box-shadow 0.15s ease-in-out;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    outline: none;
}

.button:hover {
    background-color: #ffb300;
    transform: scale(1.06);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

.button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Add Test Button */
.add-test-btn {
    padding: 10px 20px; /* Smaller padding */
    font-size: 1rem; /* Smaller font */
    white-space: nowrap; /* Prevent text wrapping */
}

/* View File Button */
.view-file-btn {
    padding: 8px 15px; /* Even smaller padding */
    font-size: 0.9rem; /* Even smaller font */
     white-space: nowrap; /* Prevent text wrapping */
}

/* Timer Styles */
.timer-card {
    text-align: center;
}

/* Time selector styles moved to main.css to avoid duplication */

.display {
    font-size: 4.5rem;
    font-weight: bold;
    color: var(--primary-orange);
    margin-bottom: 25px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    animation: pulseColor 5s infinite alternate;
}

@keyframes pulseColor {
    0% { color: var(--primary-orange); }
    20% { color: #ffc107; }
    40% { color: var(--secondary-teal); }
    60% { color: #26a69a; }
    80% { color: #00bcd4; }
    100% { color: var(--primary-orange); }
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.star-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    animation: fadeIn 1s ease-out;
}

.star {
    height: 35px;
    opacity: 0.4;
    transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.star.active {
    opacity: 1;
    transform: scale(1.2);
    animation: jiggle 0.5s ease-in-out;
}

@keyframes jiggle {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.star.star-big {
    height: 45px;
}

/* Enhanced Question Timer Styles with Glass Morphism */
.q-timer-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.q-timer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 255, 255, 0.8) 20%,
        rgba(255, 193, 7, 0.8) 50%,
        rgba(255, 87, 34, 0.8) 80%,
        transparent 100%);
    animation: timerGlow 3s ease-in-out infinite;
}

@keyframes timerGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

.timer-display {
    font-size: 6rem;
    font-weight: bold;
    color: var(--secondary-teal);
    margin-bottom: 25px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    animation: blinkColor 1s infinite alternate;
    background: linear-gradient(45deg,
        var(--secondary-teal),
        #00bcd4,
        #4dd0e1,
        var(--secondary-teal));
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: timerGradient 2s ease-in-out infinite, blinkColor 1s infinite alternate;
}

@keyframes timerGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes blinkColor {
    from {
        filter: brightness(1) drop-shadow(0 0 10px rgba(0, 188, 212, 0.5));
    }
    to {
        filter: brightness(1.1) drop-shadow(0 0 15px rgba(0, 188, 212, 0.8));
    }
}

#q-timer.negative {
    background: linear-gradient(45deg,
        #ff5277,
        #ff6b6b,
        #ff8a80,
        #ff5277);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: timerGradient 1s ease-in-out infinite, pulseNegative 1s infinite;
}

@keyframes pulseNegative {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 82, 119, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(255, 82, 119, 0.8));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 82, 119, 0.5));
    }
}

#points {
    font-size: 1.7rem;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: inline-block;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#points:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced Controls */
.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.controls button {
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    min-width: 100px;
}

.controls button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    transition: left 0.5s ease;
}

.controls button:hover::before {
    left: 100%;
}

.controls button:nth-child(1) { /* Start */
    background: linear-gradient(135deg,
        rgba(76, 175, 80, 0.8),
        rgba(139, 195, 74, 0.8));
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.controls button:nth-child(1):hover {
    background: linear-gradient(135deg,
        rgba(76, 175, 80, 0.9),
        rgba(139, 195, 74, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.controls button:nth-child(2) { /* Pause */
    background: linear-gradient(135deg,
        rgba(255, 152, 0, 0.8),
        rgba(255, 193, 7, 0.8));
    border: 1px solid rgba(255, 152, 0, 0.3);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.controls button:nth-child(2):hover {
    background: linear-gradient(135deg,
        rgba(255, 152, 0, 0.9),
        rgba(255, 193, 7, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

.controls button:nth-child(3) { /* Reset */
    background: linear-gradient(135deg,
        rgba(244, 67, 54, 0.8),
        rgba(229, 57, 53, 0.8));
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.controls button:nth-child(3):hover {
    background: linear-gradient(135deg,
        rgba(244, 67, 54, 0.9),
        rgba(229, 57, 53, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4);
}

.controls button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.controls button:disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Enhanced Instruction Text */
.q-timer-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-top: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    font-weight: 500;
}

/* Quickfire Page Background Enhancement */
#quickfire-page {
    background: radial-gradient(circle at center,
        rgba(255, 193, 7, 0.05) 0%,
        rgba(255, 87, 34, 0.03) 50%,
        transparent 70%);
    position: relative;
}

#quickfire-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="quickfirePattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,193,7,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23quickfirePattern)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

/* Mobile Enhancements for Quickfire */
@media (max-width: 480px) {
    .timer-display {
        font-size: 4.5rem;
        margin-bottom: 20px;
    }

    .controls {
        gap: 12px;
    }

    .controls button {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-width: 80px;
    }

    #points {
        font-size: 1.4rem;
        padding: 8px 16px;
    }

    .q-timer-card p {
        font-size: 0.9rem;
        margin-top: 20px;
        padding: 12px;
    }
}

/* Progress Styles */
.progress-chart-card {
    background-color: #252525;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    border: 1px solid #333;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 25px;
    color: #aaa;
    font-size: 0.95rem;
    border-top: 1px solid #444;
    margin-top: 40px;
}

/* ============================================
   MOBILE RESPONSIVE DESIGN
   ============================================ */

/* Tablet Styles (768px and below) */
@media (max-width: 768px) {
    .app-container {
        width: 100%;
        margin: 5px auto;
        padding: 0 10px;
    }

    .app-header h1 {
        font-size: 2.2rem;
        padding: 0 10px;
    }

    /* Test Table Mobile Optimization */
    #testTable {
        font-size: 13px;
        border-radius: 8px;
    }

    #testTable th, #testTable td {
        padding: 12px 8px;
        vertical-align: middle;
    }

    #testTable th {
        font-size: 12px;
        padding: 12px 6px;
    }

    /* Make table horizontally scrollable on small screens */
    .test-section.card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Improve touch targets */
    .analysis-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin: 0 1px;
    }

    .delete-btn {
        padding: 10px 12px;
        font-size: 14px;
    }

    /* File input improvements */
    .file-path-input {
        width: 150px;
        font-size: 13px;
        padding: 8px 10px;
    }

    .view-file-button {
        padding: 8px 12px;
        font-size: 13px;
        margin-left: 10px;
    }

    /* Subject tiles */
    .subject-tile {
        min-height: 100px;
        padding: 16px;
    }

    .subject-tile-title {
        font-size: 1.4rem;
    }

    .subject-tile-description {
        font-size: 13px;
    }

    /* Badges */
    .badges {
        padding: 12px;
        gap: 12px;
    }

    .badges img {
        width: 50px;
        height: 50px;
    }
}

/* Mobile Styles (480px and below) */
@media (max-width: 480px) {
    .app-header h1 {
        font-size: 1.8rem;
        padding: 0 5px;
    }

    /* Taskbar Mobile Optimization */
    .control-box-taskbar {
        padding: 6px 12px;
        min-height: 56px;
        gap: 8px;
        border-radius: 16px 16px 0 0;
    }

    .btn-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        margin: 0 2px;
    }

    .btn-icon .control-icon {
        width: 28px;
        height: 28px;
    }

    .taskbar-divider {
        width: 1px;
        height: 24px;
        margin: 0 8px;
    }

    /* Test Table Mobile Optimization */
    #testTable {
        font-size: 12px;
    }

    #testTable th, #testTable td {
        padding: 8px 4px;
    }

    #testTable th {
        font-size: 11px;
        padding: 8px 4px;
    }

    /* Better touch targets for mobile */
    .test-checkbox-container {
        --size: 24px;
        width: var(--size);
        height: var(--size);
        margin: 0 auto;
    }

    .test-checkbox-container .checkmark {
        width: 100%;
        height: 100%;
    }

    .analysis-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin: 0 1px;
    }

    .delete-btn {
        padding: 8px 10px;
        font-size: 13px;
    }

    /* File input mobile optimization */
    .file-path-input {
        width: 120px;
        font-size: 12px;
        padding: 6px 8px;
        margin-right: 8px;
    }

    .view-file-button {
        padding: 6px 10px;
        font-size: 12px;
        margin-left: 8px;
    }

    /* Input fields */
    input[type="text"] {
        font-size: 14px;
        padding: 10px 12px;
    }

    /* Subject tiles mobile */
    .subject-tile {
        min-height: 90px;
        padding: 14px;
        margin-bottom: 16px;
    }

    .subject-tile-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .subject-tile-description {
        font-size: 12px;
        line-height: 1.4;
    }

    .subject-tile-progress {
        gap: 8px;
    }

    .subject-tile-progress-bar {
        width: 80px;
    }

    /* Badges mobile */
    .badges {
        padding: 10px;
        gap: 8px;
        margin-top: 15px;
    }

    .badges img {
        width: 45px;
        height: 45px;
    }

    /* Modal improvements for mobile */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 20px auto;
        max-height: 85vh;
    }

    .modal-header {
        padding: 20px 16px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 20px 16px;
        max-height: calc(85vh - 100px);
    }

    .dialog-content {
        width: 95%;
        max-width: 95%;
        padding: 20px;
    }

    .dialog-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .dialog-btn {
        width: 100%;
        padding: 12px 16px;
    }

    /* Content padding for mobile */
    .content {
        padding: 15px 10px 80px 10px; /* Extra bottom padding for taskbar */
    }

    /* Checklist modal table mobile */
    .modal-checklist-table {
        font-size: 12px;
    }

    .modal-checklist-table th,
    .modal-checklist-table td {
        padding: 10px 6px;
    }

    .modal-checklist-table th {
        font-size: 11px;
    }

    /* Column controls mobile */
    .column-controls {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }
    
    .column-controls-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .column-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .column-btn svg {
        width: 14px;
        height: 14px;
    }

    /* Editable headers mobile */

    .header-text {
        font-size: 12px;
    }

    .edit-header-btn {
        width: 18px;
        height: 18px;
    }

    .edit-header-btn svg {
        width: 10px;
        height: 10px;
    }

    .header-input {
        font-size: 12px;
        padding: 3px 6px;
    }

    /* Make checklist table horizontally scrollable on mobile */
    .checklist-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Progress chart mobile */
    .progress-chart-card {
        padding: 20px 15px;
    }

    /* Timer card mobile */
    .timer-card, .q-timer-card {
        text-align: center;
        padding: 20px 15px;
    }

    .display {
        font-size: 3rem;
    }

    .timer-display {
        font-size: 4rem;
    }

    /* Controls mobile */
    .controls {
        gap: 15px;
    }

    .controls button {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* Star container mobile */
    .star-container {
        gap: 12px;
        margin-top: 20px;
    }

    .star {
        height: 30px;
    }

    .star.star-big {
        height: 40px;
    }

    /* Footer mobile */
    .app-footer {
        padding: 20px 15px;
        font-size: 0.9rem;
        margin-top: 20px;
    }

    /* Taskbar dropdown mobile */
    .taskbar-dropdown-menu {
        min-width: 180px;
        left: 0;
        transform: none;
        margin-bottom: 4px;
    }

    .taskbar-dropdown-menu .dropdown-item {
        padding: 12px 16px;
        font-size: 13px;
    }

    .taskbar-dropdown-menu .exam-name {
        font-size: 13px;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    .app-header h1 {
        font-size: 1.6rem;
        letter-spacing: 0.3px;
    }

    /* Even smaller touch targets optimization */
    .btn-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .btn-icon .control-icon {
        width: 26px;
        height: 26px;
    }

    /* Test table extreme mobile */
    #testTable {
        font-size: 11px;
    }

    #testTable th, #testTable td {
        padding: 6px 3px;
    }

    #testTable th {
        font-size: 10px;
    }

    .file-path-input {
        width: 100px;
        font-size: 11px;
        padding: 5px 6px;
    }

    .view-file-button {
        padding: 5px 8px;
        font-size: 11px;
        margin-left: 5px;
    }

    .analysis-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .delete-btn {
        padding: 6px 8px;
        font-size: 12px;
    }

    /* Subject tiles extreme mobile */
    .subject-tile {
        min-height: 80px;
        padding: 12px;
    }

    .subject-tile-title {
        font-size: 1.2rem;
    }

    .subject-tile-progress-bar {
        width: 70px;
    }

    /* Badges extreme mobile */
    .badges img {
        width: 40px;
        height: 40px;
    }

    /* Modal extreme mobile */
    .modal-content {
        width: 98%;
        margin: 10px auto;
    }

    .dialog-content {
        width: 98%;
        padding: 16px;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    /* Content extreme mobile */
    .content {
        padding: 10px 8px 75px 8px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .btn-icon:hover {
        background: rgba(42,50,70,0.4);
        border-color: rgba(255,255,255,0.08);
        color: rgba(255,255,255,0.9);
        transform: none;
        box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    }

    .btn-icon:hover .control-icon {
        transform: none;
    }

    .view-file-button.enabled:hover {
        background: #4299e1;
        transform: none;
        box-shadow: 0 2px 4px rgba(66, 153, 225, 0.3);
    }

    .analysis-btn:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .subject-tile:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: none;
    }

    .checklist-btn:hover::before {
        width: 0;
        height: 0;
    }

    /* Ensure proper active states for touch */
    .btn-icon:active {
        transform: scale(0.95);
        background: rgba(80,130,255,0.3);
    }

    .view-file-button.enabled:active {
        transform: scale(0.98);
        box-shadow: 0 1px 3px rgba(66, 153, 225, 0.3);
    }

    .analysis-btn:active {
        transform: scale(0.95);
    }

    .delete-btn:active {
        transform: scale(0.95);
    }
}

/* High DPI mobile devices */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp text on high DPI screens */
    body.theme {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Better shadows for high DPI */
    .btn-icon {
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }

    .view-file-button.enabled {
        box-shadow: 0 2px 6px rgba(66, 153, 225, 0.25);
    }
}

/* Landscape orientation mobile optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .control-box-taskbar {
        min-height: 48px;
        padding: 4px 8px;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    .btn-icon .control-icon {
        width: 24px;
        height: 24px;
    }

    .app-header h1 {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }

    .content {
        padding-bottom: 65px;
    }

    .modal-content {
        max-height: 90vh;
    }

    .modal-body {
        max-height: calc(90vh - 80px);
        padding: 16px;
    }
}

/* Background Sync Toggle Styles */
.background-sync-container {
    display: flex;
    align-items: center;
}

.background-sync-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.background-sync-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 240, 255, 0.1), rgba(255, 234, 0, 0.1));
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.background-sync-btn.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(255, 234, 0, 0.2));
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.background-sync-btn.active::before {
    opacity: 1;
}

.background-sync-btn.active .control-icon {
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.8));
}

.background-sync-btn:hover {
    transform: scale(1.05);
}

.background-sync-btn:active {
    transform: scale(0.95);
}

/* Animation for slideOut */
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}


