/* Global App Styles */
.app {
  width: 100%;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

/* Remove default margin and padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Ensure full height layout */
html, body, #root {
  height: 100%;
  width: 100%;
  /* iOS Safari specific fixes */
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* iOS Safari viewport fixes */
@supports (-webkit-touch-callout: none) {
  html {
    height: -webkit-fill-available;
  }
  body, #root {
    min-height: -webkit-fill-available;
  }
}

/* iOS Safari 下ナビバー隠し対応 - bodyスクロールに修正 */
body {
  width: 100%;
  height: auto;
  min-height: 100%;
  overflow: auto;
  overscroll-behavior: auto;
  /* iOS Safari specific */
  -webkit-overflow-scrolling: touch;
}

#root {
  position: relative;
  min-height: 100%;
}:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}
.build-version {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 1000;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  pointer-events: none;
}

.build-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 10px;
  line-height: 1.2;
}

.version-text {
  color: #ffffff;
  font-weight: bold;
}

.build-time {
  color: #cccccc;
  font-size: 9px;
  margin-top: 1px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .build-version {
    bottom: 8px;
    right: 8px;
    padding: 3px 6px;
  }
  
  .build-info {
    font-size: 9px;
  }
  
  .build-time {
    font-size: 8px;
  }
}

/* Hide on very small screens to avoid clutter */
@media (max-width: 480px) {
  .build-version {
    display: none;
  }
}/* Landing Page Styles - HEP-FIVE Brand Integration */

.landing-page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Background Container */
.background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(135, 206, 235, 0.2) 0%,
    /* Sky blue tint */ rgba(135, 206, 235, 0.3) 50%,
    rgba(0, 0, 0, 0.4) 100% /* Dark bottom for text readability */
  );
}

/* Content Container */
.content-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px;
  color: white;
}

/* Logo Container */
.logo-container {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 3;
}

.hep-five-logo {
  height: 126px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: block;
  margin: 0 auto;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
  padding-top: 120px; /* Add padding to avoid overlap with logo */
}

.title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  color: #ffffff;
  line-height: 1.2;
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  color: #ffffff;
  opacity: 0.9;
}

/* Headphone Recommendation */
.headphone-recommendation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.headphone-icon {
  font-size: 1.2rem;
}

.headphone-text {
  font-size: 0.9rem;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Start Button */
.start-button {
  background: linear-gradient(135deg, #e60012, #c30010);
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(230, 0, 18, 0.3);
  min-width: 200px;
  min-height: 44px;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.start-button:hover {
  background: linear-gradient(135deg, #c30010, #a50008);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 0, 18, 0.4);
}

.start-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(230, 0, 18, 0.3);
}

.start-button:disabled {
  background: linear-gradient(135deg, #888, #666);
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Credits Section */
.credits-section {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-bottom: 2rem;
  opacity: 0.8;
}

.tech-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.credit-label {
  font-size: 0.8rem;
  color: #ffffff;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.resense-logo-completion {
  height: 60px !important;
  width: auto !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  transform: scale(1.0) !important;
  min-height: 60px !important;
  max-height: none !important;
}

.company-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.9rem;
}

.operated-by {
  color: #ffffff;
  opacity: 0.6;
  font-size: 0.8rem;
}

.company-name {
  color: #ffffff;
  font-weight: 500;
}

.copyright {
  font-size: 0.8rem;
  color: #ffffff;
  opacity: 0.6;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 480px) {
  .content-container {
    padding: 15px;
  }

  .main-content {
    padding-top: 140px; /* Reduce padding for mobile */
  }

  .title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .headphone-recommendation {
    margin-bottom: 2rem;
    padding: 10px 16px;
  }

  .headphone-text {
    font-size: 0.8rem;
  }

  .start-button {
    padding: 16px 32px;
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hep-five-logo {
    height: 105px;
  }

  .logo-container {
    top: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 320px) {
  .title {
    font-size: 1.8rem;
  }

  .start-button {
    min-width: 180px;
    padding: 14px 28px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .start-button {
    transition: none;
  }

  .start-button:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .background-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.8) 100%
    );
  }

  .start-button {
    border: 2px solid white;
  }
}
.scene-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
}

.scene-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 800ms ease-in-out;
}

.scene-image.active {
  opacity: 1;
}

.scene-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.image-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.indicator.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .scene-image-container {
    border-radius: 8px;
  }
  
  .scene-image-placeholder {
    font-size: 14px;
  }
  
  .image-indicators {
    bottom: 12px;
  }
  
  .indicator {
    width: 6px;
    height: 6px;
  }
}.scene-info {
  background: white;
  padding: 1rem;
  margin: 0;
  border-radius: 8px;
}

.scene-info-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scene-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.scene-time {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.scene-image-count {
  color: #666;
  font-size: 12px;
  padding: 4px 8px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
}

.scene-title {
  font-size: 18px;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.3;
  margin-bottom: 4px;
}

.scene-description {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.5;
  opacity: 0.9;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .scene-info {
    padding: 0;
    margin: 0;
  }

  .scene-title {
    font-size: 16px;
  }

  .scene-description {
    font-size: 13px;
  }

  .scene-meta {
    gap: 8px;
  }

  .scene-time {
    font-size: 11px;
    padding: 3px 10px;
  }

  .scene-image-count {
    font-size: 11px;
    padding: 3px 6px;
  }
}

/* Tablet landscape */
@media (min-width: 769px) and (max-width: 1024px) {
  .scene-info {
    padding: 0;
  }

  .scene-title {
    font-size: 17px;
  }
}

/* Animation for scene changes */
.scene-info {
  transition: all 0.3s ease-in-out;
}

.scene-info:hover {
  /* Remove hover effects */
}

/* External Link Icon Styles for Scene Info */
.scene-title-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scene-info-link {
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: all 0.2s ease;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(102, 126, 234, 0.1);
  flex-shrink: 0;
  min-width: 24px;
  text-align: center;
}

.scene-info-link:hover {
  opacity: 1;
  background: rgba(102, 126, 234, 0.2);
  transform: scale(1.1);
}
/* Player Page Styles - Immersive Gondola Experience */

:root {
  --vh: 1vh;
}

/* PlayerPage specific styles only - global styles in App.css */

.player-page {
  position: relative;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  min-height: calc(var(--vh, 1vh) * 100);
  width: 100%;
  /* Remove flex layout that may interfere with body scrolling */
}

/* Scene Container */
.scene-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  height: -webkit-fill-available;
  height: calc(var(--vh, 1vh) * 100);
  z-index: 1;
}

.scene-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 2;
}

/* Fallback for original background container (if needed) */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  height: -webkit-fill-available;
  height: calc(var(--vh, 1vh) * 100);
  z-index: 1;
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

/* Player Interface */
.player-interface {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  min-height: calc(var(--vh, 1vh) * 100);
  padding: 20px 20px calc(120px + env(safe-area-inset-bottom)) 20px;
  color: white;
}

/* Safari-specific styles for hiding navigation bar */
@supports (-webkit-touch-callout: none) {
  .player-interface {
    /* Safari minimal-ui viewport meta tag behavior enhancement */
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  /* Ensure content can scroll past the bottom fold */
  .player-interface::after {
    content: '';
    display: block;
    height: 1px;
    width: 100%;
    opacity: 0;
  }
}

/* Player Header */
.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.player-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  margin: 0;
}

.headphone-reminder {
  display: flex;
  align-items: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.headphone-icon {
  font-size: 1.2rem;
}

/* Progress Section */
.progress-section {
  margin: 2rem 0;
}

.time-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.separator {
  opacity: 0.7;
}

.progress-container {
  width: 100%;
  margin-bottom: 1rem;
  position: relative;
}

/* Scene Markers */
.scene-markers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  z-index: 3;
  pointer-events: none;
}

.scene-marker {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(230, 0, 18, 0.8);
  transition: all 0.3s ease;
  pointer-events: none;
}

.scene-marker.passed {
  background: #E60012;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 4px rgba(230, 0, 18, 0.6);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  z-index: 2;
}

/* サウンドクラウド風の波形ビジュアライザー */
.waveform-visualizer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1px;
  z-index: 1;
  opacity: 0.4;
  pointer-events: none;
}

.waveform-bar {
  width: 4px;
  background: linear-gradient(to top, #E60012, #ff4444);
  border-radius: 2px 2px 0 0;
  transition: height 0.1s ease-out;
}

/* 音量ベースの波形アニメーション - JavaScriptで動的に制御 */

.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E60012;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 2px solid white;
}

.progress-bar::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E60012;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 2px solid white;
}

.progress-bar::-webkit-slider-track {
  height: 8px;
  background: linear-gradient(
    to right,
    #E60012 0%,
    #E60012 var(--progress, 0%),
    rgba(255, 255, 255, 0.2) var(--progress, 0%),
    rgba(255, 255, 255, 0.2) 100%
  );
  border-radius: 4px;
}

/* Fixed Player Controls at Bottom */
.fixed-player-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

/* iOS fallback: use sticky positioning */
@supports (-webkit-touch-callout: none) {
  body {
    padding-bottom: 0 !important;
  }
  
  .player-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
  
  .player-interface {
    flex: 1;
    padding-bottom: 20px; /* Remove extra padding for sticky */
  }
  
  .fixed-player-controls {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    flex-shrink: 0;
  }
}

/* Additional iOS specific adjustments merged above */

.play-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff4d4d, #E60012);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 8px 16px rgba(230, 0, 18, 0.25),
    0 4px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  min-width: 44px;
  min-height: 44px;
  position: relative;
  overflow: visible;
}

.play-button:hover {
  background: linear-gradient(145deg, #ff6666, #ff1a1a);
  transform: translateY(-2px);
  box-shadow: 
    0 12px 24px rgba(230, 0, 18, 0.35),
    0 6px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.play-button:active {
  transform: scale(0.95) translateY(-1px);
  box-shadow: 
    0 4px 8px rgba(230, 0, 18, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.1s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* 押下時の素早い弾性アニメーション */
.play-button.button-pressed {
  animation: modernButtonPress 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modernButtonPress {
  0% { 
    transform: scale(1) translateY(0px);
    box-shadow: 
      0 8px 16px rgba(230, 0, 18, 0.25),
      0 4px 8px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  30% { 
    transform: scale(0.92) translateY(2px);
    box-shadow: 
      0 4px 8px rgba(230, 0, 18, 0.3),
      0 2px 4px rgba(0, 0, 0, 0.15),
      inset 0 2px 4px rgba(0, 0, 0, 0.15);
  }
  100% { 
    transform: scale(1) translateY(0px);
    box-shadow: 
      0 8px 16px rgba(230, 0, 18, 0.25),
      0 4px 8px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

/* 再生中の波紋アニメーション */
.play-button.playing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 77, 77, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: modernRipple 2s infinite;
  z-index: -1;
}

.play-button.playing::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 77, 77, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: modernRipple 2s infinite 0.7s;
  z-index: -1;
}

@keyframes modernRipple {
  0% {
    width: 100%;
    height: 100%;
    opacity: 1;
    border-width: 3px;
  }
  50% {
    width: 130%;
    height: 130%;
    opacity: 0.6;
    border-width: 2px;
  }
  100% {
    width: 160%;
    height: 160%;
    opacity: 0;
    border-width: 1px;
  }
}

.play-button:disabled {
  background: linear-gradient(135deg, #666, #444);
  cursor: not-allowed;
  transform: none;
}

.loading-spinner {
  animation: spin 1s linear infinite;
}

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


/* Credits Section */
.credits-section {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-bottom: 2rem;
  opacity: 0.8;
}

.tech-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.credit-label {
  font-size: 0.8rem;
  color: #ffffff;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.resense-logo-completion {
  height: 60px !important;
  width: auto !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  transform: scale(1.0) !important;
  min-height: 60px !important;
  max-height: none !important;
}

.company-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.9rem;
}

.operated-by {
  color: #ffffff;
  opacity: 0.6;
  font-size: 0.8rem;
}

.company-name {
  color: #ffffff;
  font-weight: 500;
}

.copyright {
  font-size: 0.8rem;
  color: #ffffff;
  opacity: 0.6;
  text-align: center;
}

/* Survey Modal */
.survey-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000; /* Above fixed player */
  padding: 20px;
}

.survey-content {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  color: #333;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.survey-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: #333;
}

.survey-content p {
  margin: 0 0 2rem 0;
  color: #666;
  font-size: 1rem;
}

.survey-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.survey-btn {
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
}

.survey-btn.excellent {
  background: #4CAF50;
  color: white;
}

.survey-btn.good {
  background: #8BC34A;
  color: white;
}

.survey-btn.fair {
  background: #FF9800;
  color: white;
}

.survey-btn.poor {
  background: #F44336;
  color: white;
}

.survey-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.survey-skip {
  background: transparent;
  border: 1px solid #ddd;
  color: #666;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.survey-skip:hover {
  background: #f5f5f5;
}

/* Error State */
.error-state {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.error-content {
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 400px;
}

.error-content h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.error-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

.retry-button {
  background: linear-gradient(135deg, #E60012, #c30010);
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
}

.retry-button:hover {
  background: linear-gradient(135deg, #c30010, #a50008);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 480px) {
  .player-interface {
    padding: 15px 15px 120px 15px;
  }
  
  .player-title {
    font-size: 1.3rem;
  }
  
  .fixed-player-controls {
    padding: 15px 15px calc(15px + env(safe-area-inset-bottom));
  }
  
  .play-button {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    box-shadow: 
      0 6px 12px rgba(230, 0, 18, 0.25),
      0 3px 6px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  }
  
  
  .survey-content {
    padding: 1.5rem;
  }
  
  .survey-buttons {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .play-button,
  .survey-btn,
  .loading-spinner {
    transition: none;
    animation: none;
  }
  
  .play-button:hover,
  .survey-btn:hover {
    transform: none;
  }
}

/* Focus states for keyboard navigation */
.play-button:focus,
.progress-bar:focus,
.survey-btn:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.survey-skip:focus {
  outline: 2px solid #E60012;
  outline-offset: 2px;
}/* Player Page Styles - Immersive Gondola Experience */

:root {
  --vh: 1vh;
}

/* PlayerPage specific styles only - global styles in App.css */

.player-page {
  position: relative;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  min-height: calc(var(--vh, 1vh) * 100);
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  /* Remove flex layout that may interfere with body scrolling */
}

/* Scene Image Section */
.scene-image-section {
  width: 100%;
  aspect-ratio: 8 / 5; /* 800x500 aspect ratio */
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Fallback for original background container (if needed) */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  height: -webkit-fill-available;
  height: calc(var(--vh, 1vh) * 100);
  z-index: 1;
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

/* Player Interface */
.player-interface {
  position: relative;
  padding: 40px 20px 120px;
  display: flex;
  flex-direction: column;
  color: white;
}

/* Header */
.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0rem;
}

.player-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  margin: 0.5rem 0;
  line-height: 1.2;
}

.headphone-reminder {
  display: flex;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.headphone-icon {
  font-size: 1.2rem;
}

/* Scene Information Display */
.scene-info-display {
  margin-bottom: 0rem;
}

.scene-info-display .scene-info {
  margin-left: 1rem !important;
  padding-left: 2rem !important;
}

.scene-info-display .scene-info-content {
  padding-left: 1rem !important;
  padding-right: 2rem !important;
}

.scene-info-display .scene-title {
  padding-left: 0rem !important;
  margin-bottom: 0.25rem !important;
}

.scene-info-display .scene-description {
  padding-left: 0rem !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.scene-info-display .scene-info-content {
  padding-left: 1rem !important;
  gap: 0.25rem !important;
}

/* Progress Section */
.progress-section {
  margin-top: auto;
  margin-bottom: 2rem;
}

.time-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.separator {
  margin: 0 0.5rem;
  opacity: 0.7;
}

.progress-container {
  position: relative;
  margin-bottom: 1rem;
}

/* Waveform Visualizer */
.waveform-visualizer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  height: 60px;
  margin-bottom: 1rem;
  padding: 0 4px;
  gap: 1px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.waveform-bar {
  flex: 1;
  background: linear-gradient(to top, #667eea, #764ba2);
  border-radius: 2px;
  transition: height 0.1s ease;
  opacity: 0.7;
}

.waveform-visualizer.playing .waveform-bar {
  opacity: 1;
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  appearance: none;
  cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.progress-bar::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Credits Section */
.credits-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-credit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.credit-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.resense-logo-completion {
  height: 24px;
  opacity: 0.9;
}

.company-credit {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.operated-by {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.company-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* Fixed Player Controls */
.fixed-player-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Row 1: Progress Bar (full width) */
.fixed-player-controls .progress-container {
  width: 100%;
  position: relative;
}

/* Scene Markers */
.fixed-player-controls .scene-markers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  z-index: 3;
  pointer-events: none;
}

.fixed-player-controls .scene-marker {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(230, 0, 18, 0.8);
  transition: all 0.3s ease;
  pointer-events: none;
}

.fixed-player-controls .scene-marker.passed {
  background: #e60012;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 4px rgba(230, 0, 18, 0.6);
}

.fixed-player-controls .progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  appearance: none;
  cursor: pointer;
}

/* Row 2: Controls Row (time + play button + time) */
.controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  width: 100%;
}

.controls-row .current-time {
  position: absolute;
  left: 0;
  top: 0;
}

.controls-row .total-time {
  position: absolute;
  right: 0;
  top: 0;
}

.controls-row .play-button {
  position: relative;
  z-index: 1;
}

.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

.play-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.play-button:active,
.play-button.button-pressed {
  transform: scale(0.95);
}

.play-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner {
  font-size: 1.5rem;
}

/* Error State */
.error-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem;
}

.error-content {
  text-align: center;
  color: white;
  max-width: 400px;
}

.error-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.error-content p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.retry-button {
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retry-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Survey Modal */
.survey-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.survey-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  color: #333;
}

.survey-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.survey-content p {
  margin-bottom: 1.5rem;
  color: #4a5568;
  font-size: 0.875rem;
}

.survey-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.survey-btn {
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.survey-btn.excellent {
  background: #48bb78;
  color: white;
}

.survey-btn.good {
  background: #38b2ac;
  color: white;
}

.survey-btn.fair {
  background: #ed8936;
  color: white;
}

.survey-btn.poor {
  background: #e53e3e;
  color: white;
}

.survey-btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.survey-skip {
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  color: #4a5568;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.survey-skip:hover {
  background: #f7fafc;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .player-interface {
    padding: 20px 16px 100px;
  }

  .player-header {
    margin-bottom: 1.5rem;
  }

  .player-title {
    font-size: 1.5rem;
  }

  .headphone-reminder {
    padding: 8px;
  }

  .headphone-icon {
    font-size: 1rem;
  }

  .waveform-visualizer {
    height: 50px;
  }

  .play-button {
    width: 56px;
    height: 56px;
  }

  .fixed-player-controls {
    padding: 16px;
  }

  .survey-modal {
    padding: 1rem;
  }

  .survey-content {
    padding: 1.5rem;
  }
}

/* iPhone specific adjustments */
@media (max-width: 480px) {
  .player-interface {
    padding: 16px 12px 90px;
  }

  .player-title {
    font-size: 1.25rem;
  }

  .time-display {
    font-size: 0.8rem;
  }

  .waveform-visualizer {
    height: 40px;
  }
}

/* ========================================
   Journey Progress Styles
   ======================================== */

.scene-journey-progress {
  margin: 0;
  padding: 1rem;
  background: white;
  border-radius: 8px;
}

.journey-progress-container {
  width: 100%;
  max-width: 100%;
}

.journey-progress-header {
  margin-bottom: 0.8rem;
}

.journey-progress-header h3 {
  color: #333333;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.journey-progress-header h3::before {
  content: '🎯';
  font-size: 1.2rem;
}

.journey-progress-content {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(68, 68, 68, 0.3) transparent;
}

.journey-progress-content::-webkit-scrollbar {
  width: 6px;
}

.journey-progress-content::-webkit-scrollbar-track {
  background: transparent;
}

.journey-progress-content::-webkit-scrollbar-thumb {
  background-color: rgba(68, 68, 68, 0.3);
  border-radius: 3px;
}

.timeline-container {
  position: relative;
  width: 100%;
}

.timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #e0e0e0;
  border-radius: 2px;
  z-index: 1;
}

.progress-line {
  position: absolute;
  left: 20px;
  top: 0;
  width: 3px;
  background: linear-gradient(to bottom, #ff6b6b, #ff8e8e);
  border-radius: 2px;
  z-index: 2;
  transition: height 0.8s ease;
}

.scene-items {
  position: relative;
  z-index: 3;
  padding-left: 50px;
}

.scene-item {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.scene-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.scene-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 1rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 4;
  position: relative;
}

.scene-dot.upcoming {
  background-color: #cccccc;
}

.scene-dot.completed {
  background-color: #ff6b6b;
}

.scene-dot.current {
  background-color: #ff6b6b;
  transform: scale(1.2);
}

.journey-scene-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.scene-time {
  font-size: 0.85rem;
  font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
  font-weight: 600;
  letter-spacing: 0.5px;
  min-width: 60px;
  text-align: left;
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 4px;
}

.scene-time.upcoming {
  color: #999999;
}

.scene-time.completed {
  color: #aaaaaa;
}

.scene-time.current {
  color: #ff6b6b;
  font-weight: 700;
}

.scene-title {
  font-weight: 600;
  line-height: 1.3;
  transition: all 0.3s ease;
  flex: 1;
}

.scene-title.upcoming {
  color: #666666;
  font-size: 0.95rem;
}

.scene-title.completed {
  color: #888888;
  font-size: 0.95rem;
}

.scene-title.current {
  color: #ff6b6b;
  font-size: 1rem;
  font-weight: 700;
}

/* Journey Progress Responsive adjustments */
@media (max-width: 768px) {
  .scene-journey-progress {
    margin: 0.8rem 0;
    padding: 1rem;
  }

  .journey-progress-content {
    max-height: 300px;
  }

  .journey-progress-header h3 {
    font-size: 1.2rem;
  }

  .journey-scene-info {
    gap: 0.6rem;
  }

  .scene-time {
    font-size: 0.8rem;
    min-width: 55px;
  }

  .scene-title.current {
    font-size: 0.95rem;
  }

  .scene-title.upcoming,
  .scene-title.completed {
    font-size: 0.9rem;
  }

  .scene-dot {
    width: 10px;
    height: 10px;
  }

  .scene-dot.current {
    transform: scale(1.1);
  }

  .scene-item {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
  }
}

@media (max-width: 480px) {
  .scene-journey-progress {
    margin: 0.5rem 0;
    padding: 0.8rem;
  }

  .journey-progress-content {
    max-height: 250px;
  }

  .journey-progress-header h3 {
    font-size: 1.1rem;
  }

  .journey-scene-info {
    gap: 0.5rem;
  }

  .scene-time {
    font-size: 0.75rem;
    min-width: 50px;
  }

  .scene-dot {
    width: 8px;
    height: 8px;
    margin-right: 0.8rem;
  }

  .scene-item {
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .scene-title.current {
    font-size: 0.9rem;
  }

  .scene-title.upcoming,
  .scene-title.completed {
    font-size: 0.85rem;
  }
}

/* External Link Icon Styles for Journey Progress */
.scene-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.external-link-icon {
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: all 0.2s ease;
  padding: 2px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  min-width: 24px;
  text-align: center;
}

.external-link-icon:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}
/* Survey Page Styles - HEP-FIVE Brand Integration */

.survey-page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Background Container */
.background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

/* Survey Content */
.survey-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px;
  color: white;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Survey Header */
.survey-header {
  margin-bottom: 3rem;
  max-width: 500px;
}

.survey-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  color: #ffffff;
}

.survey-header p {
  font-size: 1.1rem;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  color: #ffffff;
  opacity: 0.9;
  line-height: 1.5;
}

/* Rating Grid */
.rating-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  max-width: 400px;
  width: 100%;
}

.rating-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-height: 120px;
  min-width: 140px;
  position: relative;
  overflow: hidden;
}

.rating-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  pointer-events: none;
}

.rating-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.rating-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.rating-button.excellent {
  background: linear-gradient(135deg, #4CAF50, #45a049);
}

.rating-button.good {
  background: linear-gradient(135deg, #8BC34A, #7cb342);
}

.rating-button.fair {
  background: linear-gradient(135deg, #FF9800, #f57c00);
}

.rating-button.poor {
  background: linear-gradient(135deg, #F44336, #d32f2f);
}

.rating-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.rating-text {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Survey Footer */
.survey-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-bottom: 2rem;
}

.skip-button {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-height: 44px;
}

.skip-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.skip-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.privacy-note {
  opacity: 0.7;
  font-size: 0.9rem;
  text-align: center;
  max-width: 300px;
}

/* Submitting State */
.submitting-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.loading-spinner {
  animation: spin 1s linear infinite;
  font-size: 1.2rem;
}

/* Submitted State */
.submitted-state .survey-content {
  justify-content: center;
}

.thank-you-message {
  text-align: center;
  max-width: 400px;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.thank-you-message h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #4CAF50;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.thank-you-message p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  line-height: 1.5;
}

.loading-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  opacity: 0.8;
}

.loading-dots {
  display: flex;
  gap: 0.2rem;
}

.loading-dots span {
  animation: dot-pulse 1.5s infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dot-pulse {
  0%, 60%, 100% {
    opacity: 0.4;
  }
  30% {
    opacity: 1;
  }
}

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

/* HEP-FIVE Logo */
.logo-container {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
}

.hep-five-logo {
  height: 75px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 10px;
  border-radius: 6px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 480px) {
  .survey-content {
    padding: 15px;
  }
  
  .survey-header h1 {
    font-size: 1.8rem;
  }
  
  .survey-header p {
    font-size: 1rem;
  }
  
  .rating-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .rating-button {
    min-height: 100px;
    padding: 1rem;
  }
  
  .rating-emoji {
    font-size: 2rem;
  }
  
  .rating-text {
    font-size: 1rem;
  }
  
  .thank-you-message h2 {
    font-size: 1.6rem;
  }
  
  .logo-container {
    top: 15px;
    left: 15px;
  }
  
  .hep-five-logo {
    height: 60px;
  }
}

@media (max-width: 320px) {
  .survey-header h1 {
    font-size: 1.6rem;
  }
  
  .rating-button {
    min-height: 90px;
    min-width: 120px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .rating-button,
  .loading-spinner,
  .loading-dots span {
    transition: none;
    animation: none;
  }
  
  .rating-button:hover {
    transform: none;
  }
}

/* Focus states for keyboard navigation */
.rating-button:focus,
.skip-button:focus {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .background-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.9) 100%
    );
  }
  
  .rating-button,
  .skip-button {
    border: 2px solid white;
  }
}/* Completion Page Styles - Celebration & Branding */

.completion-page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Background Container */
.background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(135, 206, 235, 0.3) 0%,    /* Sky blue celebration tint */
    rgba(75, 0, 130, 0.2) 30%,      /* Purple twilight */
    rgba(0, 0, 0, 0.6) 100%         /* Dark bottom for readability */
  );
}

/* Content Container */
.completion-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px;
  color: white;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Completion Message */
.completion-message {
  margin-bottom: 3rem;
  max-width: 500px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out;
}

.completion-message.animate {
  opacity: 1;
  transform: translateY(0);
}

.celebration-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: celebration-bounce 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes celebration-bounce {
  0%, 100% { 
    transform: translateY(0) scale(1); 
  }
  50% { 
    transform: translateY(-10px) scale(1.1); 
  }
}

.completion-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.7);
  color: #ffffff;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff, #f0f8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.completion-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  color: #ffffff;
  opacity: 0.95;
  line-height: 1.6;
}

/* Experience Summary */
.experience-summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
}

.summary-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.summary-text {
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
}

/* Action Section */
.action-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
  width: 100%;
  max-width: 320px;
}

.primary-action {
  background: linear-gradient(135deg, #E60012, #c30010);
  color: white;
  border: none;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(230, 0, 18, 0.3);
  min-height: 44px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.primary-action:hover {
  background: linear-gradient(135deg, #c30010, #a50008);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 0, 18, 0.4);
}

.secondary-action {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
}

.secondary-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* Sharing Section */
.sharing-section {
  margin-bottom: 3rem;
  max-width: 400px;
}

.sharing-text {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  color: #ffffff;
  opacity: 0.9;
}

.sharing-hashtag {
  font-size: 0.9rem;
  color: #87CEEB;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

/* Credits Section */
.credits-section {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-bottom: 2rem;
  opacity: 0.8;
}

.tech-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.credit-label {
  font-size: 0.8rem;
  color: #ffffff;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.resense-logo-completion {
  height: 60px !important;
  width: auto !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  transform: scale(1.0) !important;
  min-height: 60px !important;
  max-height: none !important;
}

.company-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.9rem;
}

.operated-by {
  color: #ffffff;
  opacity: 0.6;
  font-size: 0.8rem;
}

.company-name {
  color: #ffffff;
  font-weight: 500;
}

.copyright {
  font-size: 0.8rem;
  color: #ffffff;
  opacity: 0.6;
  text-align: center;
}

/* HEP-FIVE Logo */
.logo-container {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
}

.hep-five-logo {
  height: 126px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Floating Elements Animation */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-star,
.floating-cloud {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.6;
  animation-duration: 6s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.star-1 {
  top: 15%;
  left: 10%;
  animation: float-gentle 8s infinite;
  animation-delay: 0s;
}

.star-2 {
  top: 25%;
  right: 15%;
  animation: float-gentle 7s infinite;
  animation-delay: 2s;
}

.star-3 {
  top: 60%;
  left: 20%;
  animation: float-gentle 9s infinite;
  animation-delay: 4s;
}

.cloud-1 {
  top: 30%;
  right: 10%;
  animation: float-slow 12s infinite;
  animation-delay: 1s;
}

.cloud-2 {
  top: 70%;
  right: 25%;
  animation: float-slow 10s infinite;
  animation-delay: 6s;
}

@keyframes float-gentle {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(5deg);
  }
  66% {
    transform: translateY(5px) rotate(-3deg);
  }
}

@keyframes float-slow {
  0%, 100% {
    transform: translateX(0px) translateY(0px);
  }
  50% {
    transform: translateX(20px) translateY(-15px);
  }
}

/* Responsive Design */
@media (max-width: 480px) {
  .completion-content {
    padding: 15px;
  }
  
  .completion-title {
    font-size: 2.2rem;
  }
  
  .completion-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .celebration-icon {
    font-size: 3rem;
  }
  
  .experience-summary {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .summary-item {
    gap: 0.8rem;
  }
  
  .summary-icon {
    font-size: 1.3rem;
  }
  
  .summary-text {
    font-size: 0.9rem;
  }
  
  .action-section {
    margin-bottom: 2rem;
  }
  
  .primary-action {
    padding: 14px 28px;
    font-size: 1rem;
  }
  
  .secondary-action {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  .sharing-section {
    margin-bottom: 2rem;
  }
  
  .logo-container {
    top: 15px;
    left: 15px;
  }
  
  .hep-five-logo {
    height: 105px;
  }
}

@media (max-width: 320px) {
  .completion-title {
    font-size: 1.8rem;
  }
  
  .action-section {
    max-width: 280px;
  }
  
  .experience-summary {
    gap: 0.8rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .completion-message,
  .celebration-icon,
  .floating-star,
  .floating-cloud,
  .primary-action,
  .secondary-action {
    animation: none;
    transition: none;
  }
  
  .completion-message.animate {
    opacity: 1;
    transform: none;
  }
  
  .primary-action:hover,
  .secondary-action:hover {
    transform: none;
  }
}

/* Focus states for keyboard navigation */
.primary-action:focus,
.secondary-action:focus {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .background-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.9) 100%
    );
  }
  
  .primary-action,
  .secondary-action,
  .experience-summary {
    border: 2px solid white;
  }
  
  .completion-title {
    -webkit-text-fill-color: white;
    color: white;
  }
}/* Error Page Styles - Professional Error Handling */

.error-page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Background Container */
.background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(30%) brightness(0.7);
}

.error-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(139, 69, 19, 0.2) 0%,     /* Warm brown tint for error state */
    rgba(75, 0, 130, 0.3) 30%,     /* Purple overlay */
    rgba(0, 0, 0, 0.7) 100%        /* Dark bottom for readability */
  );
}

/* Error Content */
.error-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px;
  color: white;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Error Message */
.error-message {
  margin-bottom: 3rem;
  max-width: 500px;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes gentle-pulse {
  0%, 100% { 
    transform: scale(1); 
    opacity: 1;
  }
  50% { 
    transform: scale(1.05); 
    opacity: 0.9;
  }
}

.error-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.7);
  color: #FFB6C1;  /* Light pink for error state */
  line-height: 1.3;
}

.error-description {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  color: #ffffff;
  line-height: 1.5;
  font-weight: 500;
}

.error-suggestion {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  color: #ffffff;
  opacity: 0.9;
  line-height: 1.5;
}

.retry-info {
  font-size: 0.9rem;
  color: #FFA500;  /* Orange for retry information */
  background: rgba(255, 165, 0, 0.1);
  padding: 8px 16px;
  border-radius: 15px;
  border: 1px solid rgba(255, 165, 0, 0.3);
  display: inline-block;
}

/* Action Buttons */
.error-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
  width: 100%;
  max-width: 320px;
}

.retry-button,
.home-button,
.support-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 14px 24px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  min-height: 44px;
  text-decoration: none;
}

.retry-button {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.retry-button:hover {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.retry-button:disabled {
  background: linear-gradient(135deg, #888, #666);
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.home-button {
  background: linear-gradient(135deg, #E60012, #c30010);
  color: white;
  box-shadow: 0 4px 15px rgba(230, 0, 18, 0.3);
}

.home-button:hover {
  background: linear-gradient(135deg, #c30010, #a50008);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 0, 18, 0.4);
}

.support-button {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.support-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.loading-spinner {
  animation: spin 1s linear infinite;
  font-size: 1.1rem;
}

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

/* Help Section */
.help-section {
  margin-bottom: 3rem;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.help-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #ffffff;
  font-weight: 600;
}

.help-items {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.help-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: #ffffff;
  opacity: 0.9;
}

.help-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

/* Credits */
.error-credits {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-bottom: 2rem;
  opacity: 0.8;
}

.tech-credit {
  display: flex;
  align-items: center;
}

.resense-logo {
  height: 24px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.company-credit {
  font-size: 0.9rem;
  color: #ffffff;
  opacity: 0.7;
}

/* HEP-FIVE Logo */
.logo-container {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
}

.hep-five-logo {
  height: 105px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 10px;
  border-radius: 6px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 480px) {
  .error-content {
    padding: 15px;
  }
  
  .error-title {
    font-size: 1.8rem;
  }
  
  .error-description {
    font-size: 1.1rem;
  }
  
  .error-suggestion {
    font-size: 0.95rem;
  }
  
  .error-icon {
    font-size: 3rem;
  }
  
  .error-actions {
    max-width: 280px;
  }
  
  .retry-button,
  .home-button,
  .support-button {
    padding: 12px 20px;
    font-size: 0.95rem;
    gap: 0.6rem;
  }
  
  .help-section {
    padding: 1.2rem;
    margin-bottom: 2rem;
  }
  
  .help-section h3 {
    font-size: 1.1rem;
  }
  
  .help-item {
    font-size: 0.9rem;
    gap: 0.6rem;
  }
  
  .logo-container {
    top: 15px;
    left: 15px;
  }
  
  .hep-five-logo {
    height: 84px;
  }
}

@media (max-width: 320px) {
  .error-title {
    font-size: 1.6rem;
  }
  
  .error-actions {
    max-width: 260px;
  }
  
  .help-section {
    padding: 1rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .error-icon,
  .loading-spinner,
  .retry-button,
  .home-button,
  .support-button {
    animation: none;
    transition: none;
  }
  
  .retry-button:hover,
  .home-button:hover,
  .support-button:hover {
    transform: none;
  }
}

/* Focus states for keyboard navigation */
.retry-button:focus,
.home-button:focus,
.support-button:focus {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .error-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.9) 100%
    );
  }
  
  .retry-button,
  .home-button,
  .support-button,
  .help-section {
    border: 2px solid white;
  }
  
  .error-title {
    color: #FF6B6B;  /* High contrast red for errors */
  }
}.password-auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.password-auth-container {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.auth-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.password-auth-container h2 {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.password-auth-container p {
  color: #666;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.auth-form {
  text-align: left;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.input-group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.input-group input:focus {
  outline: none;
  border-color: #007bff;
}

.input-group input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.error-message {
  background: #ffe6e6;
  color: #d63384;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: 1px solid #f5c6cb;
}

.auth-button {
  width: 100%;
  padding: 0.75rem;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.auth-button:hover:not(:disabled) {
  background: #0056b3;
}

.auth-button:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.auth-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.auth-footer small {
  color: #888;
  font-size: 0.8rem;
}

@media (max-width: 480px) {
  .password-auth-container {
    padding: 1.5rem;
    margin: 1rem;
  }

  .auth-icon {
    font-size: 2.5rem;
  }

  .password-auth-container h2 {
    font-size: 1.3rem;
  }
}/* Admin Dashboard Styles */

.admin-dashboard {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.admin-dashboard.loading {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-container {
  text-align: center;
  color: white;
}

.loading-spinner {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: spin 1s linear infinite;
}

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

/* Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.time-range-selector,
.auto-refresh-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.time-range-selector select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
}

.refresh-button {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.refresh-button:hover {
  background: #2980b9;
}

.database-button {
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
  margin-left: 0.5rem;
}

.database-button:hover {
  background: #ee5a52;
}

.last-updated {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
}

.metric-icon {
  font-size: 2.5rem;
  opacity: 0.8;
}

.metric-content {
  flex: 1;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.device-breakdown {
  font-size: 0.75rem;
  color: #888;
  margin-top: 0.25rem;
  font-weight: 400;
}

/* Dashboard Sections */
.dashboard-section {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-section h2 {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
}

/* Survey Breakdown */
.survey-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.survey-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 10px;
  background: #f8f9fa;
}

.survey-item.excellent { border-left: 4px solid #4CAF50; }
.survey-item.good { border-left: 4px solid #8BC34A; }
.survey-item.fair { border-left: 4px solid #FF9800; }
.survey-item.poor { border-left: 4px solid #F44336; }

.survey-emoji {
  font-size: 1.5rem;
}

.survey-label {
  flex: 1;
  font-weight: 500;
}

.survey-count {
  font-weight: 700;
  font-size: 1.1rem;
}

.survey-percentage {
  color: #666;
  font-size: 0.9rem;
}

/* Error Breakdown */
.error-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.error-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #fff5f5;
  border-radius: 8px;
  border-left: 4px solid #F44336;
}

.error-type {
  font-weight: 500;
  text-transform: capitalize;
}

.error-count {
  font-weight: 700;
  color: #F44336;
}

.error-percentage {
  color: #666;
  font-size: 0.9rem;
}

/* Events List */
.events-list {
  max-height: 400px;
  overflow-y: auto;
}

.event-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease;
}

.event-item:hover {
  background: #f8f9fa;
}

.event-item:last-child {
  border-bottom: none;
}

.event-type {
  font-weight: 500;
  text-transform: capitalize;
  color: #2c3e50;
  min-width: 120px;
}

.event-details {
  flex: 1;
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.device-type,
.error-type,
.survey-rating {
  background: #e9ecef;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  text-transform: capitalize;
}

.error-type {
  background: #ffebee;
  color: #c62828;
}

.survey-rating {
  background: #e8f5e8;
  color: #2e7d32;
}

.event-timestamp {
  font-size: 0.8rem;
  color: #999;
  min-width: 80px;
  text-align: right;
}

/* Health Indicators */
.health-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.health-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.health-label {
  font-weight: 500;
}

.health-status.online {
  color: #4CAF50;
  font-weight: 500;
}

.health-status.offline {
  color: #F44336;
  font-weight: 500;
}

.health-status.warning {
  color: #FF9800;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .admin-dashboard {
    padding: 15px;
  }
  
  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .header-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .survey-breakdown,
  .error-breakdown,
  .health-indicators {
    grid-template-columns: 1fr;
  }
  
  .event-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .event-details {
    flex-wrap: wrap;
  }
  
  .event-timestamp {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .dashboard-header h1 {
    font-size: 1.5rem;
  }
  
  .metric-card {
    padding: 1.5rem;
  }
  
  .metric-value {
    font-size: 1.5rem;
  }
  
  .dashboard-section {
    padding: 1.5rem;
  }
}

/* Print styles */
@media print {
  .admin-dashboard {
    background: white;
    color: black;
  }
  
  .dashboard-header,
  .dashboard-section {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .header-controls {
    display: none;
  }
}/* Database Management Styles */

.database-management {
  min-height: 100vh;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 50%, #ff8e53 100%);
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.management-container {
  max-width: 800px;
  margin: 0 auto;
}

.management-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.management-header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
}

.back-button {
  background: #6c757d;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: #5a6268;
  transform: translateX(-2px);
}

.message {
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}

.message.success {
  background: rgba(40, 167, 69, 0.1);
  color: #155724;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.message.error {
  background: rgba(220, 53, 69, 0.1);
  color: #721c24;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.message.info {
  background: rgba(23, 162, 184, 0.1);
  color: #0c5460;
  border: 1px solid rgba(23, 162, 184, 0.3);
}

.management-actions {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.action-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: transform 0.3s ease;
}

.action-card:hover {
  transform: translateY(-3px);
}

.action-card.danger {
  border: 2px solid #dc3545;
  background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

.action-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.action-content {
  flex: 1;
}

.action-content h2 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  color: #2c3e50;
}

.action-content p {
  margin: 0 0 1.5rem 0;
  color: #666;
  line-height: 1.6;
}

.action-button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
}

.action-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.export-button {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.export-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #218838 0%, #1ea080 100%);
  transform: translateY(-2px);
}

.reset-button {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
}

.reset-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
  transform: translateY(-2px);
}

.info-section {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-section h3 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  font-size: 1.25rem;
}

.info-section ul {
  margin: 0;
  padding-left: 1.5rem;
  color: #666;
  line-height: 1.6;
}

.info-section li {
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .database-management {
    padding: 10px;
  }
  
  .management-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .management-header h1 {
    font-size: 1.5rem;
  }
  
  .action-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .action-icon {
    font-size: 2.5rem;
  }
  
  .action-content h2 {
    font-size: 1.25rem;
  }
  
  .action-button {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .management-container {
    padding: 0;
  }
  
  .management-header,
  .action-card,
  .info-section {
    padding: 1.5rem;
  }
  
  .action-icon {
    font-size: 2rem;
  }
}