
/* ==============================================================
   GLOBAL
   ============================================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background: var(--bg);
    font-family: var(--font);
    color: #4d535c;
    line-height: 1.6;
}

/* ==============================================================
   PARTICIPANT LOGIN – GRADIENT BORDER ONLY (NO FILL)
   ============================================================== */

/* FULL‑SCREEN – NO OVERFLOW */
 html, body, .oshe-login-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    
}

/* WRAPPER */
.oshe-login-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', system-ui, sans-serif;
}

/* CONTAINER */
.oshe-login-container {
    max-width: 440px;
    padding: 12rem;
    box-sizing: border-box;
    margin: auto;
}

#oshe-participant-login input[name="student_id"] {
  text-transform: uppercase;
}


/* CARD – WHITE + GRADIENT BORDER ONLY */
/* CARD – WHITE FILL, ROUNDED GRADIENT BORDER, SHADOW */
.oshe-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 3rem 2.5rem;
    text-align: center;
    max-height: calc(100vh - 4rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    position: relative;

    /* THIN GRADIENT BORDER */
    border:2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #6d28d9, #3b82f6) border-box;
    border-image-slice: 1;

    /* SHADOW */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.oshe-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 6px solid transparent;
    border-image: linear-gradient(135deg, #6d28d9, #3b82f6) 1;
    border-image-slice: 1;
    border-radius: 32px;
    pointer-events: none;
    z-index: -1;
}

/* ICON */
.oshe-login-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #6d28d9, #a78bfa);
    color: white;
    font-size: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(109, 40, 217, 0.3);
}

/* TITLE */
.oshe-login-title {
    margin: 0 0 0.4rem;
    font-size: 2.1rem;
    font-weight: 800;
    background: linear-gradient(90deg, #6d28d9, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

/* SUBTITLE */
.oshe-login-subtitle {
    margin: 0 0 1.4rem;
    font-size: 1.05rem;
    color: #6b7280;
    font-weight: 500;
    flex-shrink: 0;
}

/* INPUT */
.oshe-input-group {
    margin-bottom: 1.2rem;
    flex-shrink: 0;
}

.oshe-input-group input {
    width: 100%;
    padding: 1rem 1.3rem;
    font-size: 1.05rem;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    text-align: center;
    outline: none;
    box-sizing: border-box;
}

.oshe-input-group input::placeholder {
    color: #9ca3af;
    text-align: center;
}

.oshe-input-group input:focus {
    border-color: #6d28d9;
    box-shadow: 0 0 0 5px rgba(109, 40, 217, 0.18);
}

/* BUTTON */
.oshe-login-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(90deg, #6d28d9, #a78bfa);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    margin-top: 0.3rem;
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.25);
    flex-shrink: 0;
}

.oshe-login-btn:hover {
    background: linear-gradient(90deg, #5b21b6, #9333ea);
    transform: translateY(-2px);
}

.oshe-login-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* SPINNER */
.oshe-spinner {
    margin: 1.2rem auto 0;
    width: 36px; height: 36px;
    border: 4px solid #e5e7eb;
    border-top-color: #6d28d9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
/* ==============================================================
   PARTICIPANT DASHBOARD – PROFESSIONAL, MATCHING LOGIN
   ============================================================== */
/* FULL-WIDTH HEADER WRAPPER */
.oshe-header-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
}

.oshe-participant-header {
  width: 100%;
  margin: 0;
  padding: 1.25rem 2rem;
  background: #fcfcfd;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* allow wrapping on smaller screens */
  box-shadow: inset 0 0 0 1px #e5e7eb;
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
}

/* LEFT SIDE (Avatar + Info) */
.participant-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 240px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.info .name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.info .meta {
  margin: 0.2rem 0;
  font-size: 0.7rem;
  color: #6b7280;
  font-weight: 600;
}

.info .meta .dot {
  margin: 0 6px;
}

.info .class-category {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.info .class-category i {
  color: #7c3aed;
  font-size: 0.95rem;
}

/* RIGHT SIDE (Score + Logout) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* SCORE BOX */
.score-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.score-box i {
  color: #fbbf24;
  font-size: 1rem;
}

.score-box .score-value {
  font-weight: 700;
  color: #111827;
  font-size: 1.2rem;
}

.score-box .score-label {
  color: #6b7280;
  font-size: 0.85rem;
}

/* LOGOUT BUTTON */
#oshe-logout {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #6b7280;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  margin-left: 0.75rem;
  transition: all 0.2s ease;
}

#oshe-logout i {
  font-size: 1rem;
}

#oshe-logout:hover {
  background: #f3f4f6;
  color: #111827;
}

/* ===========================
   📱 RESPONSIVE ADJUSTMENTS
   =========================== */

/* Tablet screens (≤ 768px) */
@media (max-width: 768px) {
  .oshe-participant-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    gap: 1rem;
  }

  .participant-info {
    width: 100%;
    justify-content: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .score-box {
    flex: 1;
    justify-content: center;
  }

  #oshe-logout {
    margin-left: 0;
  }
}

/* Small phones (≤ 480px) */
@media (max-width: 480px) {
  .oshe-participant-header {
    padding: 1rem;
  }

  .avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .info .name {
    font-size: 0.95rem;
  }

  .info .meta,
  .info .class-category {
    font-size: 0.8rem;
  }

  .score-box {
    padding: 0.35rem 0.75rem;
  }

  .score-box .score-value {
    font-size: 0.9rem;
  }

  .score-box .score-label {
    font-size: 0.75rem;
  }

  #oshe-logout {
    padding: 0.4rem 0.5rem;
  }
}



/* STATS BAR */
.oshe-answer-stats {
    max-width: 860px;
    margin: 1.5rem auto;
    padding: 1rem 2rem;
    background: #f8fafc;
    border-radius: 20px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #4b5563;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.oshe-answer-stats .correct-count {
    color: #16a34a;
    margin-right: 1rem;
}

.oshe-answer-stats .wrong-count {
    color: #dc2626;
}

/* WAITING MESSAGE */
#question-container {
  max-width: 860px;
  margin: 2rem auto;
  padding: 3rem 2rem;
  background: #ffffff;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  font-family: "Inter", sans-serif;
}

/* Purple circular icon container */
.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #f1e8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.icon-circle i {
  color: #7b3aed;
  font-size: 32px;
}

/* Heading */
.title {
  font-size: 1.6rem;
  color: #1f2937;
  font-weight: 600;
  margin: 10px 0;
}

/* Subtext */
.subtitle {
  color: #6b7280;
  font-size: 1.2rem;
  margin-bottom: 40px;
}

/* Score label */
.label {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 0; /* Removed bottom space */
  line-height: 1;   /* Tighten vertical spacing */
}

/* Score number */
.score {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2563eb;
  margin-top: 0;    /* Removed top space */
  margin-bottom: 0;
  line-height: 1;
}



/* SCORE HIGHLIGHT */
.participant-score {
    background: linear-gradient(90deg, #6d28d9, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800 !important;
    font-size: 1.1em;
}
.oshe-answer-stats {
    margin: 10px 0;
    font-size: 16px;
    text-align: center;
    font-weight: 600;
}

/* ==============================
   FULLSCREEN OVERLAY
============================== */
.oshe-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

/* ==============================
   MAIN QUIZ WRAPPER
============================== */
.oshe-quiz-wrapper {
  width: 100%;
  max-width: 720px;
  margin: auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  font-family: 'Segoe UI', system-ui, sans-serif;
  max-height: 90vh;
  overflow-y: auto; /* ← add this */
}

/* ==============================
   TIMER BOX
============================== */
.oshe-timer-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}

.oshe-timer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.oshe-timer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #4b5563;
  font-size: 1rem;
}

.oshe-time-label {
  color: #1f2937;
}

.oshe-timer-right {
  font-weight: 700;
  font-size: 1.1rem;
  color: #8b5cf6;
}

.oshe-timer-bar {
  height: 8px;
  width: 100%;
  border-radius: 5px;
  background: #e5e7eb;
  overflow: hidden;
}

.oshe-timer-progress {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #3b82f6);
  width: 100%;
  transition: width 1s linear;
}

/* ==============================
   QUESTION CARD
============================== */
.oshe-question-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1.8rem 1.2rem 2rem;
}

.oshe-question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #f1ecfd, #e6f5fe);
  color: #fff;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.3rem;
}

.oshe-question-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.oshe-question-header i {
  font-size: 1.2rem;
  color: #faca2f;
}

.oshe-question-text {
  font-size: 1.05rem;
  color: #374151;
  margin-top: 0.8rem;
  margin-bottom: 1.8rem;
  text-align: left;
}

/* ==============================
   OPTIONS
============================== */
.oshe-options {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.oshe-option {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.oshe-option:hover {
  background: #f3f4ff;
  border-color: #8b5cf6;
}

.oshe-option input[type='radio'] {
  display: none;
}

.option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid #a855f7;
  border-radius: 50%;
  color: #a855f7;
  font-weight: 600;
  margin-right: 0.9rem;
  flex-shrink: 0;
}

input[type='radio']:checked + .option-letter {
  background: #a855f7;
  color: #fff;
}

.option-text {
  flex: 1;
  text-align: left;
  color: #1f2937;
  font-weight: 500;
}

/* ==============================
   SUBMIT BUTTON
============================== */
#confirm-submit {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, #a855f7, #3b82f6);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

#confirm-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#confirm-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(100, 100, 255, 0.3);
}

/* ==============================
   RESULT
============================== */
.oshe-result {
  display: none;
  margin-top: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}


/* ==============================================================
   RESPONSIVE
   ============================================================== */
@media (max-width: 640px) {
    .oshe-participant-header { flex-direction: column; text-align: center; }
    .oshe-participant-header .avatar { font-size: 2.5rem; }
    .oshe-popup-card { padding: 32px 24px; width: 96vw; }
    #oshe-question-card h2 { font-size: 24px; }
    .oshe-options label { font-size: 18px; }
    #confirm-submit { padding: 16px 36px; font-size: 20px; }

/* HOVER EFFECTS */
#oshe-question-card label:hover {
    background:#f1f5f9 !important;
    border-color:#e2e8f0 !important;
}
#submit-answer:hover:not(:disabled) {
    background:linear-gradient(90deg,#5b21b6,#9333ea) !important;
    transform:translateY(-3px) !important;
    box-shadow:0 15px 30px rgba(109,40,217,0.4) !important;
}
@keyframes popupFadeIn {
    0%   { opacity:0; transform:scale(0.88); }
    100% { opacity:1; transform:scale(1); }
}

}