   @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
  /* Reset and Base Styles */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html, body {
      min-height: 100vh;
      font-family: 'Poppins', sans-serif;
      overflow-x: hidden;
      background: #e6f4f3;
    }

    /* Navbar Styles */
    .navbar {
      width: 100%;
      background-color: #0c3e3c;
      color: white;
      padding: 12px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 1000;
      position: fixed;
      top: 0;
      left: 0;
      min-height: 70px;
      backdrop-filter: blur(10px);
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .navbar .logo {
      flex-shrink: 0;
      z-index: 1001;
    }

    .navbar .logo img {
      height: 60px;
      width: auto;
      display: block;
      transition: all 0.3s ease;
    }

    /* Hamburger Menu */
    .navbar .hamburger {
      display: none;
      flex-direction: column;
      cursor: pointer;
      padding: 8px;
      border: 2px solid #64c5ba;
      border-radius: 8px;
      background: rgba(100, 197, 186, 0.1);
      transition: all 0.3s ease;
      z-index: 1001;
      width: 45px;
      height: 40px;
      justify-content: center;
      align-items: center;
      gap: 4px;
    }

    .navbar .hamburger:hover {
      background: rgba(100, 197, 186, 0.2);
      border-color: #7dd3d8;
      transform: scale(1.05);
    }

    .navbar .hamburger span {
      display: block;
      width: 22px;
      height: 3px;
      background-color: white;
      transition: all 0.3s ease;
      border-radius: 2px;
    }

    /* Navigation Links */
    .navbar .nav-links {
      list-style: none;
      display: flex;
      gap: 15px;
      margin: 0;
      padding: 0;
      align-items: center;
    }

    .navbar .nav-links li a {
      text-decoration: none;
      color: white;
      font-weight: 500;
      transition: all 0.3s ease;
      padding: 10px 15px;
      border-radius: 8px;
      display: block;
      white-space: nowrap;
      font-size: 14px;
    }

    .navbar .nav-links li a:hover {
      color: #64c5ba;
      background-color: rgba(100, 197, 186, 0.15);
      transform: translateY(-2px);
    }

    /* User Info Styles */
    #user-info-navbar {
      display: flex;
      align-items: center;
      gap: 10px;
      color: white;
      font-size: 14px;
    }

    #username-display {
      font-weight: 500;
      color: #64c5ba;
    }

    #logout-btn {
      color: white !important;
      font-size: 13px;
      padding: 8px 12px !important;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 6px;
      transition: all 0.3s ease;
      cursor: pointer;
      border: none;
    }

    #logout-btn:hover {
      background: rgba(255, 255, 255, 0.2);
      color: #64c5ba !important;
    }

    /* Sidebar Styles */
    .sidebar-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 1500;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }

    .sidebar-overlay.show {
      opacity: 1;
      visibility: visible;
    }

    .sidebar {
      position: fixed;
      top: 0;
      left: -280px;
      width: 280px;
      height: 100vh;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 251, 0.98) 100%);
      backdrop-filter: blur(20px);
      box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
      transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      z-index: 2000;
      display: flex;
      flex-direction: column;
      border-right: 1px solid rgba(34, 94, 90, 0.1);
    }

    .sidebar.show {
      left: 0;
    }

    .sidebar-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 25px;
      background: linear-gradient(135deg, #225e5a, #2d8f88);
      color: white;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .sidebar-heading {
      font-size: 18px;
      font-weight: 600;
      letter-spacing: 1.5px;
      margin: 0;
    }

    .sidebar-close {
      font-size: 28px;
      cursor: pointer;
      color: white;
      transition: all 0.3s ease;
      width: 35px;
      height: 35px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
    }

    .sidebar-close:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: rotate(90deg);
    }

    .sidebar-content {
      flex: 1;
      overflow-y: auto;
      padding: 20px 0;
    }

    .sidebar a {
      display: flex;
      align-items: center;
      padding: 15px 25px;
      color: #225e5a;
      text-decoration: none;
      font-size: 16px;
      font-weight: 500;
      transition: all 0.3s ease;
      position: relative;
      margin: 0;
    }

    .sidebar a::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 4px;
      background: #64c5ba;
      transform: scaleY(0);
      transition: transform 0.3s ease;
    }

    .sidebar a:hover {
      background: linear-gradient(90deg, rgba(100, 197, 186, 0.1), transparent);
      color: #0c3e3c;
      transform: translateX(8px);
    }

    .sidebar a:hover::before {
      transform: scaleY(1);
    }

    .sidebar-divider {
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(34, 94, 90, 0.15), transparent);
      margin: 5px 20px;
    }

    /* Dashboard Sidebar (Desktop) */
    .dashboard-sidebar {
      position: fixed;
      top: 70px;
      left: 0;
      width: 280px;
      height: calc(100vh - 70px);
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 251, 0.98) 100%);
      backdrop-filter: blur(20px);
      box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
      border-right: 1px solid rgba(34, 94, 90, 0.1);
      z-index: 900;
      overflow-y: auto;
      display: none;
    }

    .dashboard-sidebar.show {
      display: block;
    }

    .dashboard-menu {
      padding: 20px 0;
    }

    .dashboard-menu a {
      display: flex;
      align-items: center;
      padding: 15px 25px;
      color: #225e5a;
      text-decoration: none;
      font-size: 16px;
      font-weight: 500;
      transition: all 0.3s ease;
      position: relative;
    }

    .dashboard-menu a::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 4px;
      background: #64c5ba;
      transform: scaleY(0);
      transition: transform 0.3s ease;
    }

    .dashboard-menu a:hover, .dashboard-menu a.active {
      background: linear-gradient(90deg, rgba(100, 197, 186, 0.1), transparent);
      color: #0c3e3c;
      transform: translateX(8px);
    }

    .dashboard-menu a:hover::before, .dashboard-menu a.active::before {
      transform: scaleY(1);
    }

    .menu-icon {
      margin-right: 12px;
      width: 20px;
      height: 20px;
    }

    /* Main Content Area */
    .main-wrapper {
      min-height: 100vh;
      margin-top: 70px;
      transition: margin-left 0.3s ease;
      background: #e6f4f3;
    }

    .main-wrapper.dashboard-mode {
      margin-left: 280px;
    }

    /* Page Content */
    .page-content {
      padding: 40px 20px;
      max-width: 900px;
      margin: 0 auto;
    }

    /* Dashboard Welcome Style Header */
    .dashboard-welcome {
      background: linear-gradient(135deg, #225e5a, #2d8f88);
      color: white;
      padding: 40px;
      border-radius: 20px;
      margin-bottom: 40px;
      text-align: center;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .dashboard-welcome h1 {
      font-size: 2.5rem;
      margin-bottom: 15px;
      font-weight: 600;
    }

    .dashboard-welcome p {
      font-size: 1.2rem;
      opacity: 0.9;
    }

    /* User Info Section */
    #user-info {
      max-width: 600px;
      margin: 0 auto 30px;
      background: #ffffff;
      padding: 30px 25px;
      border-radius: 15px;
      box-shadow: 0 5px 20px rgba(90, 130, 126, 0.15);
      display: none;
    }

    #user-info.show {
      display: block;
    }

    #user-info h2 {
      text-align: center;
      margin-bottom: 20px;
      color: #0c3e3c;
      font-size: 1.8rem;
      font-weight: 600;
    }

    #user-info input {
      width: 100%;
      padding: 15px;
      margin: 10px 0;
      border-radius: 12px;
      border: 2px solid #e8f4f4;
      background-color: #f8fbfb;
      font-size: 16px;
      font-family: inherit;
      transition: all 0.3s ease;
    }

    #user-info input:focus {
      outline: none;
      border-color: #64c5ba;
      background-color: #ffffff;
      box-shadow: 0 0 0 3px rgba(100, 197, 186, 0.1);
    }

    #start-btn {
      width: 100%;
      background: linear-gradient(135deg, #225e5a, #2d8f88);
      color: white;
      border: none;
      padding: 15px;
      font-size: 16px;
      font-weight: 600;
      border-radius: 12px;
      cursor: pointer;
      margin-top: 20px;
      transition: all 0.3s ease;
    }

    #start-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(34, 94, 90, 0.3);
    }

    /* Quiz Container */
    #quiz-container {
      max-width: 600px;
      margin: 0 auto;
      padding: 30px;
      background: #ffffff;
      border-radius: 20px;
      box-shadow: 0 8px 25px rgba(90, 130, 126, 0.2);
      position: relative;
      display: none;
    }

    #quiz-container.show {
      display: block;
    }

    #quiz-container h1 {
      text-align: center;
      color: #0c3e3c;
      margin-bottom: 20px;
      font-size: 2rem;
      font-weight: 600;
    }

    /* Quiz Title Box */
    #quiz-title {
      background: linear-gradient(135deg, rgba(100, 197, 186, 0.1), rgba(125, 211, 216, 0.1));
      padding: 15px 20px;
      border-radius: 12px;
      text-align: center;
      font-size: 18px;
      font-weight: 600;
      color: #0c3e3c;
      margin-bottom: 25px;
      border: 2px solid #e8f4f4;
    }

    .quiz-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      padding-bottom: 15px;
      border-bottom: 2px solid #e8f4f4;
    }

    /* Question Number */
    #question-number {
      font-size: 20px;
      font-weight: 600;
      color: #0c3e3c;
      background: linear-gradient(135deg, #64c5ba, #7dd3d8);
      color: white;
      padding: 10px 20px;
      border-radius: 25px;
    }

    /* Timer Right - Circular */
    #timer {
      color: #0c3e3c;
      font-weight: 500;
      font-size: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    #timer::after {
      content: attr(data-time);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: #ffffff;
      border: 3px solid #64c5ba;
      font-weight: bold;
      color: #0c3e3c;
      box-shadow: 0 2px 10px rgba(100, 197, 186, 0.2);
    }

    /* Question Text */
    #question-text {
      background-color: #f8fbfb;
      padding: 20px;
      border: 2px solid #e8f4f4;
      border-radius: 12px;
      font-size: 18px;
      line-height: 1.6;
      margin-bottom: 25px;
      color: #0c3e3c;
    }

    /* Question Image */
    .question-image {
      max-width: 100%;
      max-height: 300px;
      border-radius: 12px;
      margin: 15px 0;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    /* Options List */
    #options-list {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    /* Option Buttons */
    .option-btn {
      width: 100%;
      background-color: #f8fbfb;
      border: 2px solid #e8f4f4;
      border-radius: 12px;
      padding: 15px 20px;
      font-size: 16px;
      font-family: inherit;
      text-align: left;
      cursor: pointer;
      transition: all 0.3s ease;
      word-wrap: break-word;
      white-space: normal;
      line-height: 1.4;
      position: relative;
    }

    .option-btn:hover:not(:disabled) {
      background-color: #e6f4f3;
      border-color: #64c5ba;
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(100, 197, 186, 0.2);
    }

    .option-btn.correct {
      background: linear-gradient(135deg, #d4edda, #c3e6cb) !important;
      border-color: #28a745 !important;
      color: #155724;
      font-weight: 600;
    }

    .option-btn.wrong {
      background: linear-gradient(135deg, #f8d7da, #f5c6cb) !important;
      border-color: #dc3545 !important;
      color: #721c24;
      font-weight: 600;
    }

    .option-btn:disabled {
      cursor: not-allowed;
      opacity: 0.8;
    }

    /* Next Button */
    #next-btn {
      background: linear-gradient(135deg, #225e5a, #2d8f88);
      color: white;
      border: none;
      padding: 15px 30px;
      font-size: 16px;
      font-weight: 600;
      border-radius: 12px;
      cursor: pointer;
      display: block;
      width: 100%;
      margin-top: 30px;
      transition: all 0.3s ease;
    }

    #next-btn:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(34, 94, 90, 0.3);
    }

    #next-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }

    /* Quiz Result */
    #quiz-result {
      display: none;
      max-width: 600px;
      margin: 0 auto;
      background: linear-gradient(135deg, #ffffff, #f8fbfb);
      border-radius: 20px;
      box-shadow: 0 8px 25px rgba(90, 130, 126, 0.2);
      padding: 40px 30px;
      text-align: center;
    }

    #quiz-result.show {
      display: block;
    }

    #quiz-result h2 {
      font-size: 2.5rem;
      color: #0c3e3c;
      margin-bottom: 15px;
      font-weight: 600;
    }

    #quiz-result .score-label {
      font-size: 1.3rem;
      font-weight: 500;
      color: #225e5a;
      margin-bottom: 15px;
    }

    #quiz-result #user-score {
      font-size: 3rem;
      font-weight: bold;
      color: #0c3e3c;
      background: linear-gradient(135deg, rgba(100, 197, 186, 0.2), rgba(125, 211, 216, 0.2));
      padding: 20px 30px;
      border-radius: 15px;
      margin: 20px auto;
      display: inline-block;
      box-shadow: 0 4px 15px rgba(100, 197, 186, 0.2);
      border: 2px solid #64c5ba;
    }

    .back-home-btn {
      background: linear-gradient(135deg, #225e5a, #2d8f88);
      color: white;
      border: none;
      padding: 15px 30px;
      font-size: 16px;
      font-weight: 600;
      border-radius: 12px;
      cursor: pointer;
      margin-top: 25px;
      transition: all 0.3s ease;
      text-decoration: none;
      display: inline-block;
    }

    .back-home-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(34, 94, 90, 0.3);
      color: white;
      text-decoration: none;
    }

    /* Custom Alert */
    .custom-alert {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: linear-gradient(135deg, #ffffff, #f8fbfb);
      border: 2px solid #64c5ba;
      border-radius: 15px;
      padding: 30px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      z-index: 10000;
      max-width: 400px;
      width: 90%;
      text-align: center;
      display: none;
    }

    .custom-alert.show {
      display: block;
    }

    .custom-alert h3 {
      color: #0c3e3c;
      margin-bottom: 15px;
      font-size: 1.3rem;
    }

    .custom-alert p {
      color: #225e5a;
      margin-bottom: 20px;
      line-height: 1.5;
    }

    .custom-alert button {
      background: linear-gradient(135deg, #225e5a, #2d8f88);
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 500;
      margin: 0 5px;
    }

    .alert-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 9999;
      display: none;
    }

    .alert-overlay.show {
      display: block;
    }

    /* Blink Animation */
    body.blink-page {
      animation: pageFlash 0.3s ease-in-out;
    }

    @keyframes pageFlash {
      0% { background-color: #e6faff; }
      100% { background-color: #e6f4f3; }
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      .hamburger {
        display: flex !important;
      }

      .desktop-only {
        display: none !important;
      }

      .navbar .nav-links {
        display: none !important;
      }

      .page-content {
        padding: 20px 15px;
      }

      #quiz-container,
      #user-info {
        padding: 20px;
        margin: 20px 15px;
      }

      .dashboard-welcome h1 {
        font-size: 2rem;
      }

      .dashboard-welcome {
        padding: 30px 20px;
      }

      .quiz-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }

      #timer {
        align-self: flex-end;
      }

      #timer::after {
        width: 40px;
        height: 40px;
        font-size: 13px;
      }

      #quiz-result #user-score {
        font-size: 2.5rem;
        padding: 15px 20px;
      }
    }

    @media (min-width: 769px) {
      .dashboard-sidebar {
        display: block !important;
      }

      .main-wrapper {
        margin-left: 280px;
      }

      .hamburger {
        display: none !important;
      }
    }