  :root {
    --blue-main: #2563eb;
    --blue-dark: #1e3a8a;
    --blue-soft: #eff6ff;
    --bg-main: #f5f7fb;
    --text-main: #1f2937;
    --radius: 12px;
  }


  /* =========================================================
      ===== LANDING PAGE ===== 
  ========================================================= */

  .landing-wrapper {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #0d47ff, #1ec8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-family: 'Segoe UI', sans-serif;
  }

  /* soft gradient overlay */
  .bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.15), transparent);
    z-index: 1;
  }

  /* floating circles */
  .float-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    animation: float 6s ease-in-out infinite;
    z-index: 2;
  }

  .circle1 {
    width: 180px;
    height: 180px;
    top: 15%;
    left: 10%;
    animation-duration: 7s;
  }

  .circle2 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    right: 15%;
    animation-duration: 5s;
  }

  .circle3 {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 50%;
    animation-duration: 6s;
  }

  /* content */

  .landing-content {
    position: relative;
    z-index: 5;
    animation: fadeUp 1.5s ease;
    padding: 40px;

  }

  .landing-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .landing-title span {
    color: #ffeb3b;
  }

  .landing-subtitle {
    margin: 15px 0 30px;
    font-size: 1.1rem;
    opacity: 0.9;
  }

  /* button */
  .btn-start {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 50px;
    background: white;
    color: #0d47ff;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }

  .btn-start:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  }

  /* ANIMATIONS */
  @keyframes float {
    0% {
      transform: translateY(0px);
    }

    50% {
      transform: translateY(-12px);
    }

    100% {
      transform: translateY(0px);
    }
  }

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

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



  /* =========================================================
    BASE & GLOBAL (AMAN UNTUK LARAVEL)
  ========================================================= */
  * {
    box-sizing: border-box;
  }

  html,
  body {
    height: auto;
  }

  body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: #eef2f7;
  }


  /* =========================================================
    LAYOUT KHUSUS MATERI GELOMBANG
  ========================================================= */
  .materi-gelombang {
    display: flex;
    min-height: 100vh;
    /* background-color: #f5f6fa; */
    background: #eef2f7;
    width: 100%;

  }

  .materi-gelombang .content {
    width: 100%;
    max-width: 100%;
    margin-left: 20px;
    padding: 40px 30px;
    min-height: calc(100vh - 60px);

    min-height: calc(100vh - 60px);

  }


  /* =========================================================
    SIDEBAR
  ========================================================= */
  .sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 240px;
    height: calc(100vh - 60px);
    background: #1e3a8a;
    color: white;
    overflow-y: auto;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.08);
  }

  .guru-layout .sidebar {
    width: 240px;
    background: #1e40af;
    color: white;
    position: fixed;
    top: 60px;
    left: 0;
    height: calc(100vh - 60px);
  }


  /* .sidebar-header {
    font-size: 18px;
    font-weight: bold;
    padding: 16px;
    border-bottom: 2px solid #1d4ed8;
  } */

  .menu {
    flex: 1;
    overflow-y: auto;
  }

  /* =========================================================
    MENU & SUBMENU (ACCORDION)
  ========================================================= */
  .menu-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .menu-item {
    padding: 12px 20px;
    border-radius: 8px;
    margin: 4px 10px;
    transition: all .2s ease;
  }

  .menu-item:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  /* .menu-item.active,
  .menu-item-open {
    background: rgba(255,255,255,0.18);
  } */


  .menu-item .arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
  }

  .submenu {
    display: none;
    flex-direction: column;
    background: #1e3a8a;
  }

  .submenu a {
    padding: 10px 30px;
    font-size: 14px;
    color: white;
    text-decoration: none;
    display: block;
  }

  .submenu a:hover {
    background: #1d4ed8;
  }

  .submenu a.active-link {
    background: #2563eb;
    font-weight: 600;
  }


  .submenu-item {
    padding: 10px 32px;
    font-size: 14px;
  }

  .submenu-item a {
    color: white;
    text-decoration: none;
    display: block;
  }

  .submenu-item a:hover {
    background-color: #1d4ed8;
  }

  .submenu-item a.active-link {
    background-color: #2563eb;
  }

  .sidebar a,
  .sidebar a:visited,
  .sidebar a:active {
    color: white;
    text-decoration: none;
  }


  /* =========================================================
    TIPOGRAFI
  ========================================================= */
  h1 {
    font-size: 22px;
    margin-bottom: 16px;
  }

  h2,
  h3 {
    margin-bottom: 12px;
  }

  p {
    font-size: 16px;
    line-height: 1.6;
  }

  ol,
  ul {
    margin: 8px 0;
    padding-left: 22px;
  }

  /* =========================================================
    BOX MATERI / HIGHLIGHT
  ========================================================= */
  .box {
    background-color: #dbeafe;
    border-left: 5px solid #2563eb;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;

    width: 100%;
  }

  .box p,
  .box ul,
  .box ol {
    margin-bottom: 14px;
  }

  .box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1e3a8a;
    font-size: 18px;
  }

  .box-diff {
    background: #f8fafc;
    /* abu terang */
    border-left: 6px solid #2563eb;
    padding: 16px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }

  .box-diff2 {
    background: #f8fafc;
    /* abu terang */
    border-left: 6px solid #ebb625;
    padding: 16px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }



  /* =========================================================
    RUMUS
  ========================================================= */
  .rumus-wrapper {
    text-align: center;
    margin: 12px 0;
  }

  .rumus {
    text-align: center;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    font-weight: 600;
    font-size: 18px;
  }

  .rumus-box {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 12px 0;
    color: #1e3a8a;
  }



  /* ===== FIX RUMUS CENTER ===== */
  /* #page-cepat .rumus {
    display: block;
    margin: 14px auto;
    text-align: center;
  }

  #page-cepat {
    max-width: 900px;
    margin: 0 auto;
  } */


  /* =========================================================
    GAMBAR & KANVAS
  ========================================================= */
  .image-container {
    text-align: center;
    margin: 24px 0;
  }

  .image-container img,
  .image-container canvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .caption {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
    font-style: italic;
    text-align: center;
  }

  /* =========================================================
    INTERAKTIF GELOMBANG (KANVAS / SLIDER)
  ========================================================= */
  .interaktif-box {
    background: #eef2ff;
    border-radius: 12px;
    padding: 20px;
    border: 2px dashed #4f46e5;
    margin-top: 24px;
  }

  .interaktif-box h2 {
    margin-top: 0;
    text-align: center;
    color: #1e40af;
  }

  .wave-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .control-panel {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
  }

  .control-panel label {
    font-weight: 600;
    color: #1e3a8a;
  }

  /* =========================================================
    TOMBOL
  ========================================================= */
  .next-btn {
    background-color: #2563eb;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 16px;
    font-weight: 600;
  }

  .next-btn:hover {
    background-color: #1e3a8a;
  }

  .btn {
    background: #2563eb;
    color: #fff;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
  }

  .btn.reset {
    background: #6b7280;
  }

  /* =========================================================
    MODAL / POPUP UMUM
  ========================================================= */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
  }

  .modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 28px;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4);
    text-align: center;
  }

  /* =========================================================
    RESPONSIVE
  ========================================================= */
  @media (max-width: 880px) {
    .materi-gelombang {
      display: block;
    }

    .sidebar {
      display: none;
    }

    .materi-gelombang .content {
      padding: 16px;
    }
  }

  .inner-nav-btn.active {
    background-color: #0f766e;
    color: #ffffff;
  }

  /* =========================
    TAB LATIHAN 
    ========================= */
  .latihan-tab-page {
    display: none;
  }

  .latihan-tab-page-active {
    display: block;
  }


  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.95rem;
  }

  table th {
    background: #dbeafe;
    color: #1e3a8a;
    padding: 8px;
    border: 1px solid #93c5fd;
    text-align: center;
  }

  table td {
    padding: 8px;
    border: 1px solid #e5e7eb;
  }

  td.center {
    text-align: center;
  }

  td.name {
    font-weight: 500;
  }

  .controls {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;

  }

  .btn.reset {
    background: #64748b;
  }

  .btn:hover {
    opacity: 0.9;
    transform: scale(1.05);

  }

  .hasil {
    font-weight: 700;
    margin-left: 8px;
  }

  tr.correct {
    background-color: #dcfce7;
  }

  tr.wrong {
    background-color: #fee2e2;
  }

  input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
  }

  .inner-nav-active {
    background-color: #0f766e;
    /* hijau */
    color: #ffffff;
    font-weight: 600;
  }

  /* ================= TAB HEADER ================= */
  .latihan-tabs-header {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    padding: 10px;
    background: #f1f5ff;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px #dbeafe;
  }

  .latihan-tab-btn {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    cursor: pointer;
    background: #3b82f6;
    color: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
  }

  .latihan-tab-btn:hover {
    filter: brightness(1.1);
  }

  .latihan-tab-active {
    background: #0f766e;
    color: #fff;
  }

  .latihan-tab-active {
    background: #166534;
    color: #ecfdf5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  }

  .latihan-tabs-wrapper {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
  }

  /* =========================================================
    ===== KUIS GELOMBANG =====
  ========================================================= */

  .quiz-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0d47ff, #1ec8ff);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 16px;
    animation: fadeUp 1s ease;
  }

  .quiz-main {
    width: 100%;
    max-width: 950px;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    position: relative;
  }

  /* ================= HEADER ================= */
  .quiz-main h1 {
    text-align: center;
    margin-bottom: 18px;
    color: #1e40af;
    font-size: 1.8rem;
  }

  .quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #2563eb, #1ec8ff);
    color: white;
    padding: 14px 20px;
    border-radius: 14px;
    margin-bottom: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }

  .quiz-header h2 {
    margin: 0;
    font-size: 1.1rem;
  }

  .timer {
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
  }

  /* ================= NAV SOAL ================= */
  .nav-soal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    gap: 8px;
    margin: 12px 0;
  }

  .nav-btn {
    border: none;
    border-radius: 10px;
    padding: 8px 0;
    font-weight: 700;
    cursor: pointer;
    background: #e5e7eb;
    color: #1e40af;
    transition: 0.2s;
  }

  .nav-btn:hover {
    transform: translateY(-2px);
  }

  /* status */
  .nav-notyet {
    background: #e5e7eb;
  }

  .nav-current {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 0 0 2px #93c5fd;
  }

  .nav-answered {
    background: #22c55e;
    color: white;
  }

  /* ================= LEGEND ================= */
  .legend {
    display: flex;
    gap: 14px;
    font-size: 0.85rem;
    margin-bottom: 10px;
  }

  .legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
  }

  .legend-notyet {
    background: #e5e7eb;
  }

  .legend-current {
    background: #2563eb;
  }

  .legend-answered {
    background: #22c55e;
  }

  /* ================= QUESTION ================= */
  .question-box {
    background: #f1f5ff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 14px;
    border-left: 6px solid #2563eb;
  }

  .question-text {
    font-weight: 600;
    margin-bottom: 12px;
    color: #1e3a8a;
  }

  .options-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .options-list li {
    background: white;
    margin-bottom: 8px;
    border-radius: 10px;
    border: 1px solid #c7d2fe;
    transition: 0.2s;
  }

  .options-list li:hover {
    background: #eff6ff;
  }

  .options-list label {
    display: block;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.95rem;
  }


  /* =========================
    OPSI JAWABAN KUIS
  ========================= */

  .options-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
  }

  .options-list li {
    margin-bottom: 14px;
  }

  .options-list label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 18px;
    /* perbesar teks */
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 10px;
    transition: 0.2s;
  }

  /* Hover */
  .options-list label:hover {
    background: #f0f6ff;
  }

  /* RADIO */
  .options-list input[type="radio"] {
    transform: scale(1.5);
    /* 🔥 membesarkan radio */
    cursor: pointer;
  }

  /* Saat dipilih */
  .options-list input[type="radio"]:checked+span {
    font-weight: bold;
  }

  /* Mobile lebih besar */
  @media (max-width: 600px) {
    .options-list label {
      font-size: 20px;
      padding: 14px;
    }

    .options-list input[type="radio"] {
      transform: scale(1.8);
    }
  }



  /* ================= BUTTON ================= */
  .quiz-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
  }

  .btn-nav {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    background: #93c5fd;
    color: #1e3a8a;
  }

  .btn-nav:hover {
    filter: brightness(1.1);
  }

  .btn-finish {
    background: linear-gradient(135deg, #ffeb3b, #facc15);
    color: #1e3a8a;
    padding: 10px 20px;
    border-radius: 14px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .btn-finish:hover {
    transform: translateY(-2px);
  }

  /* ================= MODAL KUIS ================= */
  .modal h3 {
    color: #1e40af;
    margin-bottom: 8px;
  }

  .modal ul {
    font-size: 0.9rem;
  }

  .modal button {
    margin-top: 12px;
  }

  .example-row {
    display: flex;
    gap: 24px;
    align-items: stretch;
    margin-top: 16px;
  }

  .example-text {
    flex: 1;
  }

  .example-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .example-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  
  /* Responsive */
  @media (max-width: 768px) {
    .example-row {
      flex-direction: column;
    }
  }

  .media-box {
    flex: 1 1 320px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .media-box img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    object-fit: contain;
  }

  .fase-divider {
    margin: 22px 0;
    border: none;
    border-top: 2px solid #6c6e70;
  }

  .fase-split {
    display: flex;
    gap: 30px;
  }

  .fase-left,
  .fase-right {
    flex: 1;
  }

  .fase-right {
    border-left: 2px solid #6c6e70;
    /* GARIS VERTIKAL */
    padding-left: 25px;
  }

  /* Responsive biar aman di HP */
  @media (max-width: 768px) {
    .fase-split {
      flex-direction: column;
    }

    .fase-right {
      border-left: none;
      border-top: 2px solid #e5e7eb;
      padding-left: 0;
      padding-top: 20px;
    }
  }

  /* ====================
    GATE POPUP OVERLAY
  ==================== */
  .gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .gate-box {
    background: #eaf2ff;
    padding: 24px 28px;
    border-radius: 16px;
    width: 380px;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: popGate .3s ease;
  }

  @keyframes popGate {
    from {
      transform: scale(.85);
      opacity: 0;
    }

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




  .nav-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  /* nav angka diberi ruang lebih */
  .nav-soal {
    flex: 1;
    /* INI KUNCI */
    display: flex;
    flex-wrap: nowrap;
    /* jangan turun */
    gap: 10px;
    overflow-x: auto;
    /* kalau layar kecil bisa scroll */
  }

  /* ukuran tombol */
  .nav-soal .nav-btn {
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 14px;
  }

  /* legend tetap kecil */
  .legend-vertical {
    width: 170px;
    flex-shrink: 0;
  }

  .legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
  }

  .legend-notyet {
    background: #cfd3da;
  }

  .legend-current {
    background: #2563eb;
  }

  .legend-answered {
    background: #22c55e;
  }

  @media(max-width:768px) {
    .nav-row {
      flex-direction: column;
    }

    .legend-vertical {
      flex-direction: row;
      justify-content: center;
    }
  }


  .login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
  }

  .login-box {
    width: 350px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .login-box h2 {
    text-align: center;
    margin-bottom: 10px;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .form-group input {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
  }

  .btn-login {
    width: 100%;
    padding: 10px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }



  /* ===== TOPBAR ===== */

  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;

    background: linear-gradient(90deg, #2563eb, #60a5fa);
    color: white;

    border-bottom: none;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 28px;

    z-index: 1000;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
  }


  .topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .user-name {
    font-weight: 600;
    /* color: #1e3a8a; */
    color: white;

  }

  .logout-btn {
    /* background: #ef4444; */
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    background: #dc2626;
    backdrop-filter: blur(4px);
  }

  .logout-btn:hover {
    background: #fd7070;
    /* background: rgba(255, 255, 255, 0.25); */

  }

  .quiz-tabs {
    display: flex;
    justify-content: center;
    /* tengah */
    gap: 12px;
    margin-bottom: 25px;
  }

  .quiz-tabs button {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    background: #3b82f6;
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
  }

  .quiz-tabs button:hover {
    transform: translateY(-1px);
  }

  .quiz-tabs button.active {
    background: #166534;
  }

  /* ======================
    FILTER KUIS
  ====================== */
  .quiz-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 30px 0;
  }

  .quiz-btn {
    padding: 10px 22px;
    border-radius: 8px;
    border: none;
    background: #3b82f6;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
  }

  .quiz-btn:hover {
    background: #2563eb;
  }

  .quiz-btn.active {
    background: #166534;
  }

  /* =========================
    LAYOUT GURU (AMAN)
  ========================= */

  .guru-layout {
    display: flex;
    min-height: 100vh;
    background: #f5f6fa;
  }

  /* ===== SIDEBAR ===== */
  .guru-sidebar {
    width: 250px;
    background: #1e40af;
    color: white;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
  }

  .guru-sidebar .sidebar-header {
    padding: 16px;
    font-weight: bold;
    border-bottom: 2px solid #1d4ed8;
  }

  .guru-sidebar a {
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    display: block;
  }

  .guru-sidebar a:hover {
    background: #1d4ed8;
  }

  .guru-sidebar a.active {
    background: #1e3a8a;
  }

  /* ===== CONTENT ===== */
  .guru-content {
    width: 100%;
    max-width: none;
    flex: 1;
    padding: 30px;
    overflow-x: auto;
  }

  /* ===== FILTER BUTTON ===== */
  .quiz-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 30px;
  }

  .quiz-btn {
    padding: 10px 22px;
    border-radius: 8px;
    border: none;
    background: #3b82f6;
    color: white;
    cursor: pointer;
  }

  .quiz-btn.active {
    background: #166534;
  }

  /* ===== TABLE ===== */
  .table-wrapper {
    width: 100%;
    overflow-x: auto;
  }

  .guru-layout table {
    width: 100%;
    border-collapse: collapse;
    background: white;
  }

  .guru-layout th {
    background: #dbeafe;
    color: #1e3a8a;
    padding: 10px;
    border: 1px solid #93c5fd;
  }

  .guru-layout td {
    padding: 10px;
    border: 1px solid #e5e7eb;
    text-align: center;
  }

  /* STATUS */
  .status-tuntas {
    color: green;
    font-weight: bold;
  }

  .status-belum {
    color: red;
  }

  /* =========================
    MODAL DETAIL GURU
  ========================= */

  #detailModal table {
    width: 100%;
    border-collapse: collapse;
  }

  #detailModal th {
    background: #dbeafe;
    color: #1e3a8a;
    font-weight: 600;
    text-align: center;
  }

  #detailModal td {
    text-align: center;
    vertical-align: middle;
  }

  /* tombol delete per percobaan */
  .btn-delete {
    background: #ef4444;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
  }

  .btn-delete:hover {
    background: #dc2626;
    transform: scale(1.05);
  }

  /* tombol tutup */
  #detailModal .btn {
    background: #2563eb;
    padding: 8px 16px;
  }

  #detailModal .btn:hover {
    background: #1d4ed8;
  }

  .btn-delete-all {
    background: #b91c1c;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 12px;
  }

  .btn-delete-all:hover {
    background: #991b1b;
  }

  .btn-export {
    background: #16a34a;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
  }

  .btn-export:hover {
    background: #15803d;
  }

  .quiz-filter-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }

  /* tombol export utama */
  .btn-export-main {
    background: #16a34a;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
  }

  /* dropdown */
  .export-dropdown {
    position: relative;
  }

  .export-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    overflow: hidden;
    z-index: 100;
  }

  .export-menu a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #333;
  }

  .export-menu a:hover {
    background: #f3f4f6;
  }

  .export-menu hr {
    border: none;
    border-top: 1px solid #eee;
  }

  /* ===== BUTTON ===== */
  .btn-add {
    background: #16a34a;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 15px;
  }

  .btn-add:hover {
    background: #15803d;
    transform: scale(1.05);
  }

  .btn-edit {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
  }

  .btn-delete {
    background: #ef4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
  }

  /* ===== MODAL ===== */
  .modal input {
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
  }

  .modal h3 {
    text-align: center;
    color: #1e3a8a;
  }

  .password-wrapper {
    position: relative;
  }

  .eye-btn {
    position: absolute;
    right: 10px;
    top: 9px;
    cursor: pointer;
  }

  /* ===== BUTTON ===== */
  .btn-add {
    background: #16a34a;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 15px;
  }

  .btn-add:hover {
    background: #15803d;
  }

  .btn-edit {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
  }

  .btn-delete {
    background: #ef4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
  }

  /* ===== MODAL ===== */
  .modal input {
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
  }

  .modal h3 {
    text-align: center;
    color: #1e3a8a;
  }

  .password-wrapper {
    position: relative;
  }

  .eye-btn {
    position: absolute;
    right: 10px;
    top: 9px;
    cursor: pointer;
  }

  .alert-box {
    text-align: center;
    max-width: 400px;
  }

  .alert-icon {
    font-size: 40px;
    margin-bottom: 10px;
  }

  .alert-success {
    color: #22c55e;
  }

  .alert-danger {
    color: #ef4444;
  }

  .btn-ok {
    background: #111827;
    color: white;
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
  }

  .alert-icon {
    font-size: 48px;
    color: #22c55e;
    /* hijau */
  }

  /* =========================
    LAYOUT GURU
  ========================= */

  .layout-wrapper {
    /* display: flex; */
    margin-top: 60px;
    /* tinggi topbar */
  }

  /* =========================
    TOPBAR
  ========================= */


  .sidebar-header {
    font-size: 18px;
    font-weight: bold;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

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

  .menu-title {
    padding: 15px 20px 5px;
    font-size: 13px;
    opacity: 0.7;
  }

  .main-content {
    margin-left: 240px;
    padding: 10px;
    background: #eef2f7;
    min-height: calc(100vh - 60px);
    width: calc(100% - 240px);

  }



  /* ===== ACCORDION GURU ===== */

  .menu-section {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .accordion-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }



  .arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
  }

  /* SUBMENU */
  .submenu {
    display: none;
    background-color: #1e3a8a;
  }

  .submenu.open {
    display: block;
  }

  .submenu-item {
    display: block;
    padding: 10px 30px;
    font-size: 14px;
    color: white;
    text-decoration: none;
  }

  .submenu-item:hover {
    background: #1d4ed8;
  }

  .submenu-item.active-link {
    background: #2563eb;
    font-weight: 600;
  }

  .menu-item.active,
  .menu-item-open,
  .submenu a.active-link {
    background: #2563eb;
    color: white;
    font-weight: 600;
  }

  .menu-item:hover,
  .submenu a:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .modal-lg {
    width: 700px;
    max-width: 90%;
  }

  .modal-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: bold;
  }

  .form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
  }

  .form-group label {
    margin-bottom: 5px;
    font-weight: 600;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
  }

  .form-group textarea {
    min-height: 80px;
    resize: vertical;
  }

  .option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .modal-footer {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
  }