/* NREMT Trainer CSS - Dark Glassmorphism Theme */

:root {
  --bg: #F8FAFC;
  --panel: #FFFFFF;
  --muted: #475569;
  --text: #0F172A;
  --accent: #1D4ED8;
  --good: #16A34A;
  --bad: #DC2626;
  --chip: #172233;
  --chip-hi: #1f2d45;
  --glass: rgba(255,255,255,0.06);
  --glass-hi: rgba(255,255,255,0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 16px;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% 0%, #112136 0, #0b0f14 60%);
  line-height: 1.6;
}

/* Navigation styles */
.nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(to right, rgba(109,211,255,.08), transparent);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav .links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.chip {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.chip:hover {
  background: var(--glass-hi);
}

/* Typography */
h1, h2, h3 {
  margin: 0 0 1rem 0;
  font-weight: 600;
}

h1.gradient-text {
  background: linear-gradient(135deg, var(--accent), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text);
  padding: 0.65rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn:hover:not(:disabled) {
  background: var(--glass-hi);
  border-color: rgba(255,255,255,.15);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.primary {
  background: linear-gradient(180deg, #1b9bd1, #157baa);
  border-color: #1779a5;
}

.btn.good {
  background: linear-gradient(180deg, var(--good), #239e57);
  border-color: #27ae60;
}

.btn.bad {
  background: linear-gradient(180deg, var(--bad), #d84d4d);
  border-color: #e25555;
}

/* Cards and panels */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  margin-bottom: 1.25rem;
}

/* Form elements */
input[type="file"] {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text);
  padding: 0.5rem;
  border-radius: 8px;
}

input[type="checkbox"] {
  accent-color: var(--accent);
  transform: scale(1.1);
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

th {
  font-weight: 600;
  background: rgba(255,255,255,.03);
}

tr:hover {
  background: rgba(255,255,255,.02);
}

/* Utility classes */
.muted {
  color: var(--muted);
  opacity: 0.9;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.flex {
  display: flex;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 1rem;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

/* Status indicators */
.ok {
  background: rgba(46, 204, 113, 0.2) !important;
  border-color: rgba(46, 204, 113, 0.4) !important;
}

.bad {
  background: rgba(255, 107, 107, 0.2) !important;
  border-color: rgba(255, 107, 107, 0.4) !important;
}

/* Responsive design */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 1rem;
    padding: 12px 16px;
  }
  
  .nav .links {
    justify-content: center;
  }
  
  .row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .grid {
    overflow-x: auto;
  }
}
/* ── Yellow study highlight for correct answers ── */
.choice-btn.correct, .option.correct, .btn.correct,
[data-correct="true"], .answer-correct {
  background: #FEF08A !important;
  color: #0F172A !important;
  border-color: #EAB308 !important;
}
