.exam-container{
  display:flex;
  min-height:100vh;
  background:#f5f7fb;
  font-family:Arial, Helvetica, sans-serif;
}

/* LEFT PANEL */

.left-panel{
  width:260px;
  background:white;
  border-right:1px solid #eee;
  padding:20px;
}

.panel-card h3{
  font-size:16px;
  margin-bottom:15px;
}

.question-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
}

.question-box-nav{
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:#eee;
  cursor:pointer;
  font-weight:bold;
  transition:0.2s;
}

/* Attempted */
.question-box-nav.answered{
  background:#f1c40f;
  color:white;
}

/* Correct */
.question-box-nav.correct{
  background:#2ecc71;
  color:white;
}

/* Wrong */
.question-box-nav.wrong{
  background:#e74c3c;
  color:white;
}

/* Active question */
.question-box-nav.active{
  border:2px solid #4CAF50;
  transform:scale(1.05);
}

/* RIGHT PANEL */

.right-panel{
  flex:1;
  padding:40px;
}

/* TOP BAR */

.top-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:30px;
}

.top-bar h2{
  font-size:22px;
  font-weight:600;
}

/* TIMER */

.timer{
  background:#e8f5ff;
  padding:10px 16px;
  border-radius:10px;
  font-weight:600;
}

.timer.danger{
  background:#ffe5e5;
  color:#d80000;
}

/* QUESTION CARD */

.question-card{
  background:white;
  padding:30px;
  border-radius:12px;
  box-shadow:0 5px 15px rgba(0,0,0,0.05);
}

.question-card h3{
  margin-bottom:20px;
}

/* OPTIONS */

.options-wrapper{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.option{
  display:flex;
  align-items:center;
  padding:14px;
  border-radius:8px;
  border:1px solid #ddd;
  cursor:pointer;
  transition:0.2s;
}

.option:hover{
  background:#f0f7ff;
}

.option.selected{
  border:2px solid #4CAF50;
  background:#eaf9ea;
}

.option.correct{
  background:#dff7df;
  border:2px solid #2e9c2e;
}

.option.wrong{
  background:#ffe3e3;
  border:2px solid #d10000;
}

/* Hide default radio */

.option input{
  display:none;
}

/* Custom radio */

.custom-radio{
  width:18px;
  height:18px;
  border-radius:50%;
  border:2px solid #999;
  margin-right:12px;
  position:relative;
}

/* Radio selected dot */

.option.selected .custom-radio::after{
  content:"";
  width:8px;
  height:8px;
  background:#4CAF50;
  border-radius:50%;
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
}

/* NEXT BUTTON */

.bottom-buttons{
  margin-top:25px;
  display:flex;
  justify-content:flex-end;
}

.next-btn{
  background:#4CAF50;
  color:white;
  border:none;
  padding:12px 30px;
  border-radius:8px;
  font-size:15px;
  cursor:pointer;
  transition:0.2s;
}

.next-btn:hover{
  background:#43a047;
}

/* JOIN MODAL */

.quiz-input{
  width:100%;
  padding:12px;
  border-radius:6px;
  border:1px solid #ccc;
  margin:15px 0;
  font-size:14px;
}

.quiz-input:focus{
  outline:none;
  border-color:#4CAF50;
}

/* BUTTON */

.finish-btn{
  background:#4CAF50;
  color:white;
  border:none;
  padding:12px 25px;
  border-radius:8px;
  cursor:pointer;
  transition:0.2s;
}

.finish-btn:hover{
  background:#43a047;
}

/* LOADING */

.loading{
  text-align:center;
  padding:100px;
  font-size:20px;
}

/* RESPONSIVE */

@media(max-width:900px){

  .exam-container{
    flex-direction:column;
  }

  .left-panel{
    width:100%;
    border-right:none;
    border-bottom:1px solid #eee;
  }

  .right-panel{
    padding:20px;
  }

}

.result-overlay{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.55);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.result-modal{
  background:#fff;
  width:420px;
  max-width:90%;
  padding:35px 30px;
  border-radius:14px;
  box-shadow:0 15px 40px rgba(0,0,0,0.2);
  text-align:center;
  animation:modalFade 0.25s ease;
}

.result-header h2{
  margin-bottom:5px;
}

.result-sub{
  color:#777;
  font-size:14px;
}

.result-actions{
  margin-top:20px;
  display:flex;
  justify-content:center;
}

@keyframes modalFade{
  from{
    opacity:0;
    transform:scale(0.9);
  }
  to{
    opacity:1;
    transform:scale(1);
  }
}

.result-modal{
background:#fff;
padding:40px;
border-radius:16px;
width:420px;
max-width:90%;
text-align:center;
box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

.result-title{
font-size:26px;
margin-bottom:5px;
}

.result-sub{
color:#777;
font-size:14px;
}

.participant-name{
margin-top:10px;
font-size:14px;
}

.score-section{
margin:30px 0;
}

.score-circle{
width:140px;
height:140px;
margin:auto;
border-radius:50%;
background:conic-gradient(
#4CAF50 calc(var(--percent)*1%),
#e6e6e6 0
);
display:flex;
align-items:center;
justify-content:center;
}

.score-inner{
width:110px;
height:110px;
background:white;
border-radius:50%;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
}

.score-value{
font-size:28px;
font-weight:bold;
color:#333;
}

.score-label{
font-size:12px;
color:#777;
}

.result-stats{
display:flex;
justify-content:space-between;
margin-top:10px;
}

.stat-card{
flex:1;
margin:5px;
padding:15px;
border-radius:10px;
background:#f7f7f7;
}

.stat-card strong{
font-size:20px;
display:block;
margin-top:5px;
}

.stat-card.correct{
background:#e8f5e9;
color:#2e7d32;
}

.stat-card.wrong{
background:#fdecea;
color:#c62828;
}

.badge{
display:inline-block;
padding:10px 16px;
border-radius:20px;
font-weight:600;
margin-top:15px;
}

.badge.excellent{
background:#fff8e1;
color:#ff9800;
}

.badge.good{
background:#e3f2fd;
color:#1976d2;
}

.badge.poor{
background:#fdecea;
color:#c62828;
}

.finish-btn{
margin-top:20px;
padding:12px 24px;
border:none;
background:#4CAF50;
color:white;
border-radius:8px;
font-weight:600;
cursor:pointer;
}

.score-section{
margin:30px 0;
display:flex;
justify-content:center;
}

.score-circle{
width:150px;
height:150px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
transition:0.6s;
}

.score-inner{
width:115px;
height:115px;
background:white;
border-radius:50%;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
box-shadow:0 4px 10px rgba(0,0,0,0.08);
}

.score-value{
font-size:28px;
font-weight:bold;
color:#333;
}

.score-label{
font-size:13px;
color:#777;
}