﻿:root {
  --blue: #1B446E;
  --blue-dark: #111426;
  --gold: #AC986A;
  --gold-2: #C4AF6B;
  --gold-light: #F6EAA0;
  --green: #009482;
  --magenta: #C71F69;
  --magenta-strong: #D8065B;
  --black: #010101;
  --bg: #F7F8FA;
  --text: #1a1a1a;
  --border: #E2E6EA;
  --shadow: 0 12px 24px rgba(17, 20, 38, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f2f4f8 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--blue);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 52px;
  width: 52px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 4px;
}

.logo-alt {
  height: 48px;
  width: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
}

.brand-title {
  font-weight: 600;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
}

.brand-sub {
  display: block;
  font-weight: 300;
  font-size: 0.85rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.main-content {
  padding: 32px 0 48px;
  flex: 1 0 auto;
}

.hero {
  background: radial-gradient(circle at top left, var(--gold-light), #fff 60%);
  padding: 32px 0 12px;
}

.lead {
  font-size: 1.05rem;
  max-width: 680px;
}

.page-header {
  margin-bottom: 20px;
}

.page-header.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.card-meta {
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--blue-dark);
  color: #fff;
  padding: 20px;
  border-radius: 12px;
}

.stat-card strong {
  font-size: 2rem;
  display: block;
  color: var(--gold-light);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.95rem;
}

.table th {
  background: #f4f6f9;
  color: var(--blue-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  gap: 6px;
}

.btn-primary {
  background: var(--gold);
  color: var(--blue-dark);
}

.btn-secondary {
  background: var(--green);
  color: #fff;
}

.btn-danger {
  background: var(--magenta-strong);
  color: #fff;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  margin-left: 8px;
}

.badge.success {
  background: rgba(0, 148, 130, 0.15);
  color: var(--green);
}

.badge.danger {
  background: rgba(216, 6, 91, 0.12);
  color: var(--magenta-strong);
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.alert-magenta {
  background: rgba(199, 31, 105, 0.12);
  color: var(--magenta);
  border: 1px solid rgba(199, 31, 105, 0.4);
}

.alert-green {
  background: rgba(0, 148, 130, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 148, 130, 0.4);
}

.form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 500;
}

input,
select,
textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
}

.input-error {
  border-color: var(--magenta-strong);
  outline: none;
}

textarea {
  resize: vertical;
}

.form-section {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.question {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

.question:last-child {
  border-bottom: none;
}

.question-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.req {
  color: var(--magenta);
  margin-left: 4px;
}

.option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  margin-bottom: 6px;
}

.option-correct {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--blue-dark);
}

.likert {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.likert label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.inline-form {
  display: inline;
}

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.share-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.share-input {
  font-size: 0.85rem;
  background: #f8f9fb;
}

.action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.site-footer {
  background: var(--blue);
  color: #fff;
  padding: 16px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.auth {
  display: flex;
  justify-content: center;
}

.auth-card {
  max-width: 420px;
  width: 100%;
}

.muted {
  font-size: 0.85rem;
  color: #5c5c5c;
}

.builder {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.builder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.question-block {
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  background: #fdfdfd;
}

.question-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.question-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.options-container {
  margin-top: 8px;
}

.options-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.options-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.option-row {
  display: grid;
  grid-template-columns: 1.2fr auto auto;
  gap: 8px;
  align-items: center;
}

.progress {
  height: 8px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gold-2);
  transition: width 0.3s ease;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.answer-list {
  display: grid;
  gap: 12px;
}

.answer-question {
  font-weight: 600;
}

.acuse {
  text-align: center;
}

.acuse-grid {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav {
    flex-wrap: wrap;
  }
  .footer-inner {
    flex-direction: column;
    gap: 8px;
  }
  .option-row {
    grid-template-columns: 1fr;
  }
  .share-row {
    grid-template-columns: 1fr;
  }
}
