/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  overflow: auto; /* Enable scrollbars when content overflows */
}

/* Fixed gradient background that doesn't repeat on scroll */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: -1;
  pointer-events: none;
}

/* Simplified landing page styles */
.sprint-landing {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for better mobile support */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1rem;
  box-sizing: border-box;
  gap: 2rem;
}

.sprint-header {
  text-align: center;
  color: white;
  flex-shrink: 0;
}

.sprint-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.logo {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.tagline {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: white;
}

.tagline a {
  color: white !important;
}

.tagline a:hover {
  text-decoration: underline;
}

.sprint-card h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
  font-size: 1.8rem;
}

.sprint-footer {
  text-align: center;
  color: white;
  flex-shrink: 0;
}

.powered-by-text {
  color: white;
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 300;
  margin: 0 0 1rem 0;
}

.powered-by-text a {
  color: white !important;
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #555;
}

.form-select,
.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-select:focus,
.form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Custom Start Time Selector */
.start-time-selector {
  display: flex;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  background: white;
}

.start-time-option {
  flex: 1;
  padding: 0.75rem;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  color: #555;
  background: white;
  transition: all 0.3s ease;
  border-right: 1px solid #e1e5e9;
  position: relative;
}

.start-time-option:last-child {
  border-right: none;
}

.start-time-option:hover {
  background: #f8f9fa;
  color: #333;
}

.start-time-option.active {
  background: #667eea;
  color: white;
}

.start-time-option.active:hover {
  background: #5a6fd8;
}

/* Legacy radio button styles - keeping for backward compatibility */
.start-time-options {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
}

.radio-option input[type="radio"] {
  width: auto;
}

.form-actions {
  margin-top: 2rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #f8f9fa;
  color: #333;
  border: 2px solid #e1e5e9;
}

.btn-secondary:hover {
  background: #e9ecef;
}

.btn-large {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

.error-message {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 8px;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.error-message[style*="display: none"] {
  display: none !important;
}



.help-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.help-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Form validation styles */
.form-select.error,
.form-input.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group.error .form-label {
  color: #dc3545;
}

.field-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

/* Loading states */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn.loading {
  position: relative;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Sprint page styles */
.sprint-page {
  min-height: 100vh;
  min-height: 100dvh;
  color: white;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Large desktop: prevent overflow */
@media (min-width: 1025px) {
  .sprint-page {
    height: 100vh;
    overflow: hidden;
  }
}

/* Ambiance wrapper - needs to fill parent height */
.sprint-page [data-controller="ambiance"] {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sprint-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  z-index: 10;
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Large desktop: fixed height */
@media (min-width: 1025px) {
  .sprint-container {
    height: 100%;
    min-height: 100vh;
  }
}

/* Top Section Styles */
.sprint-top-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 2rem;
  padding: 0 1rem;
  flex-shrink: 0;
}

.app-branding {
  text-align: left;
}

.app-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  color: white;
}

.app-name-link {
  color: white;
  text-decoration: none;
  font-size: inherit;
  font-weight: inherit;
  text-shadow: inherit;
}

.app-name-link:hover {
  color: white;
  text-decoration: none;
}

.app-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
  color: white;
}

.share-sprint-section {
  text-align: right;
  position: relative;
}

.btn-share-new {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  animation: shareButtonIntro 3s ease-in-out;
}

.btn-share-new:hover {
  background: rgba(255,255,255,0.2);
}

.share-feedback {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  animation: fadeInOut 2s ease-in-out;
  z-index: 100;
  white-space: nowrap;
  min-width: max-content;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  20% { opacity: 1; transform: translateX(-50%) translateY(0); }
  80% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

@keyframes shareButtonIntro {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  25%, 75% {
    transform: scale(1.05);
    opacity: 1;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(255, 255, 255, 0.1);
  }
  50% {
    transform: scale(1);
    opacity: 0.95;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  }
}

.sprint-meta {
  display: flex;
  gap: 2rem;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Center Section Styles */
.timer-container-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  width: 100%;
}

.timer-section {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  width: 100%;
  max-width: 500px;
}



.timer-display {
  font-size: 6rem;
  font-weight: 700;
  font-family: 'Roboto', sans-serif;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
  line-height: 1;
}

.round-progress {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.progress-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  border-radius: 4px;
  transition: width 0.2s ease-out, background-color 0.5s ease;
}

.progress-fill.warning {
  background: linear-gradient(90deg, #FF9800, #FFC107);
}

.progress-fill.danger {
  background: linear-gradient(90deg, #F44336, #FF5722);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Bottom Section Styles */
.bottom-info-section {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.5rem;
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

.sprint-meta-info {
  display: flex;
  gap: 1.5rem;
}

.meta-item {
  text-align: center;
}

.meta-label {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.meta-value {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.emoji-reactions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* Responsive design for mobile devices */
@media (max-width: 768px) {
  .sprint-container {
    padding: 1rem;
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: flex-start;
    gap: 1rem;
  }

  .sprint-top-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    flex-shrink: 0;
    width: 100%;
  }

  .app-branding {
    text-align: center;
  }

  .app-name {
    font-size: 1.5rem;
  }

  .app-subtitle {
    font-size: 0.9rem;
  }

  .share-sprint-section {
    text-align: center;
  }

  .timer-container-section {
    padding: 1rem 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .timer-section {
    padding: 1.5rem 1rem;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
  }

  .timer-display {
    font-size: 3.5rem;
    margin-bottom: 1rem;
  }

  .round-progress {
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
  }

  .progress-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .bottom-info-section {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
  }

  .sprint-meta-info {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .meta-item {
    min-width: auto;
    flex: 1;
    min-width: 80px;
  }

  .meta-label {
    font-size: 0.8rem;
  }

  .meta-value {
    font-size: 1rem;
  }

  .emoji-reactions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .ambiance-controls {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
  }

  .custom-select {
    min-width: 200px;
    width: 200px;
    font-size: 0.9rem;
  }

  .audio-control-container {
    justify-content: center;
  }

  .volume-button {
    width: 40px;
    height: 40px;
  }
}

/* Responsive design for tablet devices */
@media (min-width: 769px) and (max-width: 1024px) {
  .sprint-container {
    padding: 1rem;
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: flex-start;
    gap: 1rem;
  }

  .sprint-top-section {
    flex-shrink: 0;
    margin-bottom: 1rem;
  }

  .timer-container-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .timer-section {
    padding: 1.5rem;
    max-width: 600px;
  }

  .timer-display {
    font-size: 4.5rem;
  }

  .round-progress {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .bottom-info-section {
    max-width: 800px;
    padding: 1rem;
    flex-shrink: 0;
    margin-top: auto;
    gap: 1rem;
  }

  .sprint-meta-info {
    gap: 1rem;
  }

  .meta-item {
    min-width: 80px;
  }

  .ambiance-controls {
    gap: 1rem;
  }

  .custom-select {
    min-width: 150px;
    width: 150px;
  }
}

.ambiance-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 10;
}

.ambiance-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ambiance-selector label {
  font-weight: 500;
  white-space: nowrap;
  font-size: 0.9rem;
}

.ambiance-selector select {
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

/* Custom dropdown styles */
.ambiance-selector {
  position: relative;
}

.custom-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  cursor: pointer;
  min-width: 160px;
  width: 160px;
  user-select: none;
}

.custom-select:hover {
  background: rgba(255,255,255,0.35);
}

.selected-value {
  flex: 1;
}

.dropdown-arrow {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.dropdown-options {
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.dropdown-options.dropdown-upward {
  bottom: 100%;
  margin-bottom: 2px;
}

.dropdown-options:not(.dropdown-upward) {
  top: 100%;
  margin-top: 2px;
}

.dropdown-option {
  padding: 0.75rem;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
}

.dropdown-option:last-child {
  border-bottom: none;
}

.dropdown-option:hover {
  background: rgba(255,255,255,0.15);
}

.dropdown-option:active {
  background: rgba(255,255,255,0.25);
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Audio control container with hover volume slider */
.audio-control-container {
  position: relative;
  display: flex;
  align-items: center;
}

.audio-control-btn {
  /* Use same styling as emoji buttons */
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.audio-control-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

/* Volume slider container */
.volume-slider-container {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 12px 8px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}

.volume-slider-container.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
  pointer-events: auto;
}

/* Vertical volume slider */
.volume-slider-vertical {
  writing-mode: vertical-lr; /* Modern standard */
  direction: rtl; /* Right-to-left for proper orientation */
  -webkit-appearance: none; /* Remove default styling */
  appearance: none; /* Remove default styling */
  width: 8px;
  height: 80px;
  background: rgba(255,255,255,0.3);
  outline: none;
  cursor: pointer;
  border-radius: 4px;
}

.volume-slider-vertical::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.volume-slider-vertical::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}



.emoji-toolbar {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.emoji-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.emoji-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.emoji-btn:active {
  transform: scale(0.95);
}

.connection-status {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 1000;
  transition: all 0.2s ease;
}

.connection-status:hover {
  background: rgba(0,0,0,0.9);
  transform: scale(1.05);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  flex-shrink: 0;
}

.status-indicator.connecting {
  background: #FF9800;
  animation: pulse 1s infinite;
}

.status-indicator.connected {
  background: #10b981;
}

.status-indicator.disconnected {
  background: #F44336;
}

.status-indicator.retrying {
  background: #f59e0b;
  animation: pulse 1s infinite;
}

.status-indicator.error {
  background: #dc2626;
  animation: pulse 2s infinite;
}

.status-indicator.degraded {
  background: #f59e0b;
  animation: pulse 1.5s infinite;
}

.emoji-display-area {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

.floating-emoji {
  position: absolute;
  font-size: 2rem;
  animation: float-up 3s ease-out forwards;
  pointer-events: none;
}

@keyframes float-up {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(1.5);
  }
}

.sprint-finished-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

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

.finished-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.finished-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.finished-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.ambiance-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.8s ease-in-out;
  z-index: 1; /* Above everything including the gradient */
  opacity: 0; /* Start hidden */
  pointer-events: none; /* Don't block interactions */
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .ambiance-background {
    transition: opacity 0.2s ease-in-out;
  }
}

/* Bulletproof fade transition classes */
.ambiance-background.fade-out {
  opacity: 0 !important;
  transition: opacity 0.6s ease-out;
}

/* No fade-in class needed - we use instant opacity changes */

/* Ensure proper fallback background for accessibility */
/* Only show gradient when no ambiance background is active */
.sprint-page:not(.has-ambiance-background) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Overlay to ensure content readability over background - only when ambiance background is active */
.sprint-page.has-ambiance-background .sprint-container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.2); /* Lighter overlay for testing */
  z-index: 5; /* Above background, below content */
  pointer-events: none; /* Don't interfere with interactions */
}

/* Ambiance-specific background styles - handled dynamically via JavaScript */

/* Help page styles */
.help-page {
  min-height: 100vh;
  background: #f8f9fa;
  padding: 0;
}

.help-hero {
  text-align: center;
  padding: 4rem 2rem 3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.help-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.help-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
  margin: 0;
}

.help-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: #f8f9fa;
  color: #333;
}



.faq-heading {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

.faq-container {
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e1e5e9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.faq-item {
  border-bottom: 1px solid #e1e5e9;
}

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #333;
  padding: 1.5rem;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f8f9fa;
}

.faq-question.active {
  background: #e9ecef;
  color: #667eea;
}

.faq-arrow {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  margin-left: 1rem;
  flex-shrink: 0;
  color: #667eea;
}

.faq-answer {
  background: #f8f9fa;
  border-top: 1px solid #e1e5e9;
}

.faq-answer-content {
  padding: 1.5rem;
  line-height: 1.7;
  color: #555;
}

.faq-answer-content p {
  margin-bottom: 1rem;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

.faq-answer-content ul,
.faq-answer-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.faq-answer-content li {
  margin-bottom: 0.5rem;
}

.faq-answer-content strong {
  font-weight: 600;
  color: #333;
}

.faq-answer-content a {
  color: #667eea;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.faq-answer-content a:hover {
  color: #764ba2;
}

.help-actions {
  text-align: center;
  padding-top: 2rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .sprint-landing {
    padding: 1rem;
  }

  .logo {
    font-size: 2.5rem;
  }

  .sprint-card {
    padding: 1.5rem;
  }

  .start-time-options {
    flex-direction: column;
    gap: 0.5rem;
  }

  .sprint-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .controls-row {
    flex-direction: column;
    gap: 1rem;
  }

  .finished-actions {
    flex-direction: column;
  }

  /* Help page responsive styles */
  .help-hero {
    padding: 2rem 1rem;
  }

  .help-title {
    font-size: 2.5rem;
  }

  .help-subtitle {
    font-size: 1rem;
  }

  .help-content {
    padding: 2rem 1rem;
  }

  .faq-heading {
    font-size: 1.5rem;
  }

  .faq-question {
    padding: 1rem;
    font-size: 1rem;
  }

  .faq-answer-content {
    padding: 1rem;
  }
}
