/* ============================================================
   BUS4169 Exam Portal – Global Styles
   ============================================================ */

:root {
  --primary:    #0d6efd;
  --success:    #198754;
  --danger:     #dc3545;
  --warning:    #ffc107;
  --dark:       #0f3460;
  --light-bg:   #f4f7fe;
  --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ── Body / Layout ── */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--light-bg);
}

/* ── Login pages ── */
.exam-login-body {
  background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
}

.uni-logo {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ── Cards ── */
.card {
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

/* ── Buttons ── */
.btn { border-radius: 8px; }
.btn-xs {
  padding: .15rem .45rem;
  font-size: .75rem;
  border-radius: 6px;
}

/* ── Alerts ── */
.alert { border-radius: 10px; }

/* ── Code display (admin) ── */
.code-display {
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: .85rem;
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Code sample (problem description) ── */
.code-sample {
  background: #1e1e1e;
  color: #9cdcfe;
  font-family: monospace;
  font-size: .85rem;
  border-radius: 8px;
  padding: .8rem 1rem;
}

/* ── Utilities ── */
.x-small { font-size: .72rem; }
.font-monospace { font-family: monospace; }
