:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f97316;
  --bg: #f3f4f6;
  --card-bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(circle at top, #dbeafe, #f9fafb);
  color: var(--text);
}

.layout-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 720px;
  width: 100%;
}

.card.narrow {
  max-width: 420px;
}

h1, h2, h3 {
  margin-top: 0;
}

input, select, textarea, button {
  font: inherit;
}

label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f9fafb;
}

button,
.btn-primary,
.btn-secondary,
.btn-small {
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease;
}

button:active,
.btn-primary:active,
.btn-secondary:active,
.btn-small:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn-primary,
button[type="submit"] {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.btn-small {
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(15,23,42,0.06);
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

.logo-badge-emoji {
  font-size: 1.1rem;
}

.logo-badge-text {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #1d4ed8;
}

.content {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.content.narrow {
  max-width: 600px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

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

.table th {
  background: #f3f4f6;
  font-weight: 600;
}

.split {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.divider {
  width: 1px;
  background: var(--border);
}

.option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.question-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
  background: #f9fafb;
}

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

.question-type-pill {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.present-layout {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.present-main {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 1.5rem;
  padding: 1.5rem;
}

.present-question,
.present-results {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.badge-code {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.85rem;
  border: 1px solid #fde68a;
}

.chart-bar {
  height: 26px;
  border-radius: 999px;
  background: #e5e7eb;
  margin: 0.25rem 0;
  overflow: hidden;
  position: relative;
}

.chart-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.chart-bar-label {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: #f9fafb;
  text-shadow: 0 1px 2px rgba(15,23,42,0.5);
}

.word-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.word-cloud span {
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  background: #eff6ff;
  color: #1d4ed8;
}

@media (max-width: 900px) {
  .present-main {
    grid-template-columns: 1fr;
  }
  .split {
    flex-direction: column;
  }
}

    /* Top navigation */
            .topnav {
              overflow: hidden;
              background-color: #ffffff;
            }

            .topnav a {
              float: left;
              color: #1a1a1a;
              text-align: center;
              text-decoration: none;
              font-size: 17px;
            }

            .topnav a:hover {
              background-color: #ddd;
              color: black;
            }

            .topnav a.active {
              background-color: #ffffff;
              color: black;
            }
								   
            .topnav-right {
              float: right;
            }
