body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(120deg, #23243a 0%, #3a3b5a 100%);
  color: #eee;
  margin: 0;
  min-height: 100vh;
}
.container {
  background: rgba(30,30,40,0.98);
  color: #eee;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(30,30,40,0.7);
  padding: 32px 24px 48px 24px;
  max-width: 520px;
  margin: 48px auto 32px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
h1,
h1 {
  color: #8ec6ff;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}
.workout-card h2 {
  color: #8ec6ff;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.weight {
  color: #8ec6ff;
  font-weight: 500;
}
.arrow {
  color: #8ec6ff;
  font-size: 2.2rem;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
  min-width: 48px;
  border-radius: 50%;
  background: rgba(30,30,40,0.7);
  box-shadow: 0 2px 8px rgba(30,30,40,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}
.arrow:active {
  color: #fe8cff;
  background: rgba(30,30,40,0.9);
}
.carousel {
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 16px;
  margin-bottom: 0;
}
.carousel-arrows {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 8px;
}
.card-arrows {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 8px;
}
.workout-card {
  background: #23243a;
  color: #eee;
  box-shadow: 0 4px 24px rgba(30,30,40,0.5);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  border-radius: 10px;
  padding: 24px 20px 32px 20px;
  min-width: 320px;
  max-width: 420px;
  width: 100%;
  margin: 0 12px;
  transition: box-shadow 0.2s, background 0.2s;
}
.exercise {
  position: relative;
  border: 2px solid #8ec6ff;
  border-radius: 8px;
  padding: 20px 16px 16px 16px;
  margin-bottom: 16px;
  margin-top: 12px;
}
.exercise-name {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #23243a;
  padding: 0 8px;
  color: #8ec6ff;
  font-size: 1.05rem;
  font-weight: 500;
  white-space: nowrap;
}
.exercise-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.exercise-content > span {
  flex: 1;
  text-align: center;
}
.weight-intensity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.exercise-weight {
  color: #8ec6ff;
  font-size: 1.05rem;
  font-weight: 500;
}
.exercise-intensity {
  color: #fe8cff;
  font-size: 0.75rem;
  font-weight: 400;
}
.rest-time {
  color: #eee;
  font-size: 0.95rem;
}
.exercise-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.exercise-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 12px;
}
.rest-time {
  color: #eee;
  font-size: 0.95rem;
}
.exercise label {
  color: #8ec6ff;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 4px;
}
input,
input,
.exercise input {
  background: #23243a;
  color: #eee;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 1rem;
  margin-top: 4px;
  margin-bottom: 8px;
  width: 80px;
  box-sizing: border-box;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.max-inputs {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 32px;
  width: 100%;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .max-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 16px;
    justify-items: center;
    align-items: center;
  }
  .max-inputs label {
    width: 100%;
    font-size: 1rem;
  }
}

.max-inputs label {
  text-align: center;
  width: auto;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #8ec6ff;
  font-size: 1.05rem;
  font-weight: 500;
}
.top-indicator {
  margin-bottom: 12px;
  text-align: center;
  color: #8ec6ff;
  font-weight: 500;
  font-size: 1rem;
  pointer-events: none;
  white-space: pre-line;
}
@media (max-width: 600px) {
  .container {
    max-width: 98vw;
    padding: 8vw 2vw 12vw 2vw;
  }
  .workout-card {
    min-width: 80vw;
    max-width: 95vw;
    padding: 16px 8px 24px 8px;
  }
  .carousel {
    gap: 8px;
  }
  .arrow {
    font-size: 2rem;
    min-width: 36px;
    height: 36px;
  }
}

/* Timer styling */
.rest-time {
  cursor: pointer;
  transition: all 0.2s ease;
}

.rest-time:hover {
  background-color: #404060;
  padding: 2px 4px;
  border-radius: 3px;
}

.timer-active {
  background-color: #ffeb3b !important;
  color: #333 !important;
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 3px;
  animation: pulse 1s infinite;
}

.timer-done {
  background-color: #4caf50 !important;
  color: white !important;
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 3px;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Completed exercise styling */
.exercise-complete {
  border-color: #4caf50 !important;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

/* Plate calculator modal */
.plate-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.plate-modal-content {
  background: #23243a;
  color: #eee;
  padding: 24px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border: 2px solid #8ec6ff;
}

.plate-modal-content h3 {
  color: #8ec6ff;
  margin-top: 0;
  text-align: center;
}

.barbell-option {
  background: rgba(30, 30, 40, 0.7);
  padding: 12px;
  margin: 12px 0;
  border-radius: 8px;
  border: 1px solid #404060;
}

.barbell-option.disabled {
  opacity: 0.5;
  background: rgba(60, 30, 30, 0.7);
  border-color: #604040;
}

.barbell-option h4 {
  color: #8ec6ff;
  margin: 0 0 8px 0;
  font-size: 1.1rem;
}

.barbell-option p {
  margin: 0;
  font-size: 0.95rem;
}

.plate-modal-content button {
  background: #8ec6ff;
  color: #23243a;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 16px;
  width: 100%;
}

.plate-modal-content button:hover {
  background: #7ab8f0;
}

.exercise-weight {
  cursor: pointer;
  transition: all 0.2s ease;
}

.exercise-weight:hover {
  background-color: rgba(142, 198, 255, 0.1);
  padding: 2px 4px;
  border-radius: 3px;
}

/* Plate calculator modal */
.plate-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.plate-modal-content {
  background: #23243a;
  color: #eee;
  padding: 24px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border: 2px solid #8ec6ff;
}

.plate-modal-content h3 {
  color: #8ec6ff;
  margin-top: 0;
  text-align: center;
}

.barbell-option {
  background: rgba(30, 30, 40, 0.7);
  padding: 12px;
  margin: 12px 0;
  border-radius: 8px;
  border: 1px solid #404060;
}

.barbell-option.disabled {
  opacity: 0.5;
  background: rgba(60, 30, 30, 0.7);
  border-color: #604040;
}

.barbell-option h4 {
  color: #8ec6ff;
  margin: 0 0 8px 0;
  font-size: 1.1rem;
}

.barbell-option p {
  margin: 0;
  font-size: 0.95rem;
}

.plate-modal-content button {
  background: #8ec6ff;
  color: #23243a;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 16px;
  width: 100%;
}

.plate-modal-content button:hover {
  background: #7ab8f0;
}

.exercise-weight {
  cursor: pointer;
  transition: all 0.2s ease;
}

.exercise-weight:hover {
  background-color: rgba(142, 198, 255, 0.1);
  padding: 2px 4px;
  border-radius: 3px;
}/* Barbell visualization */
.barbell-visual {
  margin: 12px 0;
  display: flex;
  justify-content: center;
}

.barbell-container {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 8px;
  background: #1a1a2e;
  border-radius: 8px;
  border: 1px solid #404060;
}

.barbell-bar {
  width: 80px;
  height: 8px;
  background: linear-gradient(to bottom, #c0c0c0, #888);
  border-radius: 4px;
  border: 1px solid #666;
}

.collar {
  width: 6px;
  height: 16px;
  background: linear-gradient(to bottom, #444, #222);
  border-radius: 3px;
  border: 1px solid #333;
}

.plate {
  border-radius: 3px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: bold;
  color: #000;
  text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
  margin: 0 1px;
}

.plate-25 { width: 4px; height: 36px; }
.plate-20 { width: 4px; height: 36px; }
.plate-15 { width: 4px; height: 36px; }
.plate-10 { width: 4px; height: 36px; }
.plate-5 { width: 4px; height: 24px; color: #333; }
.plate-2_5 { width: 4px; height: 20px; }
.plate-1_25 { width: 4px; height: 18px; color: #fff; }

/* Plate calculator target row */
.plate-target-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.plate-toggle {
  display: flex;
  align-items: center;
}

.plate-toggle label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8ec6ff;
  font-size: 0.9rem;
  cursor: pointer;
}

.plate-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
}