/* ========================= */
/* GLOBAL */
/* ========================= */

*{

  margin:0;

  padding:0;

  box-sizing:border-box;

  font-family:Arial,sans-serif;

}


body{

  background:#f1f5f9;

  color:#111827;

  line-height:1.7;

}


/* ========================= */
/* DASHBOARD LAYOUT */
/* ========================= */

.dashboard-layout{

  display:flex;

  min-height:100vh;

}


/* ========================= */
/* LEFT SIDEBAR */
/* ========================= */

.sidebar{

  width:260px;

  background:#0f172a;

  color:white;

  padding:30px 20px;

  min-height:100vh;

  position:sticky;

  top:0;

}


.sidebar h2{

  text-align:center;

  margin-bottom:35px;

  font-size:30px;

}


.menu-item{

  display:block;

  padding:16px 18px;

  margin-bottom:12px;

  border-radius:12px;

  text-decoration:none;

  color:white;

  font-size:17px;

  transition:0.3s;

}


.menu-item:hover{

  background:#1e293b;

}


.menu-item.active{

  background:#2563eb;

}


/* ========================= */
/* MAIN CONTENT */
/* ========================= */

.dashboard-main{

  flex:1;

}


/* ========================= */
/* CONTAINER */
/* ========================= */

.container{

  width:92%;

  max-width:1400px;

  margin:40px auto;

}


/* ========================= */
/* TOP BAR */
/* ========================= */

.top-bar{

  display:flex;

  justify-content:space-between;

  align-items:center;

  margin-bottom:30px;

  gap:20px;

}


.top-bar h1{

  font-size:48px;

  color:#0f172a;

  font-weight:800;

}


.exam-subtitle{

  margin-top:8px;

  font-size:18px;

  color:#64748b;

}


/* ========================= */
/* EXAM LAYOUT */
/* ========================= */

.exam-layout{

  display:flex;

  gap:30px;

  align-items:flex-start;

}


/* ========================= */
/* MAIN AREA */
/* ========================= */

.exam-main{

  flex:3;

}


/* ========================= */
/* RIGHT SIDEBAR */
/* ========================= */

.exam-sidebar{

  flex:1;

  position:sticky;

  top:20px;

}


/* ========================= */
/* SIDEBAR CARD */
/* ========================= */

.sidebar-card{

  background:white;

  border-radius:18px;

  padding:22px;

  margin-bottom:22px;

  box-shadow:
    0 6px 20px rgba(0,0,0,0.08);

}


.sidebar-card h3{

  margin-bottom:18px;

  font-size:22px;

  color:#0f172a;

}


/* ========================= */
/* TIMER */
/* ========================= */

#timer{

  background:#2563eb;

  color:white;

  padding:16px 24px;

  border-radius:14px;

  font-size:28px;

  font-weight:bold;

  text-align:center;

  box-shadow:
    0 4px 15px rgba(37,99,235,0.25);

}


/* ========================= */
/* QUESTION PALETTE */
/* ========================= */

#questionPalette{

  display:grid;

  grid-template-columns:
    repeat(5,1fr);

  gap:12px;

}


.palette-btn{

  width:48px;

  height:48px;

  border:none;

  border-radius:12px;

  font-weight:bold;

  font-size:16px;

  cursor:pointer;

  background:#e2e8f0;

  color:#0f172a;

  transition:0.3s;

}


.palette-btn:hover{

  transform:translateY(-2px);

}


.palette-btn.active{

  background:#2563eb;

  color:white;

}


.palette-btn.answered{

  background:#16a34a;

  color:white;

}


/* ========================= */
/* QUESTION CARD */
/* ========================= */

.question-card{

  background:white;

  padding:40px;

  border-radius:20px;

  box-shadow:
    0 6px 20px rgba(0,0,0,0.08);

  margin-bottom:30px;

}


/* ========================= */
/* QUESTION TITLE */
/* ========================= */

.question-card h2{

  color:#0f172a;

  margin-bottom:25px;

  font-size:34px;

}


/* ========================= */
/* QUESTION TEXT */
/* ========================= */

.question-text{

  font-size:24px;

  font-weight:600;

  line-height:1.9;

  margin-bottom:35px;

  color:#111827;

}


/* ========================= */
/* OPTIONS */
/* ========================= */

.options-container{

  margin-top:30px;

}


.option{

  display:block;

  background:#f8fafc;

  border:2px solid #cbd5e1;

  border-radius:16px;

  padding:20px 22px;

  margin-bottom:20px;

  cursor:pointer;

  transition:0.3s;

  font-size:19px;

  line-height:1.8;

}


.option:hover{

  background:#eff6ff;

  border-color:#2563eb;

  transform:translateY(-2px);

}


.option input{

  margin-right:14px;

  transform:scale(1.3);

}


/* ========================= */
/* PREMIUM BOX */
/* ========================= */

.premium-box{

  background:#fff7ed;

  border:2px solid #fb923c;

  border-radius:18px;

  padding:32px;

  margin-bottom:35px;

}


.premium-box h2{

  color:#c2410c;

  margin-bottom:25px;

  font-size:34px;

}


.premium-box p{

  margin-bottom:20px;

  font-size:18px;

  line-height:1.9;

}


.premium-box strong{

  color:#7c2d12;

}


/* ========================= */
/* LOCKED PREMIUM BOX */
/* ========================= */

.locked{

  background:#f8fafc;

  border:2px dashed #94a3b8;

}


.locked h2{

  color:#0f172a;

}


.locked ul{

  margin-top:15px;

  margin-bottom:25px;

  padding-left:20px;

}


.locked li{

  margin-bottom:14px;

  font-size:17px;

}


/* ========================= */
/* BUTTONS */
/* ========================= */

button{

  background:#2563eb;

  color:white;

  border:none;

  padding:16px 26px;

  border-radius:14px;

  font-size:17px;

  font-weight:bold;

  cursor:pointer;

  transition:0.3s;

}


button:hover{

  background:#1d4ed8;

  transform:translateY(-2px);

}


/* ========================= */
/* PREMIUM BUTTON */
/* ========================= */

.premium-btn{

  background:#ea580c;

}


.premium-btn:hover{

  background:#c2410c;

}


/* ========================= */
/* BUTTON GROUP */
/* ========================= */

.button-group{

  display:flex;

  gap:15px;

  margin-top:20px;

}


.button-group button{

  flex:1;

}


/* ========================= */
/* REVIEW BUTTON */
/* ========================= */

#reviewBtn{

  background:#9333ea;

}


#reviewBtn:hover{

  background:#7e22ce;

}


/* ========================= */
/* PROGRESS */
/* ========================= */

.sidebar-card p{

  margin-bottom:12px;

  font-size:17px;

}


/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media(max-width:992px){

  .dashboard-layout{

    flex-direction:column;

  }

  .sidebar{

    width:100%;

    min-height:auto;

    position:relative;

  }

  .exam-layout{

    flex-direction:column;

  }

  .exam-sidebar{

    width:100%;

    position:relative;

    top:0;

  }

}


@media(max-width:768px){

  .container{

    width:95%;

  }

  .top-bar{

    flex-direction:column;

    align-items:flex-start;

  }

  .top-bar h1{

    font-size:34px;

  }

  #timer{

    font-size:22px;

    width:100%;

  }

  .question-card{

    padding:24px;

  }

  .question-text{

    font-size:19px;

  }

  .premium-box h2{

    font-size:26px;

  }

  .option{

    font-size:16px;

    padding:16px;

  }

  .button-group{

    flex-direction:column;

  }

  .button-group button{

    width:100%;

  }

  #questionPalette{

    grid-template-columns:
      repeat(4,1fr);

  }

}
