*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:Arial,sans-serif;
  min-height:100vh;
  position:relative;
  background:#bfc1c7;
}

body::before{
  content:"";
  position:fixed;
  inset:0;


  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;

  filter:blur(5px);

  transform:scale(1.05);

  z-index:-1;
}

/* AUTH */

.auth-container{
  width:100%;
  min-height:100vh;

  display:flex;
  justify-content:center;
  align-items:center;

  padding:20px;
}

.auth-box{
  width:420px;

  background:rgba(255,255,255,0.92);

  border-radius:28px;

  padding:34px;

  backdrop-filter:blur(10px);

  box-shadow:
  0 10px 30px rgba(0,0,0,0.15);
}

.auth-box h1{
  font-size:54px;
  margin-bottom:24px;
  color:#000;
}

.tabs{
  display:flex;
  gap:12px;
  margin-bottom:22px;
}

.tabs button{
  flex:1;
}

input{
  width:100%;
  height:52px;

  padding:14px;

  margin-bottom:14px;

  border-radius:12px;
  border:1px solid #999;

  font-size:16px;

  background:white;
}

button{
  width:100%;
  height:52px;

  border:none;
  border-radius:12px;

  background:#434344;
  color:white;

  font-size:16px;
  cursor:pointer;

  transition:0.2s;
}

button:hover{
  opacity:0.9;
}

#loginBtn{
  margin-top:4px;
}

#googleLoginBtn{
  margin-top:10px;
}

.error-text{
  color:red;
  font-size:13px;
  margin-top:-8px;
  margin-bottom:10px;
}

/* MAIN APP */

.container{
  max-width:1000px;
  margin:auto;
  padding:20px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;

  margin-bottom:20px;
}

#gallery{
  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(250px,1fr));

  gap:20px;

  margin-top:25px;
}

.card{
  background:white;

  border-radius:18px;

  overflow:hidden;

  padding:14px;

  box-shadow:
  0 6px 18px rgba(0,0,0,0.12);
}

.card img{
  width:100%;
  border-radius:12px;
}

/* MOBILE */

@media (max-width:600px){

  .auth-container{
    padding:18px;
  }

  .auth-box{
    width:100%;
    max-width:380px;

    padding:28px 18px;

    border-radius:22px;
  }

  .auth-box h1{
    font-size:34px;
    margin-bottom:20px;
  }

  .tabs{
    gap:8px;
  }

  input,
  button{
    height:48px;
    font-size:15px;
  }

  .topbar{
    flex-direction:column;
    gap:10px;
    align-items:flex-start;
  }

}

.dashboard{
  width:100%;
  min-height:100vh;
  padding:18px;
  background:white;
}

.header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:30px;
}

.header h1{
  font-size:32px;
  line-height:1.1;
  color:black;
}

#logoutBtn{
  width:auto;
  height:auto;
  padding:6px 12px;
  font-size:13px;
  border-radius:8px;
}

.folder-list{
  display:flex;
  flex-direction:column;
  gap:28px;
}

.folder-card{
  height:125px;
  background:#999;
  border-radius:28px;

  display:flex;
  justify-content:center;
  align-items:center;

  font-size:28px;
  font-weight:bold;
}

.mobile-dashboard{
  min-height:100vh;
  background:#f3efe7;
  padding:22px;
  position:relative;
}

.hero-bg{
  height:230px;
  background:#b8a07a;
  border-radius:0 0 34px 34px;
  margin:-22px -22px 0 -22px;
}

.profile-card{
  background:white;
  border-radius:24px;
  padding:24px;
  margin-top:-70px;
  box-shadow:0 10px 30px rgba(0,0,0,0.12);
}

.profile-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
}

.profile-top h1{
  font-size:30px;
  margin:0;
  color:#10213f;
}

.subject-text{
  margin-top:8px;
  color:#8b5e34;
  font-weight:bold;
  letter-spacing:1px;
}

#logoutBtn{
  width:auto;
  height:auto;
  padding:7px 12px;
  font-size:12px;
  border-radius:20px;
  background:#111;
}

.level-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin:26px 0;
}

.level-box{
  height:90px;
  border-radius:20px;
  background:#9b9b9b;
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-size:24px;
  font-weight:bold;
}

.session-track{
  display:flex;
  align-items:center;
  overflow-x:auto;
  padding:18px 0;
  margin:10px 0 22px;
}

.track-item{
  min-width:38px;
  height:38px;
  border-radius:50%;
  background:#cfd4dc;
  display:flex;
  justify-content:center;
  align-items:center;
  font-weight:bold;
}

.track-item.active{
  background:#16a34a;
  color:white;
}

.track-line{
  min-width:70px;
  height:6px;
  background:#cfd4dc;
}

.track-line.active{
  background:#16a34a;
}

.menu-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  border-top:1px solid #eee;
  padding-top:20px;
}

.menu-item{
  text-align:center;
  font-size:30px;
  color:#8b5e34;
}

.menu-item p{
  font-size:15px;
  margin-top:8px;
  color:#555;
}

.mobile-dashboard{
  min-height:100vh;
  background:#f5f7fb;
  padding:20px;
}

.user-header{
  background:linear-gradient(135deg,#2563eb,#7c3aed);
  color:white;
  border-radius:28px;
  padding:24px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  box-shadow:0 10px 28px rgba(37,99,235,0.25);
}

.user-header h1{
  font-size:28px;
  margin-bottom:8px;
}

.user-header p{
  font-size:14px;
  opacity:0.9;
  font-weight:bold;
}

#logoutBtn{
  width:auto;
  height:auto;
  padding:8px 14px;
  border-radius:20px;
  font-size:12px;
  background:white;
  color:#2563eb;
  font-weight:bold;
}

.progress-section{
  background:white;
  margin-top:20px;
  padding:20px;
  border-radius:24px;
  box-shadow:0 8px 22px rgba(0,0,0,0.08);
}

.progress-section h2{
  font-size:20px;
  margin-bottom:18px;
}

.progress-track{
  display:flex;
  align-items:center;
  overflow-x:auto;
  padding-bottom:6px;
}

.step{
  min-width:38px;
  height:38px;
  border-radius:50%;
  background:#d1d5db;
  display:flex;
  justify-content:center;
  align-items:center;
  font-weight:bold;
  color:white;
}

.step.done{
  background:#22c55e;
}

.step.active{
  background:#f59e0b;
}

.line{
  min-width:70px;
  height:6px;
  background:#d1d5db;
}

.line.done{
  background:#22c55e;
}

.level-list{
  display:flex;
  flex-direction:column;
  gap:18px;
  margin-top:22px;
}



.level-card span{
  font-size:42px;
}

.level-card h3{
  font-size:32px;
}

.level-list{
  display:flex;
  flex-direction:column;
  gap:18px;
  margin-top:22px;
}

.kelas-banner{
  width:100%;
  cursor:pointer;
  transition:0.2s;
}

.kelas-banner:hover{
  transform:scale(1.02);
}

.kelas-banner img{
  width:100%;
  display:block;
  border-radius:24px;
  box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

.subject-grid{
  background:white;
  margin-top:22px;
  padding:18px;
  border-radius:24px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  box-shadow:0 8px 22px rgba(0,0,0,0.08);
}

.subject-card{
  text-align:center;
}

.subject-card span{
  font-size:32px;
}

.subject-card p{
  margin-top:8px;
  font-weight:bold;
  color:#334155;
}

@media(max-width:600px){
  .mobile-dashboard{
    padding:16px;
  }

  .user-header h1{
    font-size:24px;
  }

  .level-card{
    height:105px;
  }

  .level-card h3{
    font-size:28px;
  }
}

.level-list{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:22px;
}

.level-list{
  display:flex;
  flex-direction:column;
  gap:22px;
  margin-top:25px;
}

.level-list{
  display:flex;
  flex-direction:column;
  gap:22px;
  margin-top:25px;
}

.class-card{
  position:relative;
  height:130px;
  border-radius:28px;
  overflow:visible;
  box-shadow:0 8px 18px rgba(0,0,0,.18);
}

.sd-class{
  background:#c61f1f;
}

.smp-class{
  background:#0b3b87;
}

.sma-class{
  background:#9a9a9a;
}

.student-img{
  position:absolute;
  left:-5px;
  bottom:0;

  height:150px;
  width:auto;

  z-index:5;

  filter:drop-shadow(
    0 8px 10px rgba(0,0,0,.25)
  );
}

.class-text{
  position:absolute;
  left:145px;
  top:50%;
  transform:translateY(-50%);
}

.class-text h2{
  margin:0;
  color:white;
  font-size:42px;
  font-weight:900;
  line-height:1;
}

.class-text p{
  margin-top:8px;
  color:white;
  font-size:22px;
}

.sd-class{
  background:#c61f1f;
}

.smp-class{
  background:#0b3b87;
}

.sma-class{
  background:#9a9a9a;
}

.student-img{
  position:absolute;
  left:-5px;
  bottom:0;

  height:150px;
  width:auto;

  z-index:5;

  filter:drop-shadow(
    0 8px 10px rgba(0,0,0,.25)
  );
}

.class-text{
  position:absolute;
  left:145px;
  top:50%;
  transform:translateY(-50%);
}

.class-text h2{
  margin:0;
  color:white;
  font-size:42px;
  font-weight:900;
  line-height:1;
}

.class-text p{
  margin-top:8px;
  color:white;
  font-size:22px;
}
.class-card img{
  height:155px;
  width:155px;
  object-fit:contain;

  margin-left:-18px;
  margin-top:-22px;

  z-index:10;

  filter: drop-shadow(
    0 8px 12px rgba(0,0,0,0.25)
  );
}

.sd-img{
  height:170px;
  width:170px;
}

.class-card h2{
  font-size:30px;
  line-height:1;
  margin:0;
  font-weight:900;
}

.class-card p{
  font-size:20px;
  margin-top:8px;
}

.sd-class{
  background:linear-gradient(120deg,#b91c1c,#ef4444,#7f1d1d);
  background-size:200% 200%;
  animation:gradientMove 4s ease infinite;
}

.smp-class{
  background:linear-gradient(120deg,#0b3b87,#2563eb,#001f54);
  background-size:200% 200%;
  animation:gradientMove 4s ease infinite;
}

.sma-class{
  background:linear-gradient(120deg,#6b7280,#cbd5e1,#374151);
  background-size:200% 200%;
  animation:gradientMove 4s ease infinite;
}

@media(max-width:600px){
  .class-card{
    height:96px;
    border-radius:18px;
  }

  .class-card img{
    height:96px;
    width:96px;
  }

  .class-card h2{
    font-size:24px;
  }

  .class-card p{
    font-size:16px;
  }
}

@media(max-width:600px){

  .class-card{
    height:105px;
  }

  .student-img{
    height:125px;
  }

  .class-text{
    left:115px;
  }

  .class-text h2{
    font-size:26px;
  }

  .class-text p{
    font-size:16px;
  }

}

@keyframes gradientMove{
  0%{
    background-position:0% 50%;
  }

  50%{
    background-position:100% 50%;
  }

  100%{
    background-position:0% 50%;
  }
}

.class-card::after{
  content:"";
  position:absolute;
  top:0;
  left:-80%;
  width:50%;
  height:100%;
  background:linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
  animation:shineMove 3s infinite;
  border-radius:28px;
}

@keyframes shineMove{
  0%{
    left:-80%;
  }

  100%{
    left:130%;
  }
}

.level-page{
  min-height:100vh;
  background:#fff8ef;
  padding:16px;
}

.level-navbar{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 0 20px;
}

.level-navbar button{
  width:42px;
  height:42px;
  border-radius:50%;
  background:white;
  color:#111;
  box-shadow:0 4px 12px rgba(0,0,0,.1);
}

.level-navbar h2{
  font-size:18px;
  color:#6b3f1d;
}

.level-hero{
  background:linear-gradient(135deg,#fff7ed,#ffedd5);
  border-radius:26px;
  padding:24px;
  margin-bottom:20px;
  box-shadow:0 8px 22px rgba(0,0,0,.08);
}

.level-hero h1{
  font-size:30px;
  color:#1f2937;
}

.level-hero p{
  margin-top:8px;
  font-size:16px;
  color:#555;
}

.subject-section{
  background:white;
  border-radius:26px;
  padding:18px;
  box-shadow:0 8px 22px rgba(0,0,0,.08);
}

.section-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
}

.section-title h2{
  font-size:22px;
}

.section-title button{
  width:auto;
  height:auto;
  padding:8px 14px;
  background:#f5e7d5;
  color:#6b3f1d;
  border-radius:20px;
  font-size:13px;
}

.subject-scroll{
  display:flex;
  gap:16px;
  overflow-x:auto;
  padding-bottom:8px;
}

.subject-box{
  min-width:170px;
  height:150px;
  border-radius:22px;
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.subject-box h3{
  font-size:18px;
  color:#1f2937;
}

.subject-icon{
  font-size:42px;
}

.math{
  background:#fff1db;
}

.physics{
  background:#eaf3ff;
}

.chemistry{
  background:#f1f8df;
}

.session-panel{
  background:white;
  border-radius:26px;
  padding:18px;
  margin-top:20px;
  box-shadow:0 8px 22px rgba(0,0,0,.08);
}

.session-panel h2{
  font-size:22px;
  margin-bottom:18px;
}

.journey-scroll{
  display:flex;
  align-items:center;
  overflow-x:auto;
  padding:10px 0;
}

.journey-step{
  min-width:42px;
  height:42px;
  border-radius:50%;
  background:#d1d5db;
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:bold;
}

.journey-step.done{
  background:#22c55e;
}

.journey-step.active{
  background:#f59e0b;
}

.journey-line{
  min-width:80px;
  height:7px;
  background:#d1d5db;
}

.journey-line.done{
  background:#22c55e;
}


.question-card{
  background:white;
  border-radius:26px;
  padding:18px;
  margin-top:20px;
  box-shadow:0 8px 22px rgba(0,0,0,.08);
}

.question-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}

.question-header h2{
  font-size:18px;
  color:#1f2937;
}

.question-header p{
  font-size:13px;
  color:#b91c1c;
  margin-top:5px;
}

.session-status{
  background:#dcfce7;
  color:#16a34a;
  padding:7px 12px;
  border-radius:20px;
  font-size:12px;
  font-weight:bold;
}

.question-box{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.question-box h3{
  font-size:16px;
  color:#111827;
  margin-bottom:14px;
}

.answer-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.answer-grid button{
  background:#fff7ed;
  color:#7c2d12;
  border:1px solid #fed7aa;
  height:44px;
  border-radius:14px;
  font-size:13px;
  font-weight:bold;
}

.question-image{
  width:100%;
  height:180px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:#f8fafc;
  border-radius:20px;

  overflow:hidden;
}

.question-image img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.upload-answer-box{
  border:2px dashed #f3c27b;
  border-radius:18px;
  padding:16px;
  margin-top:18px;
  text-align:center;
  background:#fffaf3;
}

.upload-answer-box h3{
  font-size:16px;
  color:#1f2937;
}

.upload-answer-box p{
  font-size:13px;
  color:#6b7280;
  margin:6px 0 14px;
}

.upload-buttons{
  display:flex;
  justify-content:center;
  gap:12px;
}

.upload-buttons label{
  background:white;
  color:#7c2d12;
  padding:12px 18px;
  border-radius:14px;
  font-size:14px;
  font-weight:bold;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
  cursor:pointer;
}

@media(max-width:600px){
  .question-box{
    grid-template-columns:1fr;
  }

  .question-image{
    height:90px;
  }

  .answer-grid{
    grid-template-columns:1fr;
  }

  .upload-buttons{
    flex-direction:column;
  }
}

.answer-preview{
  margin-top:16px;
}

.answer-preview img{
  width:100%;
  border-radius:16px;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}

.delete-answer-btn{
  margin-top:12px;
  background:#dc2626;
  color:white;
  border-radius:12px;
  height:44px;
}

#userRoleText{
  font-weight:700;
}

.admin-role{
  color:#fbbf24;
  text-transform:uppercase;
}

.admin-question-panel{
  background:white;
  border-radius:24px;
  padding:18px;
  margin-top:20px;
  box-shadow:0 8px 22px rgba(0,0,0,.08);
}

.admin-question-panel h2{
  margin-bottom:16px;
}

.admin-question-panel input,
.admin-question-panel select,
.admin-question-panel textarea{
  width:100%;
  margin-bottom:12px;
  padding:14px;
  border-radius:14px;
  border:1px solid #ccc;
  font-size:15px;
}

.admin-question-panel textarea{
  min-height:100px;
  resize:vertical;
}

.user-question-view{
  margin-top:20px;
}

.user-question-card{
  background:white;
  border-radius:24px;
  padding:20px;
  box-shadow:0 8px 22px rgba(0,0,0,.08);

  margin-bottom:40px;
  border-bottom:4px solid #f3f4f6;
}

.user-question-card img{
  width:100%;
  border-radius:18px;
  margin:14px 0;
}

.option-item{
  background:#fff7ed;
  border:1px solid #fed7aa;
  border-radius:14px;
  padding:12px;
  margin-top:10px;
  font-weight:bold;
}

.subject-box{
  cursor:pointer;
  transition:0.2s;
}

.subject-box:active{
  transform:scale(0.96);
}

.session-tabs{
  background:white;
  border-radius:24px;
  padding:18px;
  margin:24px 0 26px;

  display:flex;
  gap:14px;
  overflow-x:auto;

  box-shadow:0 8px 22px rgba(0,0,0,.08);
}

.session-tab{
  min-width:48px;
  height:48px;
  border-radius:50%;

  display:flex;
  justify-content:center;
  align-items:center;

  background:#e5e7eb;
  color:#334155;

  font-weight:800;
  font-size:18px;

  cursor:pointer;
}

.session-tab.active{
  background:#ddd599;
  color:white;
}

.option-admin-row{
  display:grid;
  grid-template-columns:1fr 45px;
  gap:10px;
  align-items:center;
}

.option-admin-row input[type="radio"]{
  width:24px;
  height:24px;
}

.option-item{
  cursor:pointer;
}

.correct-option{
  background:#dcfce7 !important;
  border-color:#22c55e !important;
  color:#166534 !important;
}

.answer-error{
  color:#dc2626;
  font-weight:bold;
  margin-top:12px;
}

.student-upload-box{
  border:2px dashed #c49a6c;
  border-radius:18px;
  padding:16px;
  margin-top:20px;
  text-align:center;
  background:#fffaf3;
}

.student-upload-box h3{
  margin-bottom:12px;
}

.student-upload-buttons{
  display:flex;
  justify-content:center;
  gap:26px;
}

.student-upload-buttons label{
  display:flex;
  flex-direction:column;
  align-items:center;
  cursor:pointer;
  font-weight:bold;
}

.student-upload-buttons label span{
  margin-top:6px;
  font-size:13px;
}

.student-answer-preview img{
  width:100%;
  margin-top:16px;
  border-radius:16px;
}

.preview-wrapper{
  position:relative;
  margin-top:15px;
}

.preview-wrapper img{
  width:100%;
  border-radius:16px;
}

.delete-preview-btn{
  position:absolute;
  top:10px;
  right:10px;

  width:36px;
  height:36px;

  border:none;
  border-radius:50%;

  background:#ef4444;
  color:white;

  font-size:18px;
  font-weight:bold;

  cursor:pointer;
}

.delete-question-btn{
  width:100%;
  margin-top:20px;

  background:#dc2626;
  color:white;

  border:none;
  border-radius:14px;

  padding:14px;

  font-weight:bold;
  font-size:15px;
}

.session-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.delete-session-btn{
  background:#dc2626;
  color:white;

  border:none;
  border-radius:12px;

  padding:8px 14px;

  font-size:13px;
  font-weight:bold;

  cursor:pointer;
}

.wrong-option{
  background:#fee2e2 !important;
  border-color:#ef4444 !important;
  color:#991b1b !important;
}