/* Protocol Session Modal Styles */

/* Session Modal */
.exercise-modal-content {
  max-width: 600px;
}

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.session-progress {
  flex: 1;
  margin-right: 16px;
}

.session-progress .progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.session-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.session-progress .progress-text {
  font-size: 13px;
  color: #6b7280;
}

.session-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  background: #f9fafb;
  padding: 8px 16px;
  border-radius: 8px;
}

.session-timer i {
  color: #2563eb;
}

/* Current Phase */
.current-phase {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.current-phase h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 4px;
}

.current-phase .phase-duration {
  font-size: 13px;
  color: #3b82f6;
}

/* Current Exercise */
.current-exercise {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.current-exercise .exercise-header {
  margin-bottom: 16px;
}

.current-exercise .exercise-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.exercise-specs {
  display: flex;
  gap: 16px;
}

.exercise-specs span {
  font-size: 14px;
  color: #6b7280;
  padding: 4px 12px;
  background: #f9fafb;
  border-radius: 6px;
}

.exercise-description {
  margin-bottom: 20px;
}

.exercise-description p {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
}

.exercise-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.exercise-actions .btn {
  flex: 1;
  min-width: 120px;
}

/* Exercise Tips */
.exercise-tips {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 16px;
}

.exercise-tips h4 {
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 10px;
}

.exercise-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exercise-tips li {
  font-size: 13px;
  color: #78350f;
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.exercise-tips li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: #f59e0b;
}

/* Exercise Completion Feedback */
.exercise-completion-feedback {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  padding: 32px 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  animation: feedbackPop 0.3s ease-out;
}

@keyframes feedbackPop {
  from {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.exercise-completion-feedback .completion-icon {
  font-size: 48px;
  color: #10b981;
  margin-bottom: 12px;
}

.exercise-completion-feedback .completion-text {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
}

.exercise-completion-feedback.fade-out {
  animation: feedbackFade 0.3s ease-in forwards;
}

@keyframes feedbackFade {
  to {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
}

/* Session Completion Screen */
.session-completion {
  text-align: center;
  padding: 20px;
}

.session-completion .completion-header {
  margin-bottom: 32px;
}

.session-completion .completion-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 16px 0 8px;
}

.session-completion .completion-header p {
  color: #6b7280;
  font-size: 16px;
}

.completion-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px 16px;
}

.stat-card .stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #2563eb;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.completion-benefits {
  text-align: left;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.completion-benefits h3 {
  font-size: 16px;
  font-weight: 600;
  color: #166534;
  margin-bottom: 12px;
}

.completion-benefits li {
  font-size: 14px;
  color: #15803d;
  padding: 4px 0;
}

.completion-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Timer Display */
.exercise-timer-active {
  text-align: center;
  padding: 32px 20px;
}

.exercise-timer-active h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 24px;
}

.timer-display {
  font-size: 80px;
  font-weight: 800;
  color: #2563eb;
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.timer-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.timer-btn {
  padding: 12px 24px;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  color: #374151;
}

.timer-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.timer-btn.stop {
  border-color: #fecaca;
  color: #dc2626;
}

.timer-btn.stop:hover {
  background: #fef2f2;
}

.timer-instructions p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

/* Rest Timer */
.rest-timer-container {
  text-align: center;
  padding: 40px 20px;
}

.rest-header {
  margin-bottom: 24px;
}

.rest-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 12px 0 8px;
}

.rest-header p {
  font-size: 15px;
  color: #6b7280;
}

.rest-timer-display {
  font-size: 96px;
  font-weight: 800;
  color: #2563eb;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

/* Responsive */
@media (max-width: 768px) {
  .exercise-modal-content {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

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

  .completion-stats {
    grid-template-columns: 1fr;
  }

  .timer-display {
    font-size: 60px;
  }

  .rest-timer-display {
    font-size: 72px;
  }
}
