/* tracker.css */
:root {
  --primary-bg: #1f1f1f;
  --secondary-bg: #2c2c2c;
  --tertiary-bg: #3a3a3a;
  --text-primary: #f0f0f0;
  --text-secondary: #ccc;
  --accent-color: #8cceff;
  --accent-color-light: #a0d9ff;
  --primary-blue: #007bff;
}

html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
    background: #181818;
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0 0 80px 0; /* Increased bottom padding for fixed footer */
    min-height: 100vh;
  }
  h1, h2, h3 {
    text-align: center;
    letter-spacing: -1px;
  }
  nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin: 35px 10px;
  }
  nav a {
    display: block;
    background: #262626;
    color: #fff;
    text-decoration: none;
    border-radius: 18px;
    padding: 24px 0;
    font-size: 1.35em;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 8px #0002;
    letter-spacing: 1px;
    transition: background 0.2s;
    border: 2px solid #333;
  }
  nav a:hover {
    background: #333;
    color: #fff;
    border-color: #5c5;
  }
  footer {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #1a1a1a;
    padding: 10px 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
  .exercise-card {
    background: #232323;
    border-radius: 18px;
    margin: 16px 0 25px 0;
    padding: 18px 10px 11px 10px;
    box-shadow: 0 2px 8px #0002;
  }
  .exercise-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
  }
  .exercise-name {
    font-size: 1.15em;
    font-weight: bold;
    border: none;
    background: transparent;
    color: #fff;
    width: 80%;
    padding: 3px 0;
    outline: none;
    border-bottom: 1px solid #444;
  }
  .exercise-header button {
    background: none;
    border: none;
    color: #ff6565;
    font-size: 1.3em;
    cursor: pointer;
  }
  .set-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
  }
  .set-row input[type="checkbox"] {
    width: 34px;
    height: 34px;
    accent-color: #44e;
    margin-right: 8px;
  }
  .set-row input[type="number"] {
    width: 64px;
    background: #111;
    color: #fff;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 5px 7px;
    font-size: 1.1em;
    text-align: right;
  }
  .set-row label {
    font-weight: normal;
    font-size: 1em;
  }
  textarea.notes {
    background: #1a1a1a;
    color: #ddd;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 1em;
    margin-top: 7px;
    padding: 5px 7px;
  }
  button {
    background: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 13px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
  }
  button:hover {
    background: #555;
  }
  input:focus, textarea:focus {
    outline: 2px solid #44e;
  }
  @media (max-width: 700px) {
    .exercise-card {
      padding: 10px 2px 9px 2px;
    }
    nav a {
      font-size: 1.07em;
      padding: 18px 0;
    }
    h1 {
      font-size: 1.3em;
      margin: 13px 0 10px 0;
    }
  }

/* Added styles for timer controls */
.timer-controls {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.timer-btn {
  padding: 8px 12px;
  border-radius: 4px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}
.timer-btn:active {
  transform: scale(0.95);
}
.timer-display {
  font-size: 1.2em;
  font-weight: bold;
  color: #eee;
}

/* Profile Page Styles */
.profile-container {
  padding: 15px;
  max-width: 800px;
  margin: 0 auto;
}

.profile-section {
  background: #232323;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px #0003;
}

.profile-section h3 {
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--tertiary-bg);
  padding-bottom: 10px;
  color: var(--accent-color);
}

.dob-container {
    display: flex;
    gap: 10px;
}

.dob-container select {
    width: 100%; /* Each select will take up equal space */
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: bold;
  color: #ccc;
  display: block;
  margin-bottom: 5px;
  color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: #1a1a1a;
  border: 1px solid #444;
  color: #fff;
  border-radius: 6px;
  font-size: 1em;
}

.profile-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.profile-actions button {
  flex-grow: 1;
  max-width: 200px;
}

.btn-save { background-color: #28a745; }
.btn-export { background-color: #007bff; }
.btn-import { background-color: #6c757d; }
.btn-reset { background-color: #dc3545; }

.home-link {
  display: none; /* Hide the old top-left home link */
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid #444;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-btn {
    background-color: var(--primary-blue);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

/* Photo Gallery Styles */
#photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
}
.photo-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px #0005;
}
.photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.2s;
}
.photo-container:hover img {
  transform: scale(1.05);
}
.photo-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, #000c, transparent);
  color: white;
  padding: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
  opacity: 0;
  transition: opacity 0.2s;
}
.photo-container:hover .photo-meta {
  opacity: 1;
}
.delete-photo-btn {
  background: none;
  border: none;
  color: #ff8a8a;
  cursor: pointer;
  padding: 0;
  font-size: 1.2em;
}

/* Lightbox Styles */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000e0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.close-lightbox {
  position: absolute;
  top: -10px;
  right: 0;
  color: white;
  font-size: 3em;
  font-weight: bold;
  cursor: pointer;
}
/* Social Share Idea */
.social-share {
  margin-top: 15px;
  text-align: center;
}
.social-share button {
  margin: 0 5px;
  background: #555;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5em;
}

/* Builder Page Styles */
.workout-template-item, .assignment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #2a2a2a;
  border-radius: 8px;
  margin-bottom: 10px;
}
.template-actions button, .assignment-row select {
  margin-left: 10px;
}
.exercise-editor-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.exercise-editor-item input {
  flex-grow: 1;
  padding: 8px;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-bg);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: var(--secondary-bg);
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  position: relative;
}

.wizard-large {
    max-width: 1200px;
    height: 90vh; /* Make modal tall on large screens */
    display: flex;
    flex-direction: column;
}

.wizard-main-content {
    display: flex;
    gap: 20px;
    flex-grow: 1; /* Allow this area to fill available space */
    overflow-y: hidden; /* Prevent this level from scrolling */
}

.wizard-panel {
    background-color: var(--tertiary-bg);
    padding: 20px;
    border-radius: 8px;
    width: 50%;
    display: flex;
    flex-direction: column;
}

#current-workout-panel .form-group {
    margin-bottom: 15px;
}

.library-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.library-controls select, .library-controls input {
  width: 100%;
  padding: 8px;
  background-color: #444;
  border: 1px solid #666;
  color: #f0f0f0;
  border-radius: 4px;
}

.exercise-list {
  overflow-y: auto; /* Make this part scrollable */
  flex-grow: 1; /* Allow it to take up all vertical space in the panel */
  padding-right: 10px; /* Add space for scrollbar */
}

.library-exercise-item {
  background-color: #444;
  border-radius: 5px;
  margin-bottom: 10px;
  transition: background-color 0.2s, box-shadow 0.2s;
  position: relative;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.library-exercise-item:hover {
    background-color: #4f4f4f;
    box-shadow: 0 0 8px rgba(82, 160, 82, 0.5);
}

@keyframes flash-success {
    50% { background-color: #418441; }
}

.item-added-feedback {
    animation: flash-success 0.4s ease-out;
}

.library-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px;
}

.library-item-header:hover {
    background-color: #555; /* Keep a slight hover on header for clarity */
}

.library-item-header h5 {
    margin: 0;
    color: #f0f0f0;
}

.library-item-content h5 {
    margin: 0 0 5px 0;
    color: #f0f0f0;
}

.library-item-content p {
    margin: 0;
    font-size: 0.85em;
    color: #ccc;
    line-height: 1.4;
}

.library-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.video-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
}
.video-link:hover {
    text-decoration: underline;
}

.add-exercise-btn {
    background: #52a052;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 6px 14px;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.add-exercise-btn:hover {
    background: #418441;
}

.add-exercise-btn:active {
    background: #2e6f2e;
    transform: scale(0.95);
}

/* Responsive Design for Builder */
@media (max-width: 850px) {
  .modal-content.wizard-large {
    width: 95vw;
    max-width: 95vw;
    margin: 2.5vh auto;
    padding: 15px;
  }

  .wizard-main-content {
    flex-direction: column;
    min-height: 80vh;
    gap: 15px;
  }

  .exercise-list {
    max-height: 30vh;
  }
}

.collapsible-content {
    max-height: 200px; /* Allows space for content to show */
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 10px 10px 10px;
}

.collapsible-content.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.collapsible-content p {
  margin: 0;
  font-size: 0.85em;
  color: #ccc;
  border-top: 1px solid #555;
  padding-top: 10px;
}

.exercise-editor-item {
    background-color: #444;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center;   /* Center items horizontally */
    gap: 15px;
}

.exercise-editor-item .exercise-name-container {
    text-align: center;
    width: 100%;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--accent-color-light);
}

.exercise-editor-item > div:first-child {
    flex-grow: 1;
}

.exercise-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1; /* Allow it to take space */
}

.strength-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* New layout for cardio parameters */
.exercise-controls-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px; /* Space between parameter blocks */
    width: 100%;
}

.param-item {
    display: flex;
    flex-direction: column; /* Stack label above input */
    align-items: center;
    gap: 4px; /* Space between label and input */
}

.param-item label {
    font-size: 0.8em; /* Make label text smaller */
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.param-item input {
    width: 80px; /* A fixed, compact width */
    font-size: 0.9em;
    padding: 8px;
    text-align: center;
}

.wizard-actions {
  padding-top: 20px;
  border-top: 1px solid #444;
  flex-shrink: 0; /* Prevent this from shrinking */
}

.remove-btn {
    background-color: #d9534f;
    border: none;
    padding: 8px 20px;
}

.close-wizard {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2em;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 768px) {
  .wizard-main-content {
    flex-direction: column;
    /* The parent container itself should not scroll. */
  }

  .wizard-panel {
    width: 100%;
    /* Distribute the vertical space between the two panels. */
    flex-basis: 50%;
    /* We must allow the panel to shrink smaller than its content,
       so the overflow can be handled by the scrolling list inside. */
    min-height: 0;
  }
}

/* General Page Layout */
header {
  background: #232323;
  padding: 15px;
  border-bottom: 2px solid #333;
}

header h2 {
  margin: 0;
  font-size: 1.6em;
  color: var(--accent-color-light);
}

main {
  padding: 15px;
  max-width: 800px;
  margin: 0 auto;
}

/* Make exercise cards look like profile sections */
.exercise-card {
  background-color: var(--secondary-bg);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.exercise-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--tertiary-bg);
  padding-bottom: 10px;
}
.exercise-name {
  font-size: 1.25em;
  border: none;
  background: transparent;
  color: #fff;
  width: 100%;
  color: var(--accent-color-light);
  margin: 0;
  font-size: 1.5em;
  flex-grow: 1;
}
.set-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px; /* Provides spacing between elements */
  padding: 10px;
  background-color: #3a3a3a;
  border-radius: 6px;
}
.set-row label {
  font-weight: bold;
  flex-basis: 60px;
}
.set-row input[type="number"] {
  width: 90px; /* Wider for better visibility */
  padding: 8px;
  background-color: #555;
  border: 1px solid #666;
  color: #f0f0f0;
  border-radius: 4px;
}

.set-row input[type="checkbox"] {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.set-row .set-label {
  min-width: 50px; /* Ensures 'Set X:' aligns nicely */
  color: #f0f0f0;
  font-weight: bold;
}

/* App-wide title styling */
.app-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
  text-align: center;
  flex-grow: 1;
}

/* Specific override for the main menu page title to make it larger */
.main-menu-page .app-title {
    font-size: 2.0rem; /* 1.8rem * 1.5 = 2.7rem */
    font-weight: bold;
}

/* Index Page Styles */
.main-header {
  text-align: center;
  padding: 20px 15px;
  background: #273437;
  border-bottom: 2px solid #333;
}

.main-header h1 {
  margin: 0;
  font-size: 1.8em;
}

.subtitle {
  margin: 5px 0 0 0;
  font-size: 1em;
  color: #ccc;
}

.main-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  padding: 20px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #262626;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  box-shadow: 0 2px 8px #0003;
  transition: all 0.2s;
  border: 2px solid #333;
}

.nav-link:hover {
  transform: translateY(-3px);
  background: #333;
  border-color: #007bff;
}

.nav-icon {
  font-size: 1.5em;
}

/* Cardio & Vitals Page Styles */
.cardio-form, .vitals-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  align-items: end;
}
.cardio-form .form-group, .vitals-form .form-group {
  margin-bottom: 0;
}
.cardio-form button, .vitals-form button {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .cardio-form, .vitals-form {
        grid-template-columns: 1fr; /* Stack form elements in a single column on mobile */
    }
}

.table-container {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}
th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #444;
}
th {
  background: #1a1a1a;
}
tr:nth-child(even) {
  background: #2a2a2a;
}

/* New Cardio Log Card Styles */
.cardio-log-card {
    background-color: var(--secondary-bg);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.cardio-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--tertiary-bg);
}
.cardio-card-header strong {
    font-size: 1.2em;
    color: var(--accent-color-light);
}
.cardio-card-header span {
    font-size: 0.9em;
    color: var(--text-secondary);
}
.cardio-card-body p {
    margin: 0 0 8px 0;
    line-height: 1.5;
}
.cardio-card-body p strong {
    color: var(--text-secondary);
    min-width: 100px;
    display: inline-block;
}
.cardio-card-body .notes {
    background-color: var(--tertiary-bg);
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-top: 10px;
}

/* New Vitals Log Card Styles */
.vitals-log-card {
    background-color: var(--secondary-bg);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.vitals-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--tertiary-bg);
}
.vitals-card-header strong {
    font-size: 1.1em;
    color: var(--text-primary);
}
.vitals-card-body p {
    margin: 0 0 8px 0;
    line-height: 1.5;
}
.vitals-card-body p strong {
    color: var(--text-secondary);
    min-width: 120px;
    display: inline-block;
}
.vitals-card-body .notes {
    background-color: var(--tertiary-bg);
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9em;
}
.delete-btn {
    background: none;
    border: none;
    color: #ff8a8a;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
}


.workout-template-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--tertiary-bg);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.workout-template-item:hover {
    background-color: var(--tertiary-bg);
    border-left-color: var(--accent-color);
}

.workout-template-item span {
    flex-grow: 1;
    text-align: left;
}
.template-actions button {
    background-color: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 5px;
    transition: all 0.2s ease;
}

#workout-container > h3 {
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 8px;
  margin-bottom: 20px;
  text-align: left;
}

/* timer-section styles */
.timer-section {
    background: var(--secondary-bg);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.timer-section h3 {
    margin: 0 0 15px 0;
    color: var(--accent-color-light);
    font-size: 1.3em;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.timer-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

.timer-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.timer-btn:active {
    transform: translateY(0);
}

.timer-btn.stop-btn {
    background: #dc3545;
}

.timer-btn.stop-btn:hover {
    background: #c82333;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.timer-display {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--accent-color-light);
    font-family: 'Courier New', monospace;
    background: var(--tertiary-bg);
    padding: 15px;
    border-radius: 10px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.timer-display.timer-complete {
    background: #28a745;
    color: white;
    animation: pulse 0.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* Enhanced notes textarea */
.exercise-notes {
    width: 100% !important;
    min-width: 100%;
    max-width: 100%;
    padding: 12px;
    background: var(--tertiary-bg);
    border: 1px solid #555;
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    margin-top: 10px;
    resize: none;
    overflow: hidden;
    min-height: 60px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    box-sizing: border-box;
}

.exercise-notes:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--secondary-bg);
}

.exercise-notes::placeholder {
    color: #888;
    font-style: italic;
}

/* Enhanced video link button */
.video-link-btn {
    background: var(--accent-color);
    color: var(--primary-bg);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 36px;
}

.video-link-btn:hover {
    background: var(--accent-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(140, 206, 255, 0.4);
}

.video-link-btn:active {
    transform: translateY(0);
}

/* Mobile responsiveness for timer */
@media (max-width: 768px) {
    .timer-controls {
        gap: 8px;
    }
    
    .timer-btn {
        padding: 8px 16px;
        font-size: 0.9em;
        min-width: 55px;
    }
    
    .timer-display {
        font-size: 2em;
        padding: 12px;
        min-height: 70px;
    }
    
    .timer-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .exercise-notes {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .timer-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .timer-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .timer-display {
        font-size: 1.8em;
        padding: 10px;
        min-height: 60px;
    }
}
