* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 15px;
  background: #f5f5f5;
  font-size: 16px;
}

h1 {
  text-align: center;
  color: #333;
  font-size: 28px;
  margin: 10px 0 20px 0;
}

h2 {
  color: #555;
  font-size: 24px;
  margin: 20px 0 15px 0;
}

h3 {
  color: #555;
  font-size: 20px;
  margin: 15px 0;
}

.controls {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.controls label {
  display: block;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 500;
}

.controls input,
.controls select {
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 18px;
  width: 100%;
  margin-top: 5px;
}

button {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  margin: 5px 0;
  width: 100%;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:hover {
  background: #45a049;
}

button:active {
  transform: scale(0.98);
}

button.secondary {
  background: #2196F3;
}

button.secondary:hover {
  background: #0b7dda;
}

#nextTargets {
  background: #e3f2fd;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #2196F3;
}

#nextTargets h3 {
  margin-top: 0;
  color: #1976D2;
  font-size: 22px;
}

#nextTargets div {
  padding: 10px 0;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  color: #333;
}

.exercise-tracker {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.exercise-tracker h3 {
  margin-top: 0;
  color: #2196F3;
  font-size: 26px;
  margin-bottom: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
}

.input-group label {
  font-weight: 600;
  font-size: 18px;
  display: block;
}

.input-group input {
  padding: 14px;
  border: 2px solid #ddd;
  border-radius: 8px;
  width: 100%;
  font-size: 20px;
  margin-top: 5px;
}

.input-group button {
  margin-top: 10px;
  padding: 18px;
  font-size: 20px;
}

/* REST TIMER STYLES */
.timer {
  font-size: 24px;
  font-weight: bold;
  color: #2196F3;
  text-align: center;
  padding: 12px;
  margin: 12px 0;
  background: #e3f2fd;
  border-radius: 8px;
  border: 2px solid #2196F3;
  width: 100%;
  box-sizing: border-box;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}



#sets-completed {
  margin-top: 20px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
}

#sets-completed h4 {
  margin-top: 0;
  color: #666;
  font-size: 20px;
  margin-bottom: 15px;
}

#sets-completed div {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 18px;
}

#sets-completed div:last-child {
  border-bottom: none;
}

.session-complete {
  background: #c8e6c9;
  padding: 40px 20px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 20px;
}

.session-complete h3 {
  color: #2e7d32;
  font-size: 32px;
  margin: 0 0 25px 0;
}

.session-complete button {
  max-width: 300px;
  margin: 10px auto;
}

.success-message {
  background: #c8e6c9;
  color: #2e7d32;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  font-size: 22px;
  margin: 20px 0;
  font-weight: 600;
}

/* History Styles */
#history-section {
  margin-top: 30px;
}

#history-container {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.session-group {
  border-bottom: 2px solid #eee;
}

.session-group:last-child {
  border-bottom: none;
}

.session-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #f0f0f0;
  font-weight: 600;
  font-size: 18px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.session-header:hover {
  background: #e8e8e8;
}

.session-date {
  color: #333;
}

.session-detail {
  padding: 15px;
  background: #fafafa;
}

.delete-session-btn {
  background: #f44336;
  width: 100%;
  margin-bottom: 15px;
  padding: 14px;
}

.delete-session-btn:hover {
  background: #d32f2f;
}

.exercise-group {
  background: white;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.exercise-summary {
  padding: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.exercise-summary:hover {
  background: #f9f9f9;
}

.exercise-name {
  color: #2196F3;
  font-weight: 500;
  font-size: 16px;
  flex: 1;
}

.expand-icon {
  color: #999;
  font-size: 16px;
}

.expand-icon-small {
  color: #999;
  font-size: 14px;
  margin-left: 10px;
}

.exercise-sets {
  background: #f9f9f9;
  padding: 10px;
}

.set-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: white;
  margin: 5px 0;
  border-radius: 6px;
  font-size: 16px;
  gap: 10px;
}

.set-row span {
  flex: 1;
}

.edit-btn {
  background: #FF9800;
  padding: 8px 14px;
  font-size: 14px;
  width: auto;
  flex-shrink: 0;
}

.edit-btn:hover {
  background: #F57C00;
}

.note-entry {
  background: #fff3cd;
  padding: 15px;
  border-radius: 6px;
  border-left: 4px solid #ffc107;
  margin: 10px 0;
  font-size: 16px;
  color: #856404;
}

/* Desktop styles */
@media (min-width: 768px) {
  body {
    padding: 20px;
  }
  
  h1 {
    font-size: 36px;
  }
  
  .controls label {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 0;
  }
  
  .controls input,
  .controls select {
    width: auto;
    min-width: 200px;
  }
  
  button {
    width: auto;
    padding: 12px 24px;
    font-size: 16px;
  }
  
  .input-group {
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: wrap;
  }
  
  .input-group input {
    width: 120px;
  }
  
  .input-group button {
    width: auto;
    margin-top: 0;
  }
  
  .exercise-name {
    font-size: 18px;
  }
  
  .session-header {
    padding: 15px 20px;
  }
 
 .plate-guide {
  display: block;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 10px;
  margin: 6px 0 12px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  text-align: center;
  line-height: 1.4;
}


}