/* client_endpoints/survey_gui/survey_page/styles.css */

body {
  margin: 0;
  padding: 0;
  background: #0a0f1a;
  color: #fff;
  font-family: sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.branding {
  text-align: center;
  margin-bottom: 24px;
}

.brand-logo {
  max-height: 60px;
  margin-bottom: 8px;
}

.brand-name {
  font-size: 20px;
  color: #ccc;
  font-weight: 700;
}

.container {
  max-width: 720px;
  width: 100%;
  padding: 32px;
  box-sizing: border-box;
}

h1,
h2,
h3,
p,
button,
textarea {
  margin: 0;
  padding: 0;
  font-family: inherit;
}

.glass-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.primary-button {
  display: block;
  width: 100%;
  height: 72px;
  min-width: 280px;
  background: #0c7b93;
  border: none;
  border-radius: 16px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Add space between welcome text and Start button */
#welcome-panel h2 {
  margin-bottom: 16px;
}
#welcome-panel .primary-button {
  margin-top: 8px;
}

.primary-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  animation: spin 0.8s linear infinite;
  margin: auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.question-area {
  height: 160px;
  overflow: auto;
  padding: 8px;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
}

textarea {
  width: 100%;
  min-height: 4em;
  max-height: 6em;
  font-size: 20px;
  line-height: 1.4;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  resize: none;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

textarea:focus {
  outline: none;
  border: 2px solid #00a8cc;
}

.nav-row {
  display: flex;
  gap: 50px;
}

.nav-column button {
  margin-bottom: 12px;
  width: 100%;
}

button.nav-btn {
  flex: 1;
  height: 48px;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

button.nav-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

button.back-btn {
  background: #555;
  color: #fff;
}

button.next-btn {
  background: #0c7b93;
  color: #fff;
}

.hidden {
  display: none;
}
