/* ==========================================================================
   Consolidated CSS — migrated from Vue component <style> blocks
   ========================================================================== */

/* --- Global (from App.vue) --- */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@400;700&display=swap');

body {
  background-color: #000;
  color: #aaa;
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  margin-top: 0;
}

h1 { font-size: 36px; }
h2 { font-size: 32px; }
h3 { font-size: 28px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

a {
  color: #48d1cc;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #20b2aa;
}

small, .small {
  font-size: 14px;
}

/* --- Navigation (from App.vue) --- */

.menu {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.menu-item {
  text-decoration: none;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.menu-item:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* --- Two-column layout (HomePage, BiofeedbackDesc, AboutMe) --- */

.two-column {
  display: flex;
  gap: 20px;
  align-items: center;
}

.two-column.align-top {
  align-items: flex-start;
}

.column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.image-column img {
  max-width: 100%;
  height: auto;
}

/* --- AboutMe heading colors --- */

.about-me-text h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  color: #5bb8b0;
  margin-bottom: 0.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #5bb8b0;
}

.about-me-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: #5bb8b0;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.about-me-text p {
  margin-bottom: 1rem;
  line-height: 1.75;
}

/* --- Questionnaire form (from HealthQuestionnaire.vue) --- */

.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1em;
}

.form-container form {
  display: flex;
  flex-direction: column;
}

/* --- FormField styles (from FormField.vue) --- */

.form-field label {
  margin-top: 1em;
}

.form-field input[type='text'],
.form-field input[type='date'],
.form-field input[type='range'],
.form-field input[type='number'] {
  width: 100%;
  padding: 0.5em;
  margin-top: 0.5em;
  box-sizing: border-box;
}

.form-field textarea {
  width: 100%;
  padding: 0.5em;
  margin-top: 0.5em;
  box-sizing: border-box;
}

.error-container {
  border: 1px solid red;
  display: flex;
  flex-direction: column;
  margin: 5px 0;
  padding: 5px;
  background-color: rgba(255, 0, 0, 0.1);
}

.error-text {
  color: red;
  font-size: 0.85em;
  margin-top: 0.25em;
}

/* Toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 0;
  bottom: 0;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* --- Buttons --- */

button {
  background-color: #444;
  color: white;
  border: none;
  padding: 0.5em 1em;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
  margin-top: 1em;
}

button[disabled] {
  background-color: #ccc;
  cursor: not-allowed;
}

/* --- Server messages --- */

.server-message {
  color: blue;
}

/* --- Signup form (from BiofeedbackSignupForm.vue) --- */

.signup-form {
  display: flex;
  align-items: center;
  width: 100%;
}

.signup-form .image-column {
  flex: 1;
  padding: 10px;
}

.signup-form .form-column {
  flex: 1;
  padding: 10px;
}

.signup-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.signup-form .full-width-input {
  width: 100%;
  box-sizing: border-box;
}

.question-row {
  display: flex;
  flex-direction: column;
  align-items: start;
  margin-bottom: 20px;
}

.option-row {
  margin-top: 5px;
}

/* --- HTMX indicator --- */

.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: inline;
}

/* --- Responsive --- */

@media (max-width: 768px) {
  h1 { font-size: 24px; }
  h2 { font-size: 22px; }
  h3 { font-size: 20px; }
  h4 { font-size: 18px; }
  h5 { font-size: 16px; }
  h6 { font-size: 14px; }
  body { font-size: 14px; }
  small, .small { font-size: 12px; }

  .two-column,
  .signup-form {
    flex-direction: column;
  }
}
