/* Stimulus Plan Modal */

.stimulus-plan-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.stimulus-plan-modal .modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1001;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--light-gray);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--dark-gray);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--medium-gray-dark);
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--dark-gray);
}

.modal-body {
  padding: 1.5rem;
}

.stimulus-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stimulus-type-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stimulus-type-input {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.stimulus-type-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  width: 100%;
}

.stimulus-type-label:hover .badge-stimulus {
  opacity: 0.9;
  transform: scale(1.02);
  transition: all 0.15s ease;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-gray);
}

.form-control {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--light-gray);
  border-radius: 0.25rem;
  font-family: inherit;
  font-size: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Stimulus Plan Badges */

.calendar-stimulus-plans {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Stimulus badge modifier - uses base .badge class */
.badge-stimulus {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Stimulus type color variations - organized by category */

/* Strength-based (warm earth tones) */
.badge-stimulus-strength {
  background: oklch(0.60 0.15 30);  /* Rich orange-red */
  color: white;
}

.badge-stimulus-power_output {
  background: oklch(0.55 0.15 40);  /* Deep orange */
  color: white;
}

.badge-stimulus-barbell_technique {
  background: oklch(0.65 0.13 35);  /* Lighter orange-red */
  color: white;
}

.badge-stimulus-olympic_lifting {
  background: oklch(0.58 0.14 45);  /* Warm amber */
  color: white;
}

/* Endurance-based (cool blues/cyans) */
.badge-stimulus-endurance {
  background: oklch(0.60 0.15 220);  /* Deep blue */
  color: white;
}

.badge-stimulus-aerobic_capacity {
  background: oklch(0.65 0.14 210);  /* Lighter blue */
  color: white;
}

.badge-stimulus-anaerobic_capacity {
  background: oklch(0.55 0.15 230);  /* Dark blue */
  color: white;
}

/* Skills (similar purples) */
.badge-stimulus-gymnastic_skill {
  background: oklch(0.60 0.14 290);  /* Purple */
  color: white;
}

.badge-stimulus-skill_practice {
  background: oklch(0.65 0.13 295);  /* Lighter purple */
  color: white;
}

/* Mixed/Other */
.badge-stimulus-mixed_modal {
  background: oklch(0.60 0.12 320);  /* Magenta */
  color: white;
}

/* Recovery (green) */
.badge-stimulus-recovery {
  background: oklch(0.70 0.12 145);  /* Fresh green */
  color: white;
}
