body {
    background-color: #fff;
    padding-top:32px;
}

.container {
    max-width: 1000px;
}

.exercise-row {
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.3s ease;
    position: relative;
}

.exercise-row::after {
    content: attr(data-exercise-number);
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 0.75rem;
    color: #adb5bd;
    font-weight: normal;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.exercise-row:hover::after {
    opacity: 1;
}

.exercise-row img { 
    max-height: 90px;
}

.exercise-row:nth-child(odd) {
    background-color: #fff;
}

.exercise-row:nth-child(even) {
    background-color: #f8f9fa;
}

/* Make sure this comes after the nth-child rules to override them */
.exercise-row.exercise-complete {
    background-color: #d4edda !important;
}

input.exercise-input {
    max-width: 100%;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.navbar-brand {
    font-family: 'Anton', sans-serif;
    letter-spacing: 0.05em;
    font-size: 24px;
}
.navbar-brand a {
    text-decoration: none;
    color: #000;
}

/* LIGHT BOX */
/* Custom styles for image hover effect */
.image-link {
    transition: transform 0.2s;
    cursor: pointer;
}

.image-link:hover .gallery-image {
    transform: scale(1.05);
}

/* SimpleLightbox custom styles */
.sl-overlay {
    background: #000 !important;
    opacity: 0.9 !important;
}

.sl-wrapper .sl-navigation button {
    color: #fff !important;
}

.sl-wrapper .sl-close {
    color: #fff !important;
}

/* Clear exercise button */
.clear-exercise {
    cursor: pointer;
    color: #000;
    margin-left: 0.5rem;
    display: none;
}

.clear-exercise:hover {
    color: #a02622;
}

.exercise-complete .clear-exercise {
    display: inline;
}

/*
=================================================
Navbar Timer
=================================================
*/
.navbar-timer {
    overflow: visible;
    transition: background-color 0.3s ease;
    padding-bottom: 3px; /* Makes room for the bar */
    z-index: 1030; /* Ensure navbar is above content */
  }

  /* YouTube-style progress bar (3px at bottom) */
  .navbar-timer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: #dc3545; /* Bootstrap danger red */
    transition: width 0s linear;
    z-index: 1;
    pointer-events: none;
    box-shadow: 0 0 2px rgba(220, 53, 69, 0.8);
  }

  .navbar-timer.active {
    background-color: #ffe5e5 !important;
  }

  .navbar-timer.active::after {
    width: 100%;
    animation: timerProgress var(--animation-duration, 30s) linear forwards;
  }

  @keyframes timerProgress {
    from { width: 0%; }
    to   { width: 100%; }
  }

  /* Optional: pulse on active stopwatch */
  .stopwatch-active {
    animation: pulse 1s infinite;
  }

  @keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.15); }
    100% { transform: scale(1); }
  }

  .navbar-brand, .bi-stopwatch {
    z-index: 2;
  }

  #timerBtn {
    text-decoration: none !important;
  }

  /* Workout menu styling */
  #workout-menu .list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #dee2e6;
  }

  #workout-menu .list-group-item a {
    text-decoration: none;
    color: inherit;
  }

  #workout-menu .list-group-item a:hover {
    background-color: #f8f9fa;
  }

  .dropdown-menu .dropdown-item {
    text-decoration: none;
  }

  .dropdown-menu .dropdown-item.active {
    background-color: #e9ecef;
    color: #000;
    font-weight: 600;
    text-decoration: none;
  }

/* Remove outline, border, and box-shadow from navbar toggler */
.navbar-toggler {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0.25rem 0.5rem;
}

/* Remove focus/hover effects completely */
.navbar-toggler:focus,
.navbar-toggler:hover,
.navbar-toggler:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background-color: transparent !important;
}

/* Optional: Keep icon clean on hover */
.navbar-toggler:hover .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Fireworks Canvas Overlay */
canvas {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  background-color: transparent;
}
