/* ═══════════════════════════════════════════════════════════════════
   AVBG MEDICAL GATE - DARK THEME (Matches APK Design)
   ═══════════════════════════════════════════════════════════════════ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #1a1a2e;
  color: #e4e4e7;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 700px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════ */

.header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 16px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.header h1 {
  font-size: 26px;
  color: #10b981;
  margin-bottom: 8px;
}

.header p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════
   TIMER DISPLAY (3:00 format)
   ═══════════════════════════════════════════════════════════════════ */

.timer-display {
  background: rgba(0, 0, 0, 0.3);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 20px;
  border: 2px solid rgba(81, 207, 102, 0.3);
}

.timer-icon {
  font-size: 24px;
  margin-right: 8px;
}

.timer-text {
  font-size: 18px;
  font-weight: 600;
}

#timerDisplay {
  color: #51cf66;
  font-size: 24px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
}

/* ═══════════════════════════════════════════════════════════════════
   PROGRESS
   ═══════════════════════════════════════════════════════════════════ */

.progress-text {
  text-align: center;
  font-size: 14px;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 24px;
  padding: 10px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════════════
   QUESTION CARDS
   ═══════════════════════════════════════════════════════════════════ */

.question-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.case-description {
  font-size: 15px;
  line-height: 1.7;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.5);
  padding: 16px;
  border-radius: 12px;
  border-left: 4px solid #3b82f6;
}

.question-text {
  font-size: 17px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════
   ANSWER SECTION
   ═══════════════════════════════════════════════════════════════════ */

.answer-section {
  margin-bottom: 20px;
}

.answer-section label {
  display: block;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #cbd5e1;
}

/* MCQ Options */
.mcq-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mcq-option {
  display: flex;
  align-items: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid rgba(100, 116, 139, 0.4);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.mcq-option:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.mcq-option input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  cursor: pointer;
  accent-color: #10b981;
}

.mcq-option label {
  flex: 1;
  margin: 0;
  cursor: pointer;
  color: #f1f5f9;
  font-size: 15px;
  font-weight: 500;
}

.mcq-option.selected {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

textarea {
  width: 100%;
  padding: 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid rgba(100, 116, 139, 0.4);
  border-radius: 12px;
  color: #f1f5f9;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════
   INPUT FIELDS (Email Verification)
   ═══════════════════════════════════════════════════════════════════ */

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid rgba(100, 116, 139, 0.4);
  border-radius: 12px;
  color: #f1f5f9;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="email"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

input[readonly] {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  cursor: default;
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */

.btn-primary {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(16, 185, 129, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  width: 100%;
  padding: 14px;
  background: rgba(51, 65, 85, 0.8);
  color: #cbd5e1;
  border: 1px solid rgba(100, 116, 139, 0.4);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(71, 85, 105, 0.8);
}

/* ═══════════════════════════════════════════════════════════════════
   WARNING TEXT
   ═══════════════════════════════════════════════════════════════════ */

.warning-text {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
  font-size: 13px;
  color: #fca5a5;
  line-height: 1.6;
  text-align: center;
}

.warning-text strong {
  color: #ff6b6b;
}

/* ═══════════════════════════════════════════════════════════════════
   SUCCESS MESSAGE
   ═══════════════════════════════════════════════════════════════════ */

.success-message {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #6ee7b7;
  line-height: 1.8;
  text-align: center;
}

.success-message strong {
  font-size: 20px;
  color: #10b981;
  display: block;
  margin: 8px 0;
}

/* ═══════════════════════════════════════════════════════════════════
   LOADING INDICATOR
   ═══════════════════════════════════════════════════════════════════ */

#loadingIndicator {
  text-align: center;
  padding: 40px 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  border: 4px solid rgba(148, 163, 184, 0.2);
  border-top-color: #10b981;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#loadingIndicator p {
  color: #94a3b8;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════
   BLOCKED SCREEN
   ═══════════════════════════════════════════════════════════════════ */

#blockedScreen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  min-height: 500px;
}

.blocked-icon {
  font-size: 72px;
  margin-bottom: 24px;
  opacity: 0.8;
}

#blockedScreen h2 {
  font-size: 28px;
  color: #ff6b6b;
  margin-bottom: 16px;
}

#blockedScreen p {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.8;
  margin-bottom: 12px;
  max-width: 500px;
}

.blocked-message {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
  color: #fca5a5;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  body {
    padding: 12px;
  }

  .header h1 {
    font-size: 22px;
  }

  .question-card {
    padding: 16px;
  }

  .case-description {
    font-size: 14px;
    padding: 14px;
  }

  .question-text {
    font-size: 16px;
  }

  textarea {
    font-size: 14px;
  }

  #timerDisplay {
    font-size: 20px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   CRITICAL: Mobile Keyboard Fix
   This 50vh blank space is added in HTML after warning text
   It allows scrolling when keyboard appears
   ═══════════════════════════════════════════════════════════════════ */
