@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: linear-gradient(to bottom, #0c0a09, #1c1917, #0c0a09);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow-x: hidden;
  font-family: 'Jost', sans-serif;
}

.ambient-glow {
  position: absolute;
  top: 33%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(254, 243, 199, 0.05);
  filter: blur(80px);
  pointer-events: none;
  animation: glow 8s ease-in-out infinite;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,250,240,0.8) 0%, rgba(255,250,240,0) 70%);
  opacity: 0.6;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  50% { transform: translateY(-30px) translateX(10px); opacity: 0.7; }
}

@keyframes glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

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

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

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(41, 37, 36, 0.3);
  border-top-color: #292524;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.main-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 420px;
}

.logo-section {
  text-align: center;
  margin-bottom: 40px;
}

.logo-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(to bottom right, rgba(254, 243, 199, 0.2), rgba(253, 230, 138, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-icon span {
  font-size: 24px;
  color: rgba(254, 243, 199, 0.9);
}

.logo-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: #fffbeb;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.logo-subtitle {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(254, 243, 199, 0.5);
}

.form-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: #fffbeb;
  text-align: center;
  margin-bottom: 24px;
}

.form-description {
  text-align: center;
  color: rgba(254, 243, 199, 0.5);
  font-size: 0.875rem;
  margin-bottom: 24px;
  margin-top: -16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fffbeb;
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: rgba(254, 243, 199, 0.3);
}

.form-input:focus {
  outline: none;
  border-color: rgba(252, 211, 77, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.form-input.error {
  border-color: rgba(251, 113, 133, 0.5);
}

.error-text {
  color: #fb7185;
  font-size: 0.875rem;
  margin-top: 4px;
  display: none;
}

.forgot-link {
  text-align: right;
  margin-bottom: 16px;
}

.link {
  color: rgba(252, 211, 77, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s ease;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}

.link:hover {
  color: rgba(254, 243, 199, 1);
}

.submit-btn {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  background: linear-gradient(to right, rgba(252, 211, 77, 0.9), rgba(254, 243, 199, 0.9));
  color: #292524;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px -5px rgba(252, 211, 77, 0.2);
  margin-bottom: 20px;
}

.submit-btn:hover {
  background: linear-gradient(to right, rgba(254, 243, 199, 1), rgba(255, 255, 255, 1));
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-footer {
  text-align: center;
  color: rgba(254, 243, 199, 0.5);
  font-size: 0.875rem;
}

.message {
  padding: 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: none;
}

.message.error {
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
}

.message.success {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.footer-quote {
  font-family: 'Cormorant Garamond', serif;
  text-align: center;
  color: rgba(254, 243, 199, 0.3);
  font-size: 0.875rem;
  font-style: italic;
  margin-top: 32px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.screen {
  display: none;
}

.screen.active {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}


#auth-screen {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#dashboard-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  min-height: 100vh;
  background: linear-gradient(to bottom, #0c0a09, #1c1917, #0c0a09);
}

.dashboard {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dashboard-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: #fffbeb;
  letter-spacing: 0.05em;
}

.signout-btn {
  background: none;
  border: none;
  color: rgba(252, 211, 77, 0.6);
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
}

.dashboard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-bottom: 80px;
}

.dashboard-content {
  text-align: center;
  max-width: 420px;
}

.dashboard-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: linear-gradient(to bottom right, rgba(254, 243, 199, 0.2), rgba(253, 230, 138, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-icon span {
  font-size: 2rem;
}

.dashboard-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: #fffbeb;
  margin-bottom: 16px;
}

.dashboard-subtitle {
  color: rgba(254, 243, 199, 0.6);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 32px;
}

.profile-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
  text-align: left;
}

.profile-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(252, 211, 77, 0.5);
  margin-bottom: 16px;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.profile-key {
  color: rgba(254, 243, 199, 0.5);
}

.profile-value {
  color: #fffbeb;
  text-align: right;
  word-break: break-all;
}

.dashboard-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  font-style: italic;
  color: rgba(254, 243, 199, 0.4);
}
#auth-screen.hidden {
  display: none !important;
}

.screen.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
/* ============================================
   QUESTIONNAIRE STYLES
   ============================================ */

#questionnaire-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to bottom, #0c0a09, #1c1917, #0c0a09);
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  z-index: 200;
  padding-top: 0;
}

.questionnaire-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  padding-top: 24px;
  padding-bottom: 100px;
  min-height: 100%;
}

.questionnaire-header {
  margin-bottom: 32px;
}

.questionnaire-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.questionnaire-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: #fffbeb;
  letter-spacing: 0.05em;
}

.back-to-dashboard-btn {
  background: none;
  border: 1px solid rgba(252, 211, 77, 0.3);
  color: rgba(252, 211, 77, 0.8);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-to-dashboard-btn:hover {
  background: rgba(252, 211, 77, 0.1);
  border-color: rgba(252, 211, 77, 0.5);
}

.questionnaire-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: #fffbeb;
  text-align: center;
  margin-bottom: 16px;
}

.questionnaire-intro {
  color: rgba(254, 243, 199, 0.6);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.questionnaire-intro.small {
  font-size: 0.8rem;
  color: rgba(254, 243, 199, 0.4);
}

.readonly-notice {
  background: rgba(252, 211, 77, 0.1);
  border: 1px solid rgba(252, 211, 77, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: center;
}

.readonly-notice p {
  color: rgba(254, 243, 199, 0.8);
  font-size: 0.9rem;
  margin: 0;
}

.progress-container {
  margin-bottom: 24px;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, rgba(252, 211, 77, 0.8), rgba(254, 243, 199, 0.9));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(254, 243, 199, 0.5);
}

.section-tabs-container {
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.section-tabs {
  display: flex;
  gap: 8px;
  padding-bottom: 8px;
  min-width: max-content;
}

.section-tab {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(254, 243, 199, 0.5);
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.section-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(254, 243, 199, 0.8);
}

.section-tab.active {
  background: rgba(252, 211, 77, 0.2);
  border-color: rgba(252, 211, 77, 0.4);
  color: rgba(254, 243, 199, 1);
}

.question-section {
  display: none;
}

.question-section.active {
  display: block;
}

.section-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #fffbeb;
  margin-bottom: 4px;
}

.section-header p {
  color: rgba(254, 243, 199, 0.5);
  font-size: 0.875rem;
}

.question-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.question-label {
  display: block;
  color: #fffbeb;
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.5;
}

.question-number {
  color: rgba(252, 211, 77, 0.8);
  font-weight: 500;
  margin-right: 8px;
}

.question-hint {
  color: rgba(254, 243, 199, 0.4);
  font-size: 0.8rem;
  margin-bottom: 12px;
  font-style: italic;
}

.question-required {
  color: #fb7185;
  margin-left: 4px;
}

.q-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fffbeb;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.q-input:focus {
  outline: none;
  border-color: rgba(252, 211, 77, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.q-input::placeholder {
  color: rgba(254, 243, 199, 0.3);
}

.q-input[readonly] {
  opacity: 0.7;
  cursor: not-allowed;
}

textarea.q-input {
  min-height: 100px;
  resize: vertical;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: rgba(252, 211, 77, 0.9);
  cursor: pointer;
}

.option-item label {
  color: rgba(254, 243, 199, 0.8);
  font-size: 0.9rem;
  cursor: pointer;
  flex: 1;
}

.other-container {
  margin-top: 8px;
  padding-left: 30px;
}

.other-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fffbeb;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
}

.other-input:focus {
  outline: none;
  border-color: rgba(252, 211, 77, 0.4);
}

.scale-container {
  margin-top: 12px;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: rgba(254, 243, 199, 0.5);
}

.scale-input {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
}

.scale-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: linear-gradient(to bottom right, rgba(252, 211, 77, 0.9), rgba(254, 243, 199, 0.9));
  border-radius: 50%;
  cursor: pointer;
}

.scale-value {
  text-align: center;
  margin-top: 8px;
  font-size: 1.25rem;
  color: rgba(252, 211, 77, 0.9);
  font-weight: 500;
}

.questionnaire-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn {
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(254, 243, 199, 0.8);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

#submit-questionnaire-btn {
  flex: 1;
  max-width: 300px;
  margin: 0 auto;
}

.autosave-indicator {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(0, 0, 0, 0.8);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: rgba(254, 243, 199, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.autosave-indicator.visible {
  opacity: 1;
}

@media (max-width: 600px) {
  .questionnaire-container {
    padding: 16px;
  }
  
  .questionnaire-header-top {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .questionnaire-nav {
    flex-direction: column;
  }
  
  .nav-btn {
    width: 100%;
  }
  
  #submit-questionnaire-btn {
    max-width: 100%;
  }
}

#questionnaire-screen.active {
  display: block !important;
  overflow-y: scroll !important;
  -webkit-overflow-scrolling: touch !important;
}

.questionnaire-header {
  position: relative;
  z-index: 10;
}
/* ============================================
   ADMIN VIEW STYLES
   ============================================ */

.admin-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
  min-height: 100vh;
}

.admin-header {
  text-align: center;
  margin-bottom: 32px;
}

.admin-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: #f5f5f4;
  margin: 16px 0 8px 0;
}

.admin-header p {
  color: #a8a29e;
  font-size: 1rem;
}

.admin-header .back-btn {
  background: transparent;
  border: 1px solid #44403c;
  color: #d6d3d1;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.admin-header .back-btn:hover {
  background: #292524;
  border-color: #78716c;
}

.admin-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.stat-card {
  background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
  border: 1px solid #44403c;
  border-radius: 12px;
  padding: 20px 32px;
  text-align: center;
  min-width: 140px;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: #d4af37;
  margin-bottom: 4px;
}

.stat-label {
  color: #a8a29e;
  font-size: 0.85rem;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.loading-message {
  text-align: center;
  color: #a8a29e;
  padding: 40px;
}

.response-card {
  background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
  border: 1px solid #44403c;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.response-card:hover {
  border-color: #d4af37;
  transform: translateY(-2px);
}

.response-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.response-card-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #f5f5f4;
}

.response-card-date {
  font-size: 0.85rem;
  color: #a8a29e;
}

.response-card-details {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.response-card-detail {
  font-size: 0.9rem;
  color: #d6d3d1;
}

.response-card-detail span {
  color: #a8a29e;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
}

.modal.active {
  display: block;
}

.modal-content {
  background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
  border: 1px solid #44403c;
  border-radius: 16px;
  max-width: 800px;
  margin: 40px auto;
  padding: 32px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #a8a29e;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #f5f5f4;
}

#modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: #f5f5f4;
  margin-bottom: 24px;
  padding-right: 40px;
}

#modal-body {
  max-height: 60vh;
  overflow-y: auto;
}

.modal-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #44403c;
}

.modal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.modal-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #d4af37;
  margin-bottom: 16px;
}

.modal-field {
  margin-bottom: 12px;
}

.modal-field-label {
  font-size: 0.85rem;
  color: #a8a29e;
  margin-bottom: 4px;
}

.modal-field-value {
  color: #f5f5f4;
  font-size: 0.95rem;
  line-height: 1.5;
}

.no-responses {
  text-align: center;
  padding: 60px 20px;
  color: #a8a29e;
}

.no-responses h3 {
  font-size: 1.3rem;
  color: #d6d3d1;
  margin-bottom: 8px;
}
