/* Admin Panel Styles */

.admin-page {
  padding: 20px;
  background-color: #f5f7fa;
  min-height: 100vh;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.admin-header h1 {
  color: #333;
  font-size: 28px;
  margin: 0;
}

.admin-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-breadcrumb {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.admin-breadcrumb a {
  color: #667eea;
  text-decoration: none;
}

.admin-breadcrumb a:hover {
  text-decoration: underline;
}

.admin-breadcrumb .separator {
  margin: 0 6px;
  color: #aaa;
}

/* Flash messages */
.admin-flash {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-flash-notice {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.admin-flash-alert {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Buttons */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.admin-btn-primary {
  background-color: #667eea;
  color: white;
}

.admin-btn-primary:hover {
  background-color: #5568d3;
  color: white;
}

.admin-btn-secondary {
  background-color: #6c757d;
  color: white;
}

.admin-btn-secondary:hover {
  background-color: #545b62;
  color: white;
}

.admin-btn-danger {
  background-color: #dc3545;
  color: white;
}

.admin-btn-danger:hover {
  background-color: #b02a37;
  color: white;
}

.admin-btn-outline {
  background-color: white;
  color: #667eea;
  border: 2px solid #667eea;
}

.admin-btn-outline:hover {
  background-color: #667eea;
  color: white;
}

.admin-btn-sm {
  padding: 4px 10px;
  font-size: 13px;
}

/* Search / filter bar */
.admin-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-search-input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  width: 240px;
}

.admin-search-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

.admin-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background-color: white;
}

.admin-select:focus {
  outline: none;
  border-color: #667eea;
}

/* Table */
.admin-table-wrapper {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table thead {
  background-color: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
}

.admin-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #555;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background-color: #fafbff;
}

.admin-table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-empty-state {
  padding: 48px 24px;
  text-align: center;
  color: #888;
}

.admin-empty-state .material-symbols-outlined {
  font-size: 48px;
  color: #ccc;
  display: block;
  margin-bottom: 12px;
}

/* Badges */
.admin-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}

.admin-badge-strength   { background-color: #fff3cd; color: #856404; }
.admin-badge-warmup     { background-color: #ffe5d0; color: #7c4b00; }
.admin-badge-mobility   { background-color: #cff4fc; color: #055160; }
.admin-badge-stretch    { background-color: #d1ecf1; color: #0c5460; }
.admin-badge-cardio     { background-color: #f8d7da; color: #721c24; }
.admin-badge-yoga       { background-color: #e2d9f3; color: #432874; }
.admin-badge-sport      { background-color: #d4edda; color: #155724; }
.admin-badge-default    { background-color: #e9ecef; color: #495057; }

/* Detail view */
.admin-detail-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 28px;
  max-width: 800px;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.admin-detail-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.admin-detail-field p {
  margin: 0;
  font-size: 15px;
  color: #333;
}

.admin-detail-field-full {
  grid-column: 1 / -1;
}

.admin-detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* Form */
.admin-form-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 28px;
  max-width: 800px;
}

.admin-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.admin-form-group {
  margin-bottom: 20px;
}

.admin-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.admin-form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  background-color: white;
  box-sizing: border-box;
}

.admin-form-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

.admin-form-control.is-invalid {
  border-color: #dc3545;
}

textarea.admin-form-control {
  resize: vertical;
  min-height: 100px;
}

.admin-form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.admin-form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.admin-form-check label {
  font-size: 14px;
  color: #333;
  cursor: pointer;
  margin: 0;
}

.admin-form-errors {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

.admin-form-errors ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.admin-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* Dashboard nav link for movements */
.admin-nav-links {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #667eea;
  text-decoration: none;
  border: 1px solid #e0e4f8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: background-color 0.2s, box-shadow 0.2s;
}

.admin-nav-link:hover {
  background-color: #667eea;
  color: white;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}
/* Authentication Pages Styles */

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  padding: 20px;
  background: linear-gradient(
    135deg,
    var(--color-navy) 0%,
    var(--color-burgundy) 100%
  );
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 40px 32px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-coral);
  margin: 0 0 8px 0;
}

.auth-subtitle {
  font-size: 16px;
  color: var(--color-medium-gray);
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark-gray);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid var(--color-light-gray);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-dark-gray);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(248, 133, 89, 0.1);
}

.form-input::placeholder {
  color: var(--color-medium-gray);
}

.btn {
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--color-coral);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #e67549;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(248, 133, 89, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-block {
  width: 100%;
}

.auth-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.auth-alert-error {
  background: #fee;
  color: var(--color-error);
  border: 1px solid #fcc;
}

.auth-error-list {
  margin: 0;
  padding-left: 20px;
}

.auth-error-list li {
  margin: 4px 0;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-light-gray);
}

.auth-footer-text {
  font-size: 14px;
  color: var(--color-medium-gray);
  margin: 0;
}

.auth-link {
  color: var(--color-coral);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: #e67549;
  text-decoration: underline;
}

/* Avatar Selection Grid */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
  padding: 12px;
  background: var(--color-off-white);
  border-radius: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.avatar-option {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.avatar-option:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.avatar-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.avatar-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  display: block;
  border: 3px solid transparent;
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.avatar-radio:checked + .avatar-image {
  border-color: var(--color-coral);
  box-shadow: 0 0 0 2px var(--color-coral);
}

.form-hint {
  font-size: 13px;
  color: var(--color-medium-gray);
  margin-top: 4px;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .auth-card {
    padding: 32px 24px;
  }

  .auth-logo {
    font-size: 28px;
  }

  .form-input {
    font-size: 16px;
  }

  .avatar-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    max-height: 300px;
  }
}

/* Override app layout for auth pages */
.auth-container .app-header,
.auth-container .app-navbar {
  display: none;
}
/* Color Palette for Rolando Workout App */
/* CSS Custom Properties (Variables) */

:root {
  /* Primary Colors */
  --color-navy: #2d3250;
  --color-coral: #f88559;
  --color-peach: #ffb894;
  --color-burgundy: #a05454;

  /* Neutral Colors */
  --color-white: #ffffff;
  --color-cream: #faf9f6;
  --color-light-gray: #e8e8e8;
  --color-medium-gray: #9ca3af;
  --color-dark-gray: #374151;

  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Accent Colors */
  --color-purple: #a78bfa;
  --color-green: #34d399;
  --color-orange-light: #fed7aa;

  /* Theme Mappings */
  --color-primary: var(--color-coral);
  --color-background: var(--color-navy);
  --color-surface: var(--color-white);
  --color-text-primary: var(--color-dark-gray);
  --color-text-secondary: var(--color-medium-gray);
  --color-text-on-dark: var(--color-white);
  --color-app-background: var(--color-cream);
}

/* Usage example:
 * background-color: var(--color-navy);
 * color: var(--color-coral);
 */
/* Header Components */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
}

.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  padding: 0;
}

/* Fix for button_to forms in header */
.header-btn form {
  display: contents;
}

.header-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.header-btn:active {
  background-color: rgba(255, 255, 255, 0.2);
}

.header-spacer {
  flex: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.header-date-day {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.header-date-month {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-primary);
  text-transform: uppercase;
}

.header-profile-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-white);
  border-radius: 50%;
  padding: 2px;
}

.header-profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Hamburger Menu */
.hamburger-menu {
  position: absolute;
  top: 64px;
  right: 16px;
  width: 240px;
  background-color: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.hamburger-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hamburger-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--color-dark-gray);
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-off-white);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hamburger-menu-item:first-child {
  border-radius: 8px 8px 0 0;
}

.hamburger-menu-item:last-child {
  border-bottom: none;
  border-radius: 0 0 8px 8px;
}

.hamburger-menu-item:hover {
  background-color: var(--color-off-white);
  color: var(--color-coral);
}

.hamburger-menu-item.active {
  background-color: rgba(255, 107, 107, 0.1);
  color: var(--color-coral);
  font-weight: 600;
}

.hamburger-menu-item svg {
  flex-shrink: 0;
}

.hamburger-menu-divider {
  height: 1px;
  background-color: var(--color-light-gray);
  margin: 4px 0;
}

.hamburger-menu-logout {
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.hamburger-menu-logout:hover {
  color: var(--color-coral);
}

/* Navbar Components */
.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  height: 100%;
}

.navbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  height: 100%;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 8px;
}

.navbar-item svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  stroke: var(--color-text-primary);
}

.navbar-label {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.navbar-item:hover {
  color: var(--color-coral);
}

.navbar-item:hover svg {
  stroke: var(--color-coral);
}

.navbar-item.active {
  color: var(--color-coral);
}

.navbar-item.active svg {
  stroke: var(--color-coral);
  stroke-width: 2.5;
}

/* Mobile Optimizations */
@media (max-width: 767px) {
  .navbar-label {
    font-size: 10px;
  }

  .navbar-item svg {
    width: 22px;
    height: 22px;
  }
}

/* Tablet and Desktop */
@media (min-width: 768px) {
  .header-btn:focus-visible {
    outline: 2px solid var(--color-coral);
    outline-offset: 2px;
  }

  .navbar-item:focus-visible {
    outline: 2px solid var(--color-coral);
    outline-offset: -2px;
  }
}

/* Custom Dropdown Component */
.custom-dropdown {
  position: relative;
  width: 100%;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--color-dark-gray);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-trigger:hover {
  border-color: var(--color-medium-gray);
}

.dropdown-trigger:focus {
  outline: none;
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.dropdown-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.dropdown-chevron.rotate {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background-color: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  max-height: 300px;
  overflow-y: auto;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: left;
  background: none;
  border: none;
  color: var(--color-dark-gray);
  cursor: pointer;
  transition: background-color 0.15s ease;
  font-size: 1rem;
}

.dropdown-item:hover {
  background-color: var(--color-off-white);
}

.dropdown-item.active {
  background-color: rgba(255, 107, 107, 0.1);
  color: var(--color-coral);
  font-weight: 600;
}

.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

/* Dropdown search */
.dropdown-search {
  padding: 0.5rem;
  border-bottom: 1px solid var(--color-light-gray);
  position: sticky;
  top: 0;
  background-color: var(--color-white);
  z-index: 1;
}

.dropdown-search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-light-gray);
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--color-dark-gray);
  transition: border-color 0.2s ease;
}

.dropdown-search-input:focus {
  outline: none;
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.dropdown-search-input::placeholder {
  color: var(--color-medium-gray);
}

/* Scrollbar styling for dropdown menu */
.dropdown-menu::-webkit-scrollbar {
  width: 8px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background-color: var(--color-light-gray);
  border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-medium-gray);
}

/* Workout Session Components */
.current-session-card {
  padding: 1rem;
  background: var(--color-coral);
  border: 2px solid var(--color-coral);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(248, 133, 89, 0.3),
    0 2px 4px -1px rgba(248, 133, 89, 0.2);
}

.session-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.session-status-active {
  background-color: rgba(74, 222, 128, 0.15);
  color: rgb(22, 163, 74);
}

.session-status-paused {
  background-color: rgba(251, 191, 36, 0.15);
  color: rgb(202, 138, 4);
}

.session-status-completed {
  background-color: rgba(156, 163, 175, 0.15);
  color: rgb(75, 85, 99);
}

.exercise-card {
  border: 1px solid var(--color-light-gray);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

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

.exercise-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.5rem;
  transition: background-color 0.2s ease;
  user-select: none;
}

.exercise-card-header:hover {
  background-color: var(--color-off-white);
}

.exercise-card-header:active {
  background-color: rgba(0, 0, 0, 0.02);
}

.exercise-header-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  flex: 1;
}

.exercise-prescription {
  font-size: 0.8125rem;
  color: var(--color-medium-gray);
  margin: 0;
}

.exercise-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-dark-gray);
}

.exercise-meta {
  font-size: 0.875rem;
  color: var(--color-medium-gray);
}

.btn-info {
  padding: 0.2rem 0.5rem;
  background-color: var(--color-coral);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.btn-info:hover {
  background-color: rgb(239, 68, 68);
  transform: translateY(-1px);
}

.btn-info:active {
  transform: translateY(0);
}

.exercise-info {
  padding: 0.4rem 0.5rem;
  background-color: rgba(255, 107, 107, 0.05);
  border-top: 1px solid var(--color-light-gray);
  border-bottom: 1px solid var(--color-light-gray);
}

.exercise-info-content p {
  margin: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--color-dark-gray);
}

.exercise-info-content p:first-child {
  margin-top: 0;
}

.exercise-info-content p:last-child {
  margin-bottom: 0;
}

.target-sets-list {
  list-style: none;
  padding-left: 0;
  margin: 0.25rem 0 0;
}

.target-sets-list li {
  padding: 0.15rem 0;
  font-size: 0.875rem;
  color: var(--color-medium-gray);
}

.chevron-icon {
  flex-shrink: 0;
  color: var(--color-text-primary);
  transition: transform 0.3s ease;
}

.chevron-icon.rotated {
  transform: rotate(180deg);
}

.exercise-card-body {
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  opacity: 1;
  padding: 0 0.5rem 0.5rem;
}

.exercise-card-body.collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0 0.5rem;
}

.sets-container {
  margin-bottom: 0.3rem;
}

.sets-table {
  width: 100%;
  table-layout: fixed;
}

.sets-table thead tr {
  border-bottom: 2px solid var(--color-light-gray);
}

.sets-table th {
  padding: 0.2rem 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-medium-gray);
  text-align: left;
}

.sets-table tbody tr {
  border-bottom: 1px solid var(--color-off-white);
}

.set-row td {
  padding: 0.2rem 0.25rem;
  vertical-align: middle;
  height: 2rem;
}

.set-number {
  font-weight: 600;
  color: var(--color-medium-gray);
  font-size: 0.875rem;
  width: 30px;
  text-align: center;
}

.weight-cell {
  gap: 0.25rem;
  align-items: center;
}

.set-input {
  width: 60px;
  padding: 0.25rem 0.3rem;
  border: 1px solid var(--color-light-gray);
  border-radius: 4px;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
  text-align: center;
}

.set-input:focus {
  outline: none;
  border-color: var(--color-coral);
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
}

.set-input:read-only {
  border: none;
  border-bottom: 1px solid var(--color-light-gray);
  border-radius: 0;
  background: transparent;
  padding: 0.1rem 0;
  cursor: default;
  width: 55px;
  min-width: 55px;
}

.set-input:read-only:focus {
  box-shadow: none;
  border-bottom: 1px solid var(--color-light-gray);
}

.set-input-select {
  padding: 0.25rem 0.3rem;
  border: 1px solid var(--color-light-gray);
  border-radius: 4px;
  font-size: 0.875rem;
  background-color: var(--color-white);
  cursor: pointer;
  transition: border-color 0.2s ease;
  text-align: center;
  min-width: 50px;
}

.set-input-select:focus {
  outline: none;
  border-color: var(--color-coral);
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
}

.set-input-select:disabled {
  border: none;
  border-bottom: 1px solid var(--color-light-gray);
  border-radius: 0;
  background: transparent;
  padding: 0.1rem 0;
  cursor: default;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 45px;
  width: 45px;
}

.set-input-select:disabled:focus {
  box-shadow: none;
  border-bottom: 1px solid var(--color-light-gray);
}

.set-actions {
  text-align: right;
  gap: 0.15rem;
  justify-content: flex-end;
  align-items: center;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.btn-danger-icon {
  color: var(--color-danger);
}

.btn-danger-icon:hover {
  background-color: rgba(239, 68, 68, 0.1);
}

.btn-check-icon {
  color: var(--color-text-primary);
}

.btn-check-icon:hover {
  background-color: rgba(74, 222, 128, 0.1);
  color: rgb(22, 163, 74);
}

.btn-check-icon.saved {
  color: var(--color-coral);
}

.btn-check-icon.saved:hover {
  background-color: rgba(255, 107, 107, 0.1);
  color: var(--color-coral);
}

.btn-delete-icon {
  color: var(--color-text-primary);
}

.btn-delete-icon:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--color-danger);
}

.btn-edit-icon {
  color: var(--color-coral);
}

.btn-edit-icon:hover {
  background-color: rgba(255, 107, 107, 0.1);
}

.shadow-row {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background-color: rgba(0, 0, 0, 0.02);
  border: 2px dashed var(--color-light-gray);
  border-radius: 8px;
  opacity: 0.7;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.shadow-row:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.03);
}

.shadow-row form {
  display: contents;
}

.shadow-row-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: var(--color-medium-gray);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.shadow-row-button:hover {
  color: var(--color-coral);
}

.shadow-row-button svg {
  flex-shrink: 0;
}

.exercise-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
}

.exercise-action-label {
  font-size: 0.7rem;
  color: var(--color-coral);
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.2s ease;
  user-select: none;
}

.exercise-action-label:hover {
  opacity: 0.7;
}

.set-input:disabled,
.set-input-select:disabled {
  background-color: var(--color-off-white);
  color: var(--color-medium-gray);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Confirmation Modal Component */
.confirmation-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.confirmation-modal-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 100%;
  animation: slideUp 0.2s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.confirmation-modal-header {
  margin-bottom: 16px;
}

.confirmation-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0;
}

.confirmation-modal-body {
  margin-bottom: 24px;
}

.confirmation-modal-message {
  font-size: 16px;
  color: var(--color-dark-gray);
  line-height: 1.5;
  margin: 0;
}

.confirmation-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.confirmation-modal-actions .btn {
  flex: 1;
  max-width: 150px;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  .confirmation-modal-card {
    max-width: 90%;
    padding: 20px;
  }

  .confirmation-modal-title {
    font-size: 18px;
  }

  .confirmation-modal-message {
    font-size: 14px;
  }

  .confirmation-modal-actions {
    flex-direction: column-reverse;
  }

  .confirmation-modal-actions .btn {
    max-width: none;
    width: 100%;
  }
}

/* Avatar Components */
.profile-avatar {
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--color-coral);
  margin: 0 auto 1rem;
  display: block;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.user-list-avatar {
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--color-light-gray);
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Mobile responsiveness for avatars */
@media (max-width: 767px) {
  .profile-avatar {
    width: 56px;
    height: 56px;
    max-width: 56px;
    max-height: 56px;
  }

  .user-list-avatar {
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
  }
}

/* Bottom Drawer Component */
.bottom-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bottom-drawer-backdrop.show {
  opacity: 1;
}

.bottom-drawer-container {
  background: var(--color-white);
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.bottom-drawer-container.show {
  transform: translateY(0);
}

.bottom-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-light-gray);
  flex-shrink: 0;
}

.bottom-drawer-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0;
}

.bottom-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: var(--color-text-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.bottom-drawer-close:hover {
  background-color: var(--color-off-white);
  color: var(--color-dark-gray);
}

.bottom-drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

/* Scrollbar styling for drawer body */
.bottom-drawer-body::-webkit-scrollbar {
  width: 8px;
}

.bottom-drawer-body::-webkit-scrollbar-track {
  background: transparent;
}

.bottom-drawer-body::-webkit-scrollbar-thumb {
  background-color: var(--color-light-gray);
  border-radius: 4px;
}

.bottom-drawer-body::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-medium-gray);
}

/* New Session Drawer - limit content height */
#new-session-drawer-content {
  max-height: 50vh;
  overflow-y: auto;
}

/* Mobile responsiveness for bottom drawer */
@media (max-width: 767px) {
  .bottom-drawer-container {
    max-height: 90vh;
    border-radius: 12px 12px 0 0;
  }

  .bottom-drawer-header {
    padding: 1rem 1.25rem;
  }

  .bottom-drawer-title {
    font-size: 1.125rem;
  }

  .bottom-drawer-body {
    padding: 1.25rem;
  }
}

/* Pagination Component */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination a {
  background-color: var(--color-white);
  border: 1px solid var(--color-light-gray);
  color: var(--color-dark-gray);
}

.pagination a:hover {
  background-color: var(--color-off-white);
  border-color: var(--color-coral);
  color: var(--color-coral);
}

.pagination span.current {
  background-color: var(--color-coral);
  color: var(--color-white);
  border: 1px solid var(--color-coral);
}

.pagination span.gap {
  background: transparent;
  border: none;
  color: var(--color-medium-gray);
  min-width: auto;
  padding: 0 0.25rem;
}

.pagination span.disabled,
.pagination span.prev,
.pagination span.next,
.pagination span.first,
.pagination span.last {
  background-color: var(--color-off-white);
  border: 1px solid var(--color-light-gray);
  color: var(--color-medium-gray);
  cursor: not-allowed;
}

.pagination .prev a,
.pagination .next a,
.pagination .first a,
.pagination .last a {
  padding: 0 0.5rem;
}

@media (max-width: 767px) {
  .pagination {
    gap: 0.25rem;
  }

  .pagination a,
  .pagination span {
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    font-size: 0.8125rem;
  }
}

/* Settings Button */
.btn-settings {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: var(--color-text-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.btn-settings:hover {
  background-color: var(--color-off-white);
  color: var(--color-coral);
}

.btn-settings:active {
  background-color: rgba(255, 107, 107, 0.1);
}

/* Settings Section in Drawer */
.settings-section {
  margin-bottom: 1.5rem;
}

.settings-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 0.5rem 0;
}

.settings-description {
  font-size: 0.875rem;
  color: var(--color-medium-gray);
  margin: 0 0 1rem 0;
}

/* Settings Checkboxes */
.settings-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: var(--color-off-white);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.checkbox-item:hover {
  background-color: rgba(255, 107, 107, 0.08);
}

.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-coral);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-dark-gray);
}

.checkbox-hint {
  font-size: 0.75rem;
  color: var(--color-medium-gray);
  margin-left: auto;
}

/* Settings Actions */
.settings-actions {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-light-gray);
}

/* Hidden state for modals/drawers */
.hidden {
  display: none;
}

/* Movement Picker Component */
.movement-picker-filters {
  margin-bottom: 1rem;
}

.movement-picker-filter-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.movement-picker-search {
  flex: 1;
  min-width: 150px;
}

.movement-picker-type-filter {
  min-width: 120px;
}

.movement-picker-list {
  max-height: 50vh;
  overflow-y: auto;
}

.movement-picker-loading {
  text-align: center;
  padding: 1rem;
}

/* Progress Chart SVG Gradient Stops */
.progress-chart-gradient-start {
  stop-color: var(--color-chart-line);
  stop-opacity: 0.5;
}

.progress-chart-gradient-end {
  stop-color: var(--color-chart-line);
  stop-opacity: 0;
}

/* ========================================
   MATERIAL SYMBOLS ICON SIZES
   ======================================== */

.icon-xs {
  font-size: 14px;
}
.icon-sm {
  font-size: 16px;
}
.icon-md {
  font-size: 20px;
}
.icon-lg {
  font-size: 24px;
}
.icon-xl {
  font-size: 32px;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border: 1.5px solid var(--color-text-primary);
  border-radius: 50%;
  background: transparent;
}

.icon-circle.icon-circle-white {
  border-color: white;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Flex Utilities */
.flex-row {
  display: flex;
  align-items: center;
}

.flex-row-gap-1 {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.flex-row-gap-075 {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.flex-row-gap-05 {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.flex-row-gap-4px {
  display: flex;
  gap: 4px;
  align-items: center;
}

.flex-col-gap-12 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-between-start {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.flex-end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-1 {
  flex: 1;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.gap-05 {
  gap: 0.5rem;
}

.gap-075 {
  gap: 0.75rem;
}

.gap-1 {
  gap: 1rem;
}

/* Margin Utilities */
.mb-025 {
  margin-bottom: 0.25rem;
}

.mb-05 {
  margin-bottom: 0.5rem;
}

.mb-075 {
  margin-bottom: 0.75rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-1-5 {
  margin-bottom: 1.5rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-05 {
  margin-top: 0.5rem;
}

.mt-075 {
  margin-top: 0.75rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-1-5 {
  margin-top: 1.5rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mr-025 {
  margin-right: 0.25rem;
}

.mr-05 {
  margin-right: 0.5rem;
}

.ml-05 {
  margin-left: 0.5rem;
}

.m-0 {
  margin: 0;
}

/* Padding Utilities */
.p-05 {
  padding: 0.5rem;
}

.p-1 {
  padding: 1rem;
}

.p-1-5 {
  padding: 1.5rem;
}

.pt-1 {
  padding-top: 1rem;
}

.pt-1-5 {
  padding-top: 1.5rem;
}

.py-05 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Width Utilities */
.w-full {
  width: 100%;
}

.w-40 {
  width: 40px;
}

.w-60 {
  width: 60px;
}

.w-70 {
  width: 70px;
}

.w-80 {
  width: 80px;
}

.w-100 {
  width: 100px;
}

.min-w-auto {
  min-width: auto;
}

/* Text Utilities */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-muted {
  color: var(--color-medium-gray);
}

.text-gray-500 {
  color: #6b7280;
}

.text-coral {
  color: var(--color-coral);
}

.text-navy {
  color: var(--color-navy);
}

.text-dark-gray {
  color: var(--color-dark-gray);
}

.text-white {
  color: white;
}

.text-white-80 {
  color: rgba(255, 255, 255, 0.8);
}

/* Display Utilities */
.d-inline {
  display: inline;
}

.d-inline-block {
  display: inline-block;
}

.d-block {
  display: block;
}

.d-none {
  display: none;
}

/* Border Utilities */
.border-bottom {
  border-bottom: 1px solid var(--color-border);
}

.border-top {
  border-top: 1px solid var(--color-border);
}

.border-light {
  border: 1px solid #e5e7eb;
}

.border-2-light {
  border: 2px solid #e5e7eb;
}

.rounded-05 {
  border-radius: 0.5rem;
}

.rounded-075 {
  border-radius: 0.75rem;
}

/* Background Utilities */
.bg-white {
  background: white;
}

.bg-fafafa {
  background: #fafafa;
}

/* List Utilities */
.list-none {
  list-style: none;
  padding: 0;
}

/* Cursor Utilities */
.cursor-pointer {
  cursor: pointer;
}

/* Button Reset */
.btn-reset {
  border: none;
  background: none;
  cursor: pointer;
}

/* Vertical Align */
.align-middle {
  vertical-align: middle;
}

/* ========================================
   HOME PAGE COMPONENTS
   ======================================== */

.home-welcome-title {
  color: var(--color-navy);
  margin-bottom: 16px;
}

.home-card {
  background: var(--color-white);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.home-card-title {
  color: var(--color-coral);
  margin-bottom: 8px;
}

.home-card-text {
  color: var(--color-dark-gray);
  line-height: 1.6;
  margin-bottom: 16px;
}

.home-quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--color-app-background);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.home-quick-link:hover {
  background: var(--color-off-white);
}

.home-quick-link-icon {
  color: var(--color-coral);
}

.home-quick-link-title {
  font-weight: 600;
  color: var(--color-navy);
}

.home-quick-link-subtitle {
  font-size: 14px;
  color: var(--color-medium-gray);
}

/* ========================================
   USER LIST / FOLLOWING COMPONENTS
   ======================================== */

.search-form-container {
  margin-bottom: 2rem;
}

.user-row-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.user-row-content {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.user-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.user-row-info {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex: 1;
}

.btn-icon-inline {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

.btn-icon-inline-lg {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

/* ========================================
   WORKOUT SESSION COMPONENTS
   ======================================== */

.session-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.session-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.session-detail-card .session-title-row {
  display: grid;
  grid-template-columns: 60% 30% 10%;
  align-items: start;
  gap: 0;
}

.session-detail-card .session-title-row .detail-title {
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

.session-detail-card .session-title-row .session-status-badge {
  text-align: center;
  justify-self: center;
}

.session-detail-card .session-title-row .btn {
  justify-self: end;
}

.session-detail-card .detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.session-detail-card .detail-meta .meta-item:first-child {
  justify-self: start;
}

.session-detail-card .detail-meta .meta-item:last-child {
  justify-self: end;
}

.session-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-white);
}

.session-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.session-actions-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.session-actions-row .btn-session-start {
  flex: 1;
}

.session-actions-row .btn-session-right {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}

.session-actions-row form {
  display: flex;
  align-items: center;
}

.session-actions-row .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.session-actions-row .btn:not(.btn-primary):not(.btn-success) {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.current-session-card .session-header-row .btn {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.current-session-card .btn-primary {
  background: var(--color-navy);
  color: var(--color-white);
}

.current-session-card .btn-primary:hover {
  background: #3d4470;
  box-shadow: 0 4px 12px rgba(45, 50, 80, 0.4);
}

.btn-success {
  background: rgb(22, 163, 74);
  color: var(--color-white);
}

.btn-success:hover {
  background: rgb(15, 130, 58);
}

.btn-icon-only {
  padding: 0;
  min-width: auto;
  width: 44px;
  height: 44px;
}

.section-title-lg {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.section-title {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan-card-gradient {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark, var(--color-primary)) 100%
  );
}

.history-link-container {
  margin-top: 1rem;
  text-align: center;
}

/* ========================================
   WORKOUT SESSION NEW PAGE
   ======================================== */

.plan-preview-section {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.plan-preview-title {
  margin-bottom: 0.5rem;
}

.phase-preview {
  margin-bottom: 1rem;
}

.phase-preview-title {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.25rem;
}

.phase-preview-list {
  list-style: none;
  padding: 0;
}

.phase-preview-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.phase-preview-sets {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

/* ========================================
   WORKOUT SESSION SHOW PAGE
   ======================================== */

.session-detail-card {
  margin: 1rem 0;
}

.add-movement-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ========================================
   MOVEMENT CARD COMPONENTS
   ======================================== */

.set-actions-row {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.form-inline {
  display: inline;
}

.movement-actions-section {
  margin-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.movement-action-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.movement-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ========================================
   WORKOUT PLAN SHOW COMPONENTS
   ======================================== */

.phase-card {
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: #fafafa;
}

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

.phase-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--color-coral);
}

.phase-card-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}

.phase-card-actions {
  display: flex;
  gap: 0.5rem;
}

.movement-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: white;
}

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

.movement-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.prescriptions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.prescriptions-table thead tr {
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.prescriptions-table th {
  padding: 0.5rem;
  font-weight: 600;
  color: #6b7280;
}

.prescriptions-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
}

.prescriptions-table td {
  padding: 0.5rem;
}

.prescriptions-table-actions {
  text-align: right;
}

.no-prescriptions-text {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.no-movements-text {
  color: #6b7280;
  font-size: 0.875rem;
}

/* ========================================
   MOVEMENT PICKER CARD
   ======================================== */

.movement-picker-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.movement-picker-card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.movement-picker-card-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* ========================================
   PUBLIC PROFILE COMPONENTS
   ======================================== */

.profile-username {
  text-align: center;
  color: var(--color-medium-gray);
  margin-top: 0.5rem;
}

.profile-calendar-card {
  padding: 1.5rem;
}

.profile-calendar-title {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark-gray);
}

/* ========================================
   AUTH LAYOUT
   ======================================== */

.auth-content {
  margin: 0;
  height: 100vh;
}

/* ========================================
   PHASE GROUP COMPONENTS
   ======================================== */

.phase-group {
  margin-bottom: 1.5rem;
}

.phase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  cursor: pointer;
  user-select: none;
}

.phase-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0;
}

.phase-collapse-icon {
  color: var(--color-medium-gray);
  transition: transform 0.3s ease;
}

.phase-collapse-icon.rotated {
  transform: rotate(180deg);
}

.phase-content {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 2000px;
  opacity: 1;
}

.phase-content.collapsed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.add-movement-label {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--color-coral);
  cursor: pointer;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: opacity 0.2s ease;
  user-select: none;
}

.add-movement-label:hover {
  opacity: 0.7;
}

/* ========================================
   PROFILE PAGE COMPONENTS
   ======================================== */

.profile-hero {
  text-align: center;
  padding: 1.5rem 1rem;
  margin-bottom: 1rem;
}

.profile-hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-coral);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
  margin-bottom: 1rem;
}

.profile-hero-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 0.25rem 0;
}

.profile-hero-username {
  font-size: 1rem;
  color: var(--color-medium-gray);
  margin: 0;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.profile-stat-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.profile-stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-coral);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.profile-stat-label {
  font-size: 0.875rem;
  color: var(--color-medium-gray);
  font-weight: 500;
}

.profile-info-section {
  margin-bottom: 1.5rem;
}

.profile-info-card {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.profile-info-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--color-light-gray);
}

.profile-info-row:last-child {
  border-bottom: none;
}

.profile-info-icon {
  color: var(--color-coral);
  flex-shrink: 0;
}

.profile-info-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
  min-width: 0;
}

.profile-info-label {
  font-size: 0.75rem;
  color: var(--color-medium-gray);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-weight: 600;
}

.profile-info-value {
  font-size: 1rem;
  color: var(--color-dark-gray);
  font-weight: 500;
  word-break: break-word;
}

@media (max-width: 767px) {
  .profile-hero {
    padding: 1rem;
  }

  .profile-hero-avatar {
    width: 80px;
    height: 80px;
  }

  .profile-hero-name {
    font-size: 1.25rem;
  }

  .profile-stat-value {
    font-size: 1.5rem;
  }
}

/* Profile Edit Page */
.profile-edit-preview {
  text-align: center;
  padding: 1rem;
  margin-bottom: 1rem;
}

.profile-edit-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-coral);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
  margin-bottom: 0.5rem;
}

.profile-edit-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0;
}

.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-edit-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-section-icon {
  color: var(--color-coral);
  vertical-align: middle;
  margin-right: 0.25rem;
}

.profile-edit-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-edit-card .form-group {
  margin-bottom: 1rem;
}

.profile-edit-card .form-group:last-of-type {
  margin-bottom: 0;
}

.form-label-icon {
  color: var(--color-coral);
  vertical-align: middle;
  margin-right: 0.25rem;
}

.profile-edit-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.profile-edit-actions .btn {
  flex: 1;
}

@media (max-width: 767px) {
  .profile-edit-avatar {
    width: 64px;
    height: 64px;
  }

  .profile-edit-card {
    padding: 1rem;
  }
}

.profile-version {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 1.5rem 0 0.5rem;
  font-size: 0.75rem;
  color: var(--color-medium-gray);
}

/* ========================================
   QUOTE CARD COMPONENT
   ======================================== */

.quote-card {
  position: relative;
  background: linear-gradient(135deg, var(--color-coral) 0%, #ff8a80 100%);
  padding: 24px 24px 20px;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  overflow: hidden;
}

.quote-card-icon {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.2);
}

.quote-card-text {
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 12px 0;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.quote-card-author {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
  text-align: right;
}

@media (max-width: 767px) {
  .quote-card {
    padding: 20px 20px 16px;
  }

  .quote-card-icon {
    font-size: 40px;
    top: 10px;
    right: 12px;
  }

  .quote-card-text {
    font-size: 1rem;
  }
}

/* ========================================
   ACHIEVEMENT LABELS
   ======================================== */

.achievements-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.achievements-container:empty {
  display: none;
}

.achievement-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  background-color: rgba(255, 184, 148, 0.2);
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-coral);
}

.achievement-label .material-symbols-outlined {
  font-size: 14px;
}

.achievements-drawer-body {
  padding: 1rem;
}

.achievement-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.achievement-row:last-child {
  margin-bottom: 0;
}

.achievement-row.achieved {
  background-color: rgba(255, 184, 148, 0.15);
}

.achievement-row.not-achieved {
  background-color: var(--color-off-white);
  opacity: 0.6;
}

.achievement-row-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.achievement-row.achieved .achievement-row-left .material-symbols-outlined {
  color: var(--color-coral);
}

.achievement-row.not-achieved .achievement-row-left .material-symbols-outlined {
  color: var(--color-medium-gray);
}

.achievement-row-label {
  font-size: 0.875rem;
  font-weight: 600;
}

.achievement-row.achieved .achievement-row-label {
  color: var(--color-dark-gray);
}

.achievement-row.not-achieved .achievement-row-label {
  color: var(--color-medium-gray);
}

.achievement-row-right {
  font-size: 0.75rem;
  font-weight: 500;
  text-align: right;
}

.achievement-row.achieved .achievement-row-right {
  color: var(--color-coral);
}

.achievement-row.not-achieved .achievement-row-right {
  color: var(--color-medium-gray);
}
/* Exercises Styles */

/* Search and Filters */
.search-filters {
  background: var(--color-white);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-input-group {
  display: flex;
  gap: 8px;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid var(--color-light-gray);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-dark-gray);
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(248, 133, 89, 0.1);
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  background: var(--color-coral);
  color: var(--color-white);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-btn:hover {
  background: #e67549;
}

/* Filter Chips */
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border: 2px solid var(--color-light-gray);
  border-radius: 20px;
  background: var(--color-white);
  color: var(--color-dark-gray);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.filter-chip:hover {
  border-color: var(--color-coral);
  color: var(--color-coral);
}

.filter-chip.active {
  background: var(--color-coral);
  border-color: var(--color-coral);
  color: var(--color-white);
}

/* Exercises Grid */
.exercises-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

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

/* Exercises List (Full Width) */
.exercises-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

/* Exercise Card Link (button_to wrapper) */
.exercise-card-link {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  display: block;
  transition: transform 0.2s ease;
}

.exercise-card-link:hover {
  transform: translateY(-2px);
}

/* Exercise Card */
.exercise-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
  position: relative;
  width: 100%;
}

.exercise-card-link:hover .exercise-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.exercise-card-content {
  flex: 1;
}

.exercise-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 12px 0;
}

/* Exercise Card Edit Button */
.exercise-card-edit-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-app-background);
  border-radius: 8px;
  transition: all 0.2s ease;
  color: var(--color-coral);
  text-decoration: none;
  z-index: 10;
}

.exercise-card-edit-btn:hover {
  background: var(--color-coral);
  color: var(--color-white);
  transform: scale(1.05);
}

.exercise-card-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--color-medium-gray);
}

.exercise-card-meta strong {
  font-weight: 600;
}

.exercise-card-icon {
  color: var(--color-coral);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.exercise-card-link:hover .exercise-card-icon {
  transform: scale(1.1);
}

.exercise-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.exercise-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-category {
  background: var(--color-peach);
  color: var(--color-white);
}

.badge-equipment {
  background: var(--color-purple);
  color: var(--color-white);
}

.exercise-card-actions {
  display: flex;
  gap: 8px;
}

.exercise-card-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid var(--color-light-gray);
  margin-top: 12px;
}

/* Results Count */
.results-count {
  text-align: center;
  font-size: 14px;
  color: var(--color-medium-gray);
  padding: 16px;
}

/* Form Select */
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid var(--color-light-gray);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-dark-gray);
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-select:focus {
  outline: none;
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(248, 133, 89, 0.1);
}

/* Exercise Info Grid */
.exercise-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

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

.info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--color-app-background);
  border-radius: 12px;
}

.info-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-coral);
  color: var(--color-white);
  border-radius: 10px;
  flex-shrink: 0;
}

.info-card-content {
  flex: 1;
}

.info-card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-medium-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.info-card-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-navy);
}

/* Usage Stats */
.usage-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.usage-stat {
  text-align: center;
  padding: 20px;
  background: var(--color-app-background);
  border-radius: 12px;
}

.usage-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-coral);
  margin-bottom: 8px;
}

.usage-stat-label {
  font-size: 14px;
  color: var(--color-medium-gray);
  font-weight: 500;
}
/* Flash Messages Container */
#flash-messages {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 400px;
  pointer-events: none;
}

/* Flash Messages */
.flash {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: slideDown 0.3s ease;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.flash-text {
  flex: 1;
}

.flash-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  padding: 0 4px;
  transition: opacity 0.2s;
}

.flash-close:hover {
  opacity: 1;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flash-notice {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.flash-notice .flash-close {
  color: #065f46;
}

.flash-alert {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.flash-alert .flash-close {
  color: #991b1b;
}
/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  background-color: var(--color-light-gray);
  overflow: hidden;
  height: 100dvh;
  width: 100vw;
}

/* App Container - Centers the app on desktop */
.app-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100dvh;
  background-color: var(--color-app-background);
  padding: 0;
}

/* App Wrapper - The actual app frame */
.app-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  max-width: 100%;
  max-height: 100dvh;
  background-color: var(--color-app-background);
  overflow: hidden;
  position: relative;
}

/* Fixed Header */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--color-text-primary);
}

.app-header svg {
  stroke: var(--color-text-primary);
}

.app-header svg.selected,
.app-header .selected svg {
  stroke: var(--color-coral);
}

/* Scrollable Content Area */
.app-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 64px;
  margin-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  padding: 1rem;
  background-color: var(--color-app-background);
  -webkit-overflow-scrolling: touch;
}

/* Fixed Bottom Navbar */
.app-navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(72px + env(safe-area-inset-bottom, 0px));
  background-color: var(--color-white);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding: 8px 16px env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
  .app-container {
    padding: 20px;
  }

  .app-wrapper {
    max-width: 768px;
    max-height: calc(100dvh - 40px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  }

  .app-header {
    left: auto;
    right: auto;
    width: 100%;
    max-width: 768px;
    border-radius: 16px 16px 0 0;
  }

  .app-navbar {
    left: auto;
    right: auto;
    width: 100%;
    max-width: 768px;
    border-radius: 0 0 16px 16px;
  }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
  .app-wrapper {
    max-width: 480px;
  }

  .app-header {
    max-width: 480px;
  }

  .app-navbar {
    max-width: 480px;
  }
}

/* Scrollbar Styling (for webkit browsers) */
.app-content::-webkit-scrollbar {
  width: 6px;
}

.app-content::-webkit-scrollbar-track {
  background: transparent;
}

.app-content::-webkit-scrollbar-thumb {
  background: var(--color-medium-gray);
  border-radius: 3px;
}

.app-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-dark-gray);
}
/* Progress Page - Dark Theme */

/* Override app content background for progress page */
body:has(.progress-container) .app-content {
  background-color: #0a0a0a;
  padding: 0;
}

/* Progress Container */
.progress-container {
  background-color: #0a0a0a;
  min-height: 100%;
  padding: 1rem;
}

/* Progress Grid */
.progress-grid {
  display: grid;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Progress Sections */
.training-consistency-section {
  grid-column: 1 / -1;
  display: contents;
}

.progress-metrics-section {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  grid-column: 1 / -1;
}

.strength-progress-section {
  grid-column: 1 / -1;
  display: contents;
}

.volume-section {
  grid-column: 1 / -1;
  display: contents;
}

.progress-card-full {
  grid-column: 1 / -1;
}

/* Progress Card */
.progress-card {
  background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-card-header {
  margin-bottom: 1rem;
}

.progress-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-card-body {
  color: #ffffff;
}

/* Big Metric Display */
.progress-big-metric {
  margin-bottom: 0.5rem;
}

.progress-metric-value {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.progress-metric-label {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.progress-metric-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
}

/* Chart Container */
.progress-chart-container {
  position: relative;
  margin-top: 1.5rem;
  padding: 1rem 0;
}

.progress-chart {
  width: 100%;
  height: 120px;
}

/* Chart Colors */
:root {
  --color-chart-line: #5ac8fa;
  --color-chart-gradient-start: rgba(90, 200, 250, 0.5);
  --color-chart-gradient-end: rgba(90, 200, 250, 0);
}

/* Chart Labels */
.progress-chart-labels-y {
  position: absolute;
  right: 0;
  top: 1rem;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 0.5rem;
}

.progress-chart-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

/* Circular Progress */
.progress-streak-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.progress-circular-metric {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.progress-circular-chart {
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
}

.progress-circular-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}

.progress-circular-progress {
  fill: none;
  stroke: var(--color-chart-line);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dasharray 0.5s ease;
}

.progress-circular-text-value {
  font-size: 2rem;
  font-weight: 700;
  fill: #ffffff;
}

/* Streak Info */
.progress-streak-info {
  flex: 1;
}

.progress-streak-label {
  font-size: 1.125rem;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.progress-streak-sublabel {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
  .progress-container {
    padding: 0.75rem;
  }

  .progress-grid {
    gap: 0.75rem;
  }

  .progress-card {
    padding: 1rem;
  }

  .progress-card-half {
    min-height: 160px;
  }

  .progress-metric-value {
    font-size: 2.5rem;
  }

  .progress-metric-label {
    font-size: 1rem;
  }

  .progress-card-half .progress-circular-metric {
    width: 60px;
    height: 60px;
  }

  .progress-card-half .progress-circular-text-value {
    font-size: 1.25rem;
  }

  .progress-metric-value-large {
    font-size: 2.5rem;
  }

  .progress-card-subtitle {
    font-size: 0.875rem;
  }

  .progress-card-meta {
    font-size: 0.75rem;
  }

  .progress-card-title {
    font-size: 0.875rem;
  }
}

/* Card Layout Variations */
.progress-card-half {
  min-height: 180px;
}

.progress-card-half .progress-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.progress-card-half .progress-circular-metric {
  width: 80px;
  height: 80px;
}

.progress-card-half .progress-circular-text-value {
  font-size: 1.75rem;
}

.progress-card-full {
  min-height: 300px;
}

/* Simple Metric Display for Half Cards */
.progress-simple-metric {
  display: flex;
  align-items: center;
}

.progress-metric-value-large {
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

/* Card Info Section */
.progress-card-info {
  flex: 1;
  width: 100%;
}

.progress-card-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
}

.progress-card-meta {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Animation for cards on load */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.progress-card {
  animation: slideInUp 0.5s ease forwards;
}

.progress-card:nth-child(1) {
  animation-delay: 0.1s;
}

.progress-card:nth-child(2) {
  animation-delay: 0.2s;
}

.progress-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* Card Size Classes */
.progress-card.full {
  grid-column: 1 / -1;
}

.progress-card.half {
  grid-column: span 1;
  min-height: 140px;
}

/* Loading Skeleton Styles */
.progress-card.loading {
  background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-card.loading.half {
  min-height: 140px;
}

.card-skeleton {
  width: 100%;
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-title {
  height: 24px;
  width: 60%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.skeleton-value {
  height: 48px;
  width: 40%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.skeleton-chart {
  height: 120px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-top: 1rem;
}

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

/* Strength Progress Card Styles */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-trend {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.card-trend.trend-positive {
  color: #30d158;
}

.card-trend.trend-negative {
  color: #ff453a;
}

.card-trend.trend-neutral {
  color: rgba(255, 255, 255, 0.5);
}

.card-value-group {
  text-align: right;
  flex-shrink: 0;
}

.card-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.card-unit {
  display: block;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Chart Styles */
.card-chart {
  margin: 0.75rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-svg {
  width: 100%;
  height: 100px;
}

.progress-card.full .chart-svg {
  height: 120px;
}

.grid-line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line.strength {
  stroke: #ff9f0a;
}

.chart-point {
  fill: #ff9f0a;
  cursor: pointer;
  transition: r 0.2s ease;
}

.chart-point:hover {
  r: 6;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.card-empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(255, 255, 255, 0.5);
}

.card-empty-state h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 0.5rem 0;
}

.card-empty-state p {
  font-size: 0.875rem;
  margin: 0;
}

/* Volume List Styles */
.volume-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.volume-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.volume-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.volume-item-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.volume-item-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.volume-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.volume-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.volume-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ff9f0a;
}

@media (max-width: 767px) {
  .volume-item {
    padding: 0.875rem;
  }

  .volume-item-name {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .volume-item-stats {
    gap: 1rem;
  }

  .volume-stat-value {
    font-size: 1.125rem;
  }
}

/* Month Calendar Card */
.month-calendar-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-light-gray);
}

.month-calendar-card-header {
  margin-bottom: 1rem;
}

.month-calendar-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-medium-gray);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.month-calendar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.month-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.month-calendar-title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.month-calendar-month {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-navy);
}

.month-calendar-year {
  font-size: 0.875rem;
  color: var(--color-medium-gray);
}

.month-calendar-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--color-dark-gray);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.month-calendar-nav-btn:hover {
  background-color: var(--color-light-gray);
  color: var(--color-coral);
}

.month-calendar-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.month-calendar-days,
.month-calendar-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  justify-items: center;
  height: 1.5rem;
}

.month-calendar-day-label {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--color-medium-gray);
  text-align: center;
  text-transform: uppercase;
  padding: 0.125rem 0;
}

.month-calendar-date {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-dark-gray);
  border-radius: 50%;
}

.month-calendar-date-outside {
  visibility: hidden;
}

.month-calendar-date-today {
  border: 2px solid var(--color-dark-gray);
  color: var(--color-navy);
  font-weight: 600;
}

.month-calendar-date-highlighted {
  background-color: var(--color-coral);
  color: var(--color-white);
  font-weight: 600;
}

.month-calendar-date-today.month-calendar-date-highlighted {
  border-color: var(--color-coral);
}

.month-calendar-footer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-light-gray);
  margin-top: 0.5rem;
}

.month-calendar-stat {
  font-size: 0.75rem;
  color: var(--color-medium-gray);
}

.month-calendar-stat strong {
  color: var(--color-navy);
  font-weight: 600;
}

@media (max-width: 767px) {
  .month-calendar-card {
    padding: 1rem;
  }

  .month-calendar-month {
    font-size: 1rem;
  }

  .month-calendar-year {
    font-size: 0.75rem;
  }

  .month-calendar-date {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.625rem;
  }

  .month-calendar-day-label {
    font-size: 0.5rem;
  }
}

/* Week Calendar Card */
.week-calendar-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-light-gray);
}

.week-calendar-card-header {
  margin-bottom: 1rem;
}

.week-calendar-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-medium-gray);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.week-calendar {
  display: flex;
  flex-direction: column;
}

.week-calendar-grid {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.week-calendar-days,
.week-calendar-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  justify-items: center;
}

.week-calendar-day-label {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--color-medium-gray);
  text-align: center;
  text-transform: uppercase;
  padding: 0.125rem 0;
}

.week-calendar-date {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-dark-gray);
  border-radius: 50%;
}

.week-calendar-date-today {
  background-color: var(--color-dark-gray);
  color: var(--color-white);
  font-weight: 600;
}

.week-calendar-date-highlighted {
  background-color: var(--color-coral);
  color: var(--color-white);
  font-weight: 600;
}

.week-calendar-date-today.week-calendar-date-highlighted {
  background-color: var(--color-dark-gray);
  box-shadow: 0 0 0 2px var(--color-coral);
}

@media (max-width: 767px) {
  .week-calendar-card {
    padding: 1rem;
  }

  .week-calendar-date {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.625rem;
  }

  .week-calendar-day-label {
    font-size: 0.5rem;
  }
}
/* Workout Plans Styles */

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0;
}

/* Plans List */
.plans-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Plan Card Link */
.plan-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.plan-card-link:hover {
  transform: translateY(-2px);
}

/* Plan Card */
.plan-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.plan-card-link:hover .plan-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.plan-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.plan-card-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-navy);
  margin: 0;
  flex: 1;
}

.plan-card-actions {
  display: flex;
  gap: 8px;
}

.plan-card-description {
  font-size: 14px;
  color: var(--color-medium-gray);
  line-height: 1.5;
  margin-bottom: 16px;
}

.plan-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--color-light-gray);
}

.plan-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-medium-gray);
  font-weight: 500;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-state svg {
  color: var(--color-medium-gray);
  margin-bottom: 16px;
}

.empty-state-icon {
  font-size: 64px;
  color: var(--color-medium-gray);
  margin-bottom: 16px;
}

.empty-state-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 8px 0;
}

.empty-state-text {
  font-size: 14px;
  color: var(--color-medium-gray);
  margin: 0 0 24px 0;
}

.empty-state-small {
  background: var(--color-app-background);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.empty-state-small p {
  color: var(--color-medium-gray);
  margin: 0;
  font-size: 14px;
}

/* Form Container */
.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.form-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-coral);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
  align-self: flex-start;
}

.btn-back:hover {
  color: #e67549;
}

/* Workout Form */
.workout-form {
  background: var(--color-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid var(--color-light-gray);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-dark-gray);
  font-family: inherit;
  resize: vertical;
  transition: all 0.2s ease;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(248, 133, 89, 0.1);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.form-errors {
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.form-errors-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-error);
  margin: 0 0 8px 0;
}

.form-errors-list {
  margin: 0;
  padding-left: 20px;
}

.form-errors-list li {
  font-size: 14px;
  color: var(--color-error);
  margin: 4px 0;
}

.form-error-banner {
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--color-error);
}

/* Button Styles */
.btn-secondary {
  background: var(--color-light-gray);
  color: var(--color-dark-gray);
}

.btn-secondary:hover {
  background: var(--color-medium-gray);
  color: var(--color-white);
}

.btn-danger {
  background: var(--color-error);
  color: var(--color-white);
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--color-text-primary);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.btn-icon:hover {
  background: var(--color-light-gray);
  color: var(--color-coral);
}

/* Detail Container */
.detail-container {
  max-width: 800px;
  margin: 0 auto;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.detail-actions {
  display: flex;
  gap: 1rem;
}

.detail-content {
  background: var(--color-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 12px 0;
}

.detail-description {
  font-size: 16px;
  color: var(--color-dark-gray);
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.detail-meta {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--color-light-gray);
  border-bottom: 1px solid var(--color-light-gray);
  margin-bottom: 24px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-medium-gray);
}

.meta-item svg,
.meta-item .material-symbols-outlined {
  color: var(--color-coral);
}

/* Section */
.section {
  margin-top: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0;
}

/* Exercises List */
.exercises-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exercise-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--color-app-background);
  border-radius: 8px;
}

.exercise-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-navy);
}

.exercise-meta {
  font-size: 12px;
  color: var(--color-medium-gray);
}

/* Fix for button_to in detail-actions */
.detail-actions form {
  display: contents;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
