/* 6x RS SQL Quiz — Shared Styles (Light Mode) */

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f1f5f9;
  color: #1e293b;
  line-height: 1.6;
  min-height: 100vh;
}

.wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* --- Header --- */
header {
  background: linear-gradient(135deg, #06042a 0%, #0E1178 100%);
  color: #fff;
  padding: 32px 20px;
  text-align: center;
  margin-bottom: 32px;
}

header h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

header .subtitle {
  font-size: 14px;
  opacity: 0.85;
  font-weight: 300;
}

header .brand {
  font-size: 12px;
  color: #00aaff;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}

/* --- Panels --- */
.panel {
  background: #fff;
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}

.panel h2 {
  font-size: 18px;
  color: #06042a;
  margin-bottom: 6px;
  font-weight: 600;
}

.panel .scenario {
  font-size: 14px;
  color: #475569;
  margin-bottom: 16px;
}

.panel .output-req {
  background: #f8fafc;
  border-left: 3px solid #00aaff;
  padding: 12px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
  font-size: 13px;
}

.panel .output-req .label {
  font-weight: 600;
  color: #06042a;
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.panel .output-req ul {
  list-style: none;
  padding-left: 0;
}

.panel .output-req li {
  padding: 2px 0;
  color: #334155;
}

.panel .output-req li::before {
  content: "•  ";
  color: #00aaff;
  font-weight: bold;
}

.q-number {
  display: inline-block;
  background: #00aaff;
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 10px;
  letter-spacing: 0.5px;
}

/* --- Forms --- */
.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #1e293b;
  background: #fff;
  transition: border-color 0.15s;
}

.field input[type="text"]:focus,
.field input[type="email"]:focus {
  outline: none;
  border-color: #00aaff;
  box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.15);
}

textarea.sql {
  width: 100%;
  min-height: 140px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  color: #0f172a;
  background: #fafafa;
  resize: vertical;
  line-height: 1.5;
  tab-size: 2;
  transition: border-color 0.15s;
}

textarea.sql:focus {
  outline: none;
  border-color: #00aaff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.15);
}

textarea.sql::placeholder {
  color: #94a3b8;
  font-style: italic;
}

/* --- File Upload --- */
.file-upload {
  margin-top: 14px;
}

.file-upload-label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.file-upload-label:hover {
  border-color: #00aaff;
  background: #f0f9ff;
}

.file-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.file-upload-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.file-upload-title {
  font-size: 13px;
  font-weight: 500;
  color: #06042a;
}

.file-upload-hint {
  font-size: 12px;
  color: #64748b;
}

.file-upload-btn {
  padding: 8px 16px;
  background: #06042a;
  color: #fff;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.file-upload-label:hover .file-upload-btn {
  background: #0E1178;
}

.file-upload-status {
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  color: #64748b;
  border-radius: 4px;
  background: transparent;
  transition: color 0.15s, background 0.15s;
}

.file-upload-status.attached {
  color: #166534;
  background: #f0fdf4;
  border-left: 3px solid #10b981;
  padding-left: 10px;
}

.file-upload-status.error {
  color: #b91c1c;
  background: #fef2f2;
  border-left: 3px solid #dc2626;
  padding-left: 10px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #06042a 0%, #0E1178 100%);
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: transform 0.1s, box-shadow 0.15s;
}

.btn:hover {
  box-shadow: 0 4px 12px rgba(6, 4, 42, 0.25);
  transform: translateY(-1px);
}

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

.btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-accent {
  background: linear-gradient(135deg, #ff8a00 0%, #ff6a00 100%);
}

.btn-accent:hover {
  box-shadow: 0 4px 12px rgba(255, 138, 0, 0.35);
}

.actions {
  text-align: center;
  margin-top: 24px;
}

/* --- Info Banner --- */
.info-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #00aaff;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 13px;
  color: #1e40af;
  margin-bottom: 20px;
}

.info-banner strong {
  color: #06042a;
}

/* --- Gemini Assistant Banner (quiz page) --- */
.assistant-banner {
  background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 100%);
  border: 1px solid #c7d2fe;
  border-left: 4px solid #6366f1;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.assistant-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.assistant-body {
  flex: 1;
}

.assistant-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e1b4b;
  margin-bottom: 6px;
}

.assistant-banner p {
  font-size: 13px;
  color: #3730a3;
  line-height: 1.6;
  margin: 0 0 14px 0;
}

.assistant-banner .assistant-btn {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  padding: 10px 20px;
  font-size: 13px;
}

.assistant-banner .assistant-btn:hover {
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

/* --- Test-taker context bar on quiz page --- */
.taker-bar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 18px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #475569;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.taker-bar .taker-info {
  color: #06042a;
  font-weight: 500;
}

.taker-bar .taker-info span {
  color: #64748b;
  font-weight: 400;
  margin-right: 6px;
}

/* --- Confirmation Screen --- */
.confirmation {
  text-align: center;
  padding: 60px 20px;
}

.confirmation .check {
  width: 60px;
  height: 60px;
  background: #10b981;
  border-radius: 50%;
  color: #fff;
  font-size: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.confirmation h2 {
  color: #06042a;
  font-size: 22px;
  margin-bottom: 10px;
}

.confirmation p {
  color: #475569;
  font-size: 14px;
  max-width: 420px;
  margin: 0 auto;
}

/* --- Errors --- */
.error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.error.visible {
  display: block;
}

/* --- Footer --- */
footer {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  padding: 24px 20px;
  margin-top: 20px;
}

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
