/* work-sprint.css – Work Sprint activity styles */

#work-sprint-activity {
  background: linear-gradient(135deg, #6bb6ff 0%, #7dd3fc 50%, #86efac 100%);
}

.sprint-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  position: relative;
  overflow-y: auto;
  box-sizing: border-box;
}

#sprintSetupScreen {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

#sprintRunningScreen {
  background: linear-gradient(135deg, #6bb6ff 0%, #7dd3fc 50%, #86efac 100%);
}

.view-sprints-corner-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  color: #4a5568;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.view-sprints-corner-btn:hover {
  background: #ffffff;
  border-color: #e2e8f0;
}

.setup-container {
  max-width: 520px;
  width: 100%;
  padding: 40px 32px;
  text-align: center;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  color: #1a202c;
  box-sizing: border-box;
}

.setup-container h1 {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 30px;
  color: #1a202c;
}

#work-sprint-activity .form-group {
  margin-bottom: 24px;
  text-align: left;
}

#work-sprint-activity .form-group label {
  display: block;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #4a5568;
}

#work-sprint-activity .form-group input[type="text"],
#work-sprint-activity .form-group input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #1a202c;
  font-family: inherit;
  font-size: 17px;
  transition: border-color 0.2s ease;
}

#work-sprint-activity .form-group .sprint-goal-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #1a202c;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

#work-sprint-activity .form-group input::placeholder,
#work-sprint-activity .form-group .sprint-goal-textarea::placeholder {
  color: #a0aec0;
}

#work-sprint-activity .form-group input:focus,
#work-sprint-activity .form-group .sprint-goal-textarea:focus {
  outline: none;
  border-color: #6bb6ff;
  background: #ffffff;
}

.duration-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sprint-duration-btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #f7fafc;
  color: #2d3748;
  transition: all 0.2s ease;
}

.sprint-duration-btn:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

.sprint-duration-btn.selected {
  background: linear-gradient(135deg, #6bb6ff 0%, #7dd3fc 50%, #86efac 100%);
  border-color: transparent;
  color: white;
}

.custom-duration-input {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}

.custom-duration-input input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #1a202c;
  font-size: 14px;
}

.custom-duration-input input::placeholder {
  color: #a0aec0;
}

.custom-duration-input button {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: #edf2f7;
  color: #2d3748;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.custom-duration-input button:hover {
  background: #e2e8f0;
}

/* Rules modal */
#sprintRulesModal .modal-content {
  max-width: 560px;
  padding: 40px;
}

#sprintRulesModal .modal-content h2 {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 28px;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.rules-list {
  text-align: left;
  list-style: decimal;
  list-style-position: outside;
  margin: 0 0 30px;
  padding-left: 1.5em;
  font-size: 19px;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-weight: 400;
  line-height: 1.5;
}

.rules-list li {
  font-size: 19px;
  line-height: 1.5;
  margin-bottom: 20px;
  padding-left: 0.5em;
  color: #333;
}

/* Running screen */
.running-container {
  text-align: center;
  padding: 40px 20px;
  max-width: 500px;
  width: 100%;
}

.countdown-display {
  font-size: 80px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  margin-bottom: 24px;
  letter-spacing: 4px;
}

.goal-section {
  margin-bottom: 16px;
}

.goal-label {
  font-size: 16px;
  opacity: 0.7;
  margin-bottom: 6px;
}

.goal-box {
  font-size: 18px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#sprintGoalBox[contenteditable="true"] {
  cursor: text;
  text-align: left;
  align-items: flex-start;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 60px;
}

#sprintGoalBox[contenteditable="true"]:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
}

.reminder-text {
  font-size: 16px;
  opacity: 0.6;
  margin-bottom: 24px;
  font-style: italic;
}

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

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  position: relative;
  overflow: visible;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #48bb78, #38a169);
  border-radius: 3px;
  transition: width 1s linear;
  width: 0%;
}

.progress-marker {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 14px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 1px;
}

.running-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.cue-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(72, 187, 120, 0.95);
  color: white;
  text-align: center;
  padding: 16px;
  font-size: 20px;
  font-weight: 500;
  animation: slideUp 0.3s ease;
  z-index: 50;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Completion screen */
#sprintCompletionScreen {
  background: linear-gradient(135deg, #6bb6ff 0%, #7dd3fc 50%, #86efac 100%);
}

#sprintCompletionGoalBox {
  min-height: 140px;
  max-height: 40vh;
  overflow-y: auto;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  align-items: flex-start;
  justify-content: flex-start;
}

.completion-container {
  max-width: 600px;
  width: 100%;
  padding: 40px 32px;
  overflow-y: auto;
  max-height: 100vh;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.completion-container h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
  color: white;
}

.completion-section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
  opacity: 0.95;
}

.radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.radio-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  color: white;
}

.completion-container .radio-group input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
}

.completion-container .radio-group input[type="radio"]:checked {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
}

.completion-container .radio-group input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  cursor: pointer;
  color: white;
}

.completion-container .checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  flex-shrink: 0;
}

.completion-container .checkbox-group input[type="checkbox"]:checked {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
}

.completion-container .checkbox-group input[type="checkbox"]:checked::after {
  content: '\2713';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

#work-sprint-activity .completion-section textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: inherit;
  font-size: 16px;
  resize: vertical;
}

#work-sprint-activity .completion-section textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

#work-sprint-activity .completion-section textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

/* Override primary/secondary buttons inside white cards */
.setup-container .primary-button {
  color: white;
}

.setup-container .secondary-button {
  border-color: #e2e8f0;
  color: #4a5568;
  background: #f7fafc;
}

.setup-container .secondary-button:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

.completion-container .primary-button {
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
}

.completion-container .primary-button:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.6);
}

.completion-container .secondary-button {
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

.completion-container .secondary-button:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.completion-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.completion-buttons .primary-button,
.completion-buttons .secondary-button {
  flex: 1;
}

/* History */
#sprintHistoryScreen .history-content {
  width: 100%;
  max-width: 600px;
  padding: 20px;
  overflow-y: auto;
  max-height: 100vh;
  color: white;
}

#sprintHistoryScreen .history-title {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

#sprintHistoryScreen .history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

#sprintHistoryScreen .history-entry {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 16px;
}

.history-entry-goal {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.history-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.history-entry-meta-item {
  font-size: 15px;
  opacity: 0.8;
}

.history-entry-notes {
  font-size: 16px;
  margin-top: 6px;
  opacity: 0.9;
}

.history-entry-rules {
  margin-top: 8px;
}

.history-entry-rules-title {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 4px;
}

.history-entry-rules-list {
  list-style: none;
  padding: 0;
  font-size: 15px;
  opacity: 0.8;
}

.history-entry-rules-list li {
  margin-bottom: 2px;
}

#sprintHistoryScreen .button-group-history {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 10px 0 20px;
}

#sprintHistoryScreen .button-history {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transition: all 0.2s ease;
}

#sprintHistoryScreen .button-history:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ===== RESPONSIVE (Mobile) ===== */
@media (max-width: 600px) {
  .sprint-screen {
    padding-left: 12px;
    padding-right: 12px;
  }

  .setup-container {
    padding: 28px 20px;
    max-width: 100%;
    width: calc(100% - 24px);
  }

  .setup-container h1 {
    font-size: 30px;
  }

  .duration-buttons {
    flex-direction: column;
  }

  .sprint-duration-btn {
    width: 100%;
  }

  .countdown-display {
    font-size: 56px;
  }

  .running-container {
    padding: 20px 16px;
    max-width: 100%;
    width: calc(100% - 24px);
    box-sizing: border-box;
  }

  .running-controls {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .completion-container {
    padding: 24px 20px;
    max-width: 100%;
    width: calc(100% - 24px);
    box-sizing: border-box;
  }

  .completion-container h1 {
    font-size: 26px;
  }

  .radio-group {
    flex-direction: column;
    gap: 12px;
  }

  .completion-buttons {
    flex-direction: column;
  }

  .view-sprints-corner-btn {
    font-size: 13px;
    padding: 6px 12px;
  }

  #sprintHistoryScreen .history-content {
    padding: 16px;
  }
}
