/**
 * Dashboard Demo CSS
 * Mobile-first styles for user dashboard with horizontal scrolling cards
 * @version 1.0.0
 */

/* ============================================
   HORIZONTAL SCROLL CONTAINERS
   ============================================ */

.horizontal-scroll-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 0.75rem;
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
}

.horizontal-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.horizontal-scroll-container > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Fade effect at edges - optional */
.horizontal-scroll-wrapper {
  position: relative;
}

.horizontal-scroll-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--bs-body-bg));
  pointer-events: none;
  opacity: 0.7;
}

/* ============================================
   DASHBOARD WORKOUT CARDS
   ============================================ */

.dashboard-workout-card {
  min-width: 280px;
  max-width: 280px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 1px solid var(--bs-border-color);
}

.dashboard-workout-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.dashboard-workout-card:active {
  transform: scale(0.98);
}

.dashboard-workout-card .card-body {
  padding: 1rem;
}

.dashboard-workout-card .workout-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.25rem;
}

.dashboard-workout-card .workout-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-workout-card .workout-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.dashboard-workout-card .workout-last-completed {
  font-size: 0.75rem;
  color: var(--bs-secondary);
  margin-bottom: 0.75rem;
  display: block;
}

.dashboard-workout-card .btn-start {
  width: 100%;
  font-size: 0.875rem;
  padding: 0.5rem;
  font-weight: 500;
}

/* ============================================
   RECENT SESSION CARDS
   ============================================ */

.recent-session-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  border: 1px solid var(--bs-border-color);
  margin-bottom: 0.75rem;
}

.recent-session-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateX(2px);
}

.recent-session-card .card-body {
  padding: 1rem;
}

.recent-session-card .session-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.recent-session-card .session-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.recent-session-card .session-info {
  flex: 1;
  min-width: 0;
}

.recent-session-card .session-name {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-session-card .session-meta {
  font-size: 0.8125rem;
  color: var(--bs-secondary);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.recent-session-card .session-badge {
  flex-shrink: 0;
}

/* ============================================
   STATS GRID
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.25rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: var(--bs-card-bg);
  border: 1px solid var(--bs-border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.stat-card .stat-icon {
  font-size: 1.25rem;
  display: inline;
}

.stat-card .stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  display: inline;
  margin-left: 0.375rem;
}

.stat-card .stat-label {
  font-size: 0.625rem;
  color: var(--bs-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
  display: block;
  margin-top: 0.125rem;
}

/* ============================================
   WEEKLY PROGRESS
   ============================================ */

.weekly-progress-card {
  background: linear-gradient(135deg, var(--bs-primary-bg-subtle) 0%, var(--bs-card-bg) 100%);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0;
}

.weekly-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.weekly-progress-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.weekly-stat {
  text-align: center;
}

.weekly-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.weekly-stat-label {
  font-size: 0.75rem;
  color: var(--bs-secondary);
}

.weekly-progress-bar-wrapper {
  margin-top: 0.75rem;
}

.weekly-progress-bar {
  height: 6px;
  border-radius: 3px;
  background-color: var(--bs-gray-200);
  overflow: hidden;
}

.weekly-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bs-primary) 0%, var(--bs-success) 100%);
  transition: width 0.5s ease;
  border-radius: 3px;
}

.weekly-progress-text {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--bs-secondary);
  text-align: center;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.dashboard-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.dashboard-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-section-title i {
  font-size: 1.25rem;
}

.dashboard-section-link {
  font-size: 0.875rem;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--bs-primary);
}

.dashboard-section-link:hover {
  text-decoration: underline;
}

/* ============================================
   DASHBOARD HEADER - Quick Actions (Option A)
   ============================================ */

.dashboard-header {
  padding: 0;
  margin-bottom: 1.5rem;
}

.dashboard-header .greeting-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bs-heading-color);
  margin: 0;
}

/* Quick Action Grid - 3 equal columns */
.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-left: -0.25rem;
  margin-right: -0.25rem;
}

/* Individual Quick Action Button - Bootstrap button styling enhanced */
.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1rem 0.75rem !important;
  min-height: 88px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.2);
  text-decoration: none;
}

.quick-action-btn:active {
  transform: scale(0.98);
}

.quick-action-btn i {
  font-size: 1.75rem;
  display: block;
}

.quick-action-btn span {
  line-height: 1.2;
  display: block;
}

/* Notification button in header */
.dashboard-header .btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--bs-secondary);
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dashboard-header .btn-icon:hover {
  background: var(--bs-gray-100);
  color: var(--bs-primary);
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .dashboard-header .btn-icon:hover {
  background: var(--bs-gray-700);
}

/* Responsive adjustments */
@media (min-width: 576px) {
  .dashboard-header .greeting-text {
    font-size: 1.75rem;
  }
  
  .quick-action-btn {
    min-height: 100px;
    padding: 1.25rem 1rem !important;
    font-size: 1rem;
  }
  
  .quick-action-btn i {
    font-size: 2rem;
  }
}

@media (min-width: 768px) {
  .quick-action-btn {
    min-height: 110px;
    font-size: 1.0625rem;
  }
  
  .quick-action-btn i {
    font-size: 2.25rem;
  }
}

/* ============================================
   PRIMARY CTA
   ============================================ */

.primary-cta-card {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-rgb) 100%);
  border: none;
  color: white;
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
}

.primary-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.primary-cta-card .card-body {
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.primary-cta-card .cta-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.primary-cta-card .cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.primary-cta-card .cta-subtitle {
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  opacity: 0.9;
  color: white;
}

.primary-cta-card .btn-cta {
  background: white;
  color: var(--bs-primary);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border: none;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-cta-card .btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: white;
  color: var(--bs-primary);
}

.primary-cta-card .btn-cta:active {
  transform: scale(0.98);
}

/* ============================================
   EMPTY STATES
   ============================================ */

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-state-icon {
  font-size: 4rem;
  color: var(--bs-gray-400);
  margin-bottom: 1rem;
  display: block;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--bs-gray-700);
}

.empty-state-text {
  font-size: 0.9375rem;
  color: var(--bs-secondary);
  margin-bottom: 1.5rem;
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading-skeleton {
  background: linear-gradient(90deg, var(--bs-gray-200) 25%, var(--bs-gray-300) 50%, var(--bs-gray-200) 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: 0.375rem;
}

@keyframes loading-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  height: 200px;
  margin-bottom: 1rem;
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 1.5rem;
  width: 60%;
  margin-bottom: 1rem;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (min-width: 576px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-workout-card {
    min-width: 260px;
    max-width: 260px;
  }
}

@media (min-width: 768px) {
  .greeting-text {
    font-size: 2rem;
  }
  
  .horizontal-scroll-container {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 992px) {
  .stats-grid {
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem;
  }
}

/* ============================================
   DARK MODE ADJUSTMENTS
   ============================================ */

[data-bs-theme="dark"] .primary-cta-card {
  background: linear-gradient(135deg, var(--bs-primary) 0%, #4169E1 100%);
}

[data-bs-theme="dark"] .stat-card {
  background: var(--bs-gray-800);
  border-color: var(--bs-gray-700);
}

[data-bs-theme="dark"] .weekly-progress-card {
  background: linear-gradient(135deg, var(--bs-gray-800) 0%, var(--bs-gray-900) 100%);
  border-color: var(--bs-gray-700);
}

[data-bs-theme="dark"] .weekly-progress-bar {
  background-color: var(--bs-gray-700);
}

[data-bs-theme="dark"] .loading-skeleton {
  background: linear-gradient(90deg, var(--bs-gray-800) 25%, var(--bs-gray-700) 50%, var(--bs-gray-800) 75%);
  background-size: 200% 100%;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-gradient-primary {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-info) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* ============================================
   PROGRESS STAT BADGES (Flat Design)
   ============================================ */

.progress-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0;
  background: transparent;
}

.progress-stat-badge i {
  font-size: 1.25rem;
}

.progress-stat-badge.improved {
  color: var(--bs-success);
}

.progress-stat-badge.same {
  color: var(--bs-secondary);
}

.progress-stat-badge.decreased {
  color: var(--bs-danger);
}

/* ============================================
   EXERCISE HISTORY TABLE - SNEAT STYLE
   ============================================ */

/* Table Wrapper for Horizontal Scroll */
.exercise-history-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0;
}

/* Base Table Styling */
.exercise-history-table {
  width: 100%;
  min-width: 500px; /* Ensures scroll on mobile */
  margin-bottom: 0;
}

.exercise-history-table th,
.exercise-history-table td {
  vertical-align: middle;
  white-space: nowrap;
}

/* Sticky First Column - Exercise Names */
.exercise-history-table .sticky-col {
  position: sticky;
  left: 0;
  background: var(--bs-card-bg);
  z-index: 2;
  border-right: 2px solid var(--bs-border-color);
}

.exercise-history-table thead .sticky-col {
  background: var(--bs-gray-100);
  z-index: 3;
}

/* Dark mode sticky column */
[data-bs-theme="dark"] .exercise-history-table .sticky-col {
  background: var(--bs-card-bg);
}

[data-bs-theme="dark"] .exercise-history-table thead .sticky-col {
  background: var(--bs-gray-800);
}

/* Exercise Column Width */
.exercise-history-table .exercise-col {
  min-width: 140px;
  max-width: 180px;
  padding-left: 1rem;
  padding-right: 0.75rem;
}

/* Session Columns */
.exercise-history-table .session-col {
  min-width: 90px;
  text-align: center;
  padding: 0.75rem 0.5rem;
}

/* Weight Display - Typography-first */
.exercise-history-table .weight-display {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--bs-body-color);
}

/* Progress state colors applied to text only */
.exercise-history-table td.increased .weight-display {
  color: var(--bs-success);
}

.exercise-history-table td.decreased .weight-display {
  color: var(--bs-danger);
}

.exercise-history-table .delta {
  font-size: 0.6875rem;
  font-weight: 400;
  margin-top: 0.125rem;
  color: var(--bs-secondary);
}

.exercise-history-table td.increased .delta {
  color: var(--bs-success);
}

.exercise-history-table td.decreased .delta {
  color: var(--bs-danger);
}

/* Progress State - NO cell backgrounds (clean design) */
.exercise-history-table td.increased {
  /* No background - color on text only */
}

.exercise-history-table td.decreased {
  /* No background - color on text only */
}

.exercise-history-table td.same {
  /* No background */
}

.exercise-history-table td.skipped {
  /* No background */
  color: var(--bs-secondary);
  font-style: italic;
}

.exercise-history-table td.not-present {
  /* No background */
  color: var(--bs-gray-400);
}

/* Bonus Exercise Row Styling - Subtle indicator */
.exercise-history-table .bonus-exercise-row {
  /* No heavy left border */
}

/* Bonus indicator as text, not badge */
.exercise-history-table .bonus-indicator {
  font-size: 0.625rem;
  color: var(--bs-info);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-left: 0.5rem;
}

/* Session Header Styling */
.exercise-history-table thead th {
  font-weight: 600;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--bs-border-color);
  padding: 0.75rem 0.5rem;
}

.exercise-history-table thead th small {
  font-weight: 400;
  font-size: 0.6875rem;
  display: block;
  margin-top: 0.125rem;
}

/* Clean row separators - dashed instead of solid */
.exercise-history-table tbody tr {
  border-bottom: 1px dashed var(--bs-gray-200);
}

.exercise-history-table tbody tr:last-child {
  border-bottom: none;
}

/* Remove hover background - keep clean */
.exercise-history-table tbody tr:hover {
  background-color: transparent;
}

.exercise-history-table tbody tr:hover .sticky-col {
  background-color: var(--bs-card-bg);
}

[data-bs-theme="dark"] .exercise-history-table tbody tr {
  border-bottom: 1px dashed var(--bs-gray-700);
}

[data-bs-theme="dark"] .exercise-history-table tbody tr:hover {
  background-color: transparent;
}

[data-bs-theme="dark"] .exercise-history-table tbody tr:hover .sticky-col {
  background-color: var(--bs-card-bg);
}

/* Responsive: Show 3 sessions on mobile, 5 on tablet+ */
@media (max-width: 575.98px) {
  .exercise-history-table {
    min-width: 400px;
  }
  
  .exercise-history-table .session-col {
    min-width: 75px;
  }
  
  .exercise-history-table .exercise-col {
    min-width: 120px;
    max-width: 140px;
    font-size: 0.875rem;
  }
  
  .exercise-history-table .weight-display {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .exercise-history-table {
    min-width: 600px;
  }
  
  .exercise-history-table .session-col {
    min-width: 100px;
  }
}

/* ============================================
   EXERCISE HISTORY COMPARISON (OLD - DEPRECATED)
   ============================================ */

/* Progress Summary Card */
.progress-summary {
  display: flex;
  gap: 1rem;
  justify-content: space-around;
  padding: 1rem;
  background: var(--bs-card-bg);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--bs-border-color);
}

.progress-summary-item {
  text-align: center;
  flex: 1;
}

.progress-summary-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.progress-summary-value.increased { color: var(--bs-success); }
.progress-summary-value.same { color: var(--gs-weight-same); }
.progress-summary-value.decreased { color: var(--bs-danger); }

.progress-summary-label {
  font-size: 0.75rem;
  color: var(--bs-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Session Dates Header */
.session-dates-header {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bs-body-bg);
  padding: 0.5rem 0;
}

.session-date-cell {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: var(--bs-primary);
  color: white;
  border-radius: 0.5rem;
}

.session-date-cell .date {
  font-weight: 700;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.125rem;
}

.session-date-cell .relative {
  font-size: 0.6875rem;
  opacity: 0.9;
  display: block;
}

/* Exercise History Grid */
.exercise-history-grid {
  display: grid;
  gap: 1rem;
}

.exercise-row {
  background: var(--bs-card-bg);
  border-radius: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--bs-border-color);
  transition: box-shadow 0.2s ease;
}

.exercise-row:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.exercise-row-header {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bs-heading-color);
}

.exercise-row-header .exercise-icon {
  font-size: 1.25rem;
}

/* Session Comparison Grid */
.session-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.session-cell {
  text-align: center;
  padding: 0.875rem 0.5rem;
  border-radius: 0.5rem;
  background: var(--bs-gray-100);
  border: 2px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.session-cell:hover {
  transform: scale(1.02);
}

/* Progress State Colors */
.session-cell.increased {
  background: rgba(var(--bs-success-rgb), 0.1);
  border-color: rgba(var(--bs-success-rgb), 0.3);
}

.session-cell.decreased {
  background: rgba(var(--bs-danger-rgb), 0.1);
  border-color: rgba(var(--bs-danger-rgb), 0.3);
}

.session-cell.same {
  background: rgba(var(--gs-weight-same-rgb, 108, 117, 125), 0.05);
  border-color: rgba(var(--gs-weight-same-rgb, 108, 117, 125), 0.2);
}

.session-cell.baseline {
  background: var(--bs-gray-100);
  border-color: var(--bs-gray-300);
}

.session-cell.skipped {
  background: rgba(var(--bs-warning-rgb), 0.1);
  border-color: rgba(var(--bs-warning-rgb), 0.3);
  opacity: 0.7;
}

/* Session Cell Content */
.session-weight {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.session-weight .indicator {
  font-size: 1rem;
  margin-left: 0.25rem;
  display: inline-block;
}

.session-weight .indicator.up {
  color: var(--bs-success);
  animation: bounce-up 0.5s ease;
}

.session-weight .indicator.down {
  color: var(--bs-danger);
  animation: bounce-down 0.5s ease;
}

.session-weight .indicator.same {
  color: var(--gs-weight-same);
}

@keyframes bounce-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.session-sets-reps {
  font-size: 0.8125rem;
  color: var(--bs-secondary);
  font-weight: 500;
}

.session-delta {
  font-size: 0.6875rem;
  margin-top: 0.25rem;
  font-weight: 600;
}

.session-delta.positive {
  color: var(--bs-success);
}

.session-delta.negative {
  color: var(--bs-danger);
}

.session-skipped-text {
  font-size: 0.75rem;
  color: var(--bs-warning);
  font-style: italic;
}

/* Volume Summary Row */
.volume-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--bs-border-color);
}

.volume-summary-item {
  text-align: center;
  font-size: 0.75rem;
  color: var(--bs-secondary);
}

.volume-summary-value {
  font-weight: 600;
  color: var(--bs-body-color);
}

/* Page Header */
.exercise-history-header {
  margin-bottom: 1.5rem;
}

.exercise-history-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.exercise-history-subtitle {
  font-size: 0.9375rem;
  color: var(--bs-secondary);
}

/* Responsive adjustments for larger screens */
@media (min-width: 576px) {
  .session-comparison-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .session-dates-header {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .volume-summary {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .session-comparison-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .session-dates-header {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .volume-summary {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .exercise-row {
    padding: 1.25rem;
  }
  
  .session-cell {
    padding: 1rem 0.75rem;
  }
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .session-cell {
  background: var(--bs-gray-800);
}

[data-bs-theme="dark"] .session-cell.increased {
  background: rgba(var(--bs-success-rgb), 0.15);
  border-color: rgba(var(--bs-success-rgb), 0.4);
}

[data-bs-theme="dark"] .session-cell.decreased {
  background: rgba(var(--bs-danger-rgb), 0.15);
  border-color: rgba(var(--bs-danger-rgb), 0.4);
}

[data-bs-theme="dark"] .session-cell.same {
  background: rgba(var(--gs-weight-same-rgb, 108, 117, 125), 0.1);
  border-color: rgba(var(--gs-weight-same-rgb, 108, 117, 125), 0.3);
}

[data-bs-theme="dark"] .session-cell.baseline {
  background: var(--bs-gray-800);
  border-color: var(--bs-gray-600);
}

[data-bs-theme="dark"] .session-date-cell {
  background: var(--bs-primary);
}

[data-bs-theme="dark"] .exercise-row {
  background: var(--bs-gray-900);
  border-color: var(--bs-gray-700);
}
