/* ═══════════════════════════════════════════════════════════
   Girls' Day Feedback – Design System
   (aligned with Quiz, Imposter & Powerpoint-Karaoke)
   ═══════════════════════════════════════════════════════════ */

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --heritage-blue:   #0D21A0;
  --horizon-blue:    #49ABEB;
  --cloud-white:     #FAFAFF;
  --foundation-blue: #011749;
  --united-red:      #F12938;
  --neural-purple:   #7A59E2;
  --circuit-green:   #54C664;
  --fibre-orange:    #FF7900;
  --voltage-yellow:  #F2C00C;
  --grey-one:        #2A2A2B;

  --text-primary:   #FAFAFF;
  --text-secondary: rgba(250, 250, 255, 0.65);
  --text-muted:     rgba(250, 250, 255, 0.42);

  --card-bg:        rgba(3, 10, 40, 0.72);
  --card-border:    rgba(73, 171, 235, 0.20);
  --surface-raised: rgba(255, 255, 255, 0.055);
  --surface-hover:  rgba(255, 255, 255, 0.09);

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 8px 40px rgba(0, 0, 0, 0.50);
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.35);
  --blur:      blur(20px);
  --gradient-primary: linear-gradient(135deg, var(--heritage-blue) 0%, var(--horizon-blue) 100%);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Focus visible ──────────────────────────────────────── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--horizon-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Base ───────────────────────────────────────────────── */
html {
  height: 100%;
  background-color: #00091f;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(ellipse 80% 60% at 15%  5%,  rgba(73, 171, 235, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 85% 95%,  rgba(13,  33, 160, 0.50) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%,  rgba(13,  33, 160, 0.12) 0%, transparent 80%),
    linear-gradient(160deg, #00091f 0%, #011749 50%, #0a1880 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* ─── Logo Bar ───────────────────────────────────────────── */
.logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: rgba(0, 9, 31, 0.70);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid rgba(73, 171, 235, 0.14);
  position: sticky;
  top: 0;
  z-index: 100;
}

.collab-logos { display: flex; align-items: center; gap: 14px; }
.collab-logo-cc { height: 40px; border-radius: 8px; object-fit: contain; display: block; }
.collab-logo-gd { height: 40px; border-radius: 8px; object-fit: contain; display: block; }
.collab-x {
  font-size: 1.3rem;
  font-weight: 200;
  color: rgba(250, 250, 255, 0.28);
  line-height: 1;
}

/* ─── Admin Button ──────────────────────────────────────── */
.admin-btn {
  position: fixed;
  top: 74px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 200;
  backdrop-filter: blur(8px);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.admin-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.70);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ─── Main ───────────────────────────────────────────────── */
.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 60px;
  min-height: calc(100vh - 65px);
  gap: 0;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  text-align: center;
  margin-bottom: 32px;
}

.hero-badge {
  display: inline-block;
  background: rgba(73, 171, 235, 0.12);
  border: 1px solid rgba(73, 171, 235, 0.30);
  color: var(--horizon-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2.2rem, 8vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 14px;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 3vw, 1.15rem);
  color: var(--text-secondary);
  font-weight: 400;
}

/* ─── Card ───────────────────────────────────────────────── */
.feedback-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  width: 100%;
  max-width: 560px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(73, 171, 235, 0.10);
}

/* ─── Form Elements ─────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--horizon-blue), #7dd3f8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 7px;
}

input[type="text"], input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  background: rgba(73, 171, 235, 0.05);
  border: 1px solid rgba(73, 171, 235, 0.18);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none;
  cursor: text;
}
input[type="text"]:focus, input[type="password"]:focus {
  border-color: var(--horizon-blue);
  background: rgba(73, 171, 235, 0.10);
  box-shadow: 0 0 0 3px rgba(73, 171, 235, 0.12);
}
input::placeholder { color: rgba(140, 140, 143, 0.65); }

textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(73, 171, 235, 0.05);
  border: 1px solid rgba(73, 171, 235, 0.18);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none;
  resize: vertical;
  min-height: 72px;
  cursor: text;
}
textarea:focus {
  border-color: var(--horizon-blue);
  background: rgba(73, 171, 235, 0.10);
  box-shadow: 0 0 0 3px rgba(73, 171, 235, 0.12);
}
textarea::placeholder { color: rgba(140, 140, 143, 0.65); }

/* ─── Divider ────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: rgba(73, 171, 235, 0.12);
  margin: 24px 0;
}

/* ─── Question Block ─────────────────────────────────────── */
.question-block {
  margin-bottom: 22px;
}

.q-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

/* ─── Scale Row (1-10) ──────────────────────────────────── */
.scale-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scale-label-left, .scale-label-right {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 48px;
}
.scale-label-left { text-align: right; }
.scale-label-right { text-align: left; }

.scale-buttons {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.scale-btn {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(73, 171, 235, 0.22);
  border-radius: 8px;
  background: rgba(73, 171, 235, 0.06);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scale-btn:hover {
  background: rgba(73, 171, 235, 0.15);
  border-color: rgba(73, 171, 235, 0.40);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.scale-btn.selected {
  background: var(--gradient-primary);
  border-color: var(--horizon-blue);
  color: #fff;
  box-shadow: 0 0 12px rgba(73, 171, 235, 0.35);
  transform: scale(1.08);
}

/* ─── Toggle Row (Zutreffend / Nicht zutreffend) ────────── */
.toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.toggle-btn {
  padding: 12px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
}

.toggle-btn.selected[data-value="true"] {
  background: rgba(84, 198, 100, 0.18);
  border-color: var(--circuit-green);
  color: var(--circuit-green);
  box-shadow: 0 0 12px rgba(84, 198, 100, 0.20);
}

.toggle-btn.selected[data-value="false"] {
  background: rgba(241, 41, 56, 0.14);
  border-color: var(--united-red);
  color: #ff6b7a;
  box-shadow: 0 0 12px rgba(241, 41, 56, 0.18);
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
  letter-spacing: 0.02em;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.38; cursor: not-allowed; }

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(13, 33, 160, 0.45);
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(73, 171, 235, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #c8121f, #f12938);
  color: #fff;
  box-shadow: 0 4px 16px rgba(241, 41, 56, 0.35);
}
.btn-danger:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.17);
  color: var(--text-secondary);
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.30);
  color: var(--text-primary);
}

/* ─── Error Message ──────────────────────────────────────── */
.error-msg {
  color: #ff6b7a;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  margin-top: 10px;
  min-height: 20px;
}

/* ─── Thank You Screen ───────────────────────────────────── */
.thankyou-wrap {
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.thankyou-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--circuit-green), #38A84C);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  box-shadow: 0 0 30px rgba(84, 198, 100, 0.35);
}

.thankyou-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 16px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  margin-top: 40px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ─── Utilities ──────────────────────────────────────────── */
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.w-full { width: 100%; }

/* ═══════════════════════════════════════════════════════════
   Admin Dashboard Styles
   ═══════════════════════════════════════════════════════════ */

/* ─── Admin Login Card ──────────────────────────────────── */
.login-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  width: 100%;
  max-width: 400px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(73, 171, 235, 0.10);
}

/* ─── Stats Grid ─────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 800px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm);
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-value.blue { color: var(--horizon-blue); }
.stat-value.green { color: var(--circuit-green); }
.stat-value.yellow { color: var(--voltage-yellow); }
.stat-value.purple { color: var(--neural-purple); }
.stat-value.orange { color: var(--fibre-orange); }

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ─── Detail Cards ───────────────────────────────────────── */
.detail-section {
  width: 100%;
  max-width: 800px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.bar-chart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.bar-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 180px;
  text-align: right;
}

.bar-track {
  flex: 1;
  height: 28px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 6px;
  background: var(--gradient-primary);
  transition: width 0.6s ease;
  min-width: 2px;
}

.bar-value {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
  min-width: 50px;
}

/* ─── Toggle Stats ───────────────────────────────────────── */
.toggle-stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 14px;
  background: var(--surface-raised);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
}

.toggle-stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  flex: 1;
}

.toggle-stat-pct {
  font-size: 1.1rem;
  font-weight: 800;
}
.toggle-stat-pct.green { color: var(--circuit-green); }
.toggle-stat-pct.red { color: #ff6b7a; }

/* ─── Text Responses ─────────────────────────────────────── */
.text-response {
  padding: 12px 16px;
  background: var(--surface-raised);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.text-response-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.text-response-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── Admin Actions ──────────────────────────────────────── */
.admin-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 800px;
  margin-bottom: 24px;
}
.admin-actions .btn { width: auto; padding: 10px 20px; font-size: 0.85rem; }

/* ─── Back Link ──────────────────────────────────────────── */
.back-link {
  position: fixed;
  bottom: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.40);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 20px;
  text-decoration: none;
  z-index: 999;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
}
.back-link:hover { background: rgba(255,255,255,0.13); color: #fff; border-color: rgba(255,255,255,0.28); }

/* ─── QR Code Overlay ────────────────────────────────────── */
.qr-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 5, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
}
.qr-overlay.active { display: flex; }

.qr-modal {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px 40px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow), 0 0 60px rgba(73, 171, 235, 0.15);
  animation: fadeIn 0.3s ease;
  max-width: 400px;
  width: 90%;
}

.qr-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}
.qr-close:hover { color: var(--text-primary); }

.qr-wrap {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: #FAFAFF;
  border-radius: 12px;
}

.qr-wrap canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ─── Empty State ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state-text { font-size: 1rem; }

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(73, 171, 235, 0.25); border-radius: 2px; }

/* ─── Reduced Motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .main { padding: 32px 16px 48px; }
  .feedback-card, .login-card { padding: 22px 16px; }
  .scale-row { flex-wrap: wrap; justify-content: center; }
  .scale-label-left, .scale-label-right { min-width: 100%; text-align: center; font-size: 0.62rem; }
  .scale-label-left { order: -1; }
  .scale-buttons { order: 0; }
  .scale-label-right { order: 1; }
  .scale-btn { width: 30px; height: 30px; font-size: 0.72rem; }
  .bar-label { min-width: 120px; font-size: 0.75rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-actions { flex-direction: column; }
  .admin-actions .btn { width: 100%; }
}

@media (max-width: 400px) {
  h1 { font-size: 2rem; }
  .scale-btn { width: 28px; height: 28px; font-size: 0.68rem; }
}
