/**
 * Goals V2 Module - Template Based Goals
 * Mobile-First Responsive Design
 * Fitness Tracker Application
 */

/* ========================================
   BASE STYLES - MOBILE FIRST (320px+)
   ======================================== */

.goals-v2-container {
  padding: 0.25rem;
  max-width: 100%;
}

.goals-v2-header {
  text-align: center;
  margin-bottom: 0.5rem;
  padding: 0.75rem 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.goals-v2-header h2 {
  font-size: 1.125rem;
  margin-bottom: 0.125rem;
  font-weight: 700;
}

.goals-v2-header p {
  font-size: 0.75rem;
  margin: 0;
  opacity: 0.9;
}

/* ========================================
   MUSCLE GROUP CARDS
   ======================================== */

.muscle-group-card {
  background: white;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.2s ease;
  border-left: 3px solid #6c757d;
}

.muscle-group-card.status-success {
  border-left-color: #28a745;
}

.muscle-group-card.status-info {
  border-left-color: #17a2b8;
}

.muscle-group-card.status-warning {
  border-left-color: #ffc107;
}

.muscle-group-card.status-danger {
  border-left-color: #dc3545;
}

.muscle-group-card:active {
  transform: scale(0.98);
}

/* ========================================
   MUSCLE HEADER (CLICKABLE)
   ======================================== */

.muscle-header {
  padding: 0.75rem;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease;
}

.muscle-header:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.muscle-header:active {
  background-color: rgba(0, 0, 0, 0.05);
}

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

.muscle-info {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1;
}

.muscle-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
  color: white;
}

.muscle-icon i {
  color: white;
  font-size: 1.25rem;
}

.muscle-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.muscle-name {
  font-size: 1rem;
  font-weight: 700;
  color: #212529;
  line-height: 1.2;
}

.muscle-subtitle {
  font-size: 0.6875rem;
  color: #6c757d;
  font-weight: 500;
}

.toggle-icon {
  font-size: 1rem;
  color: #6c757d;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  padding: 0.25rem;
}

.muscle-header.expanded .toggle-icon {
  transform: rotate(180deg);
}

/* Stats Row */
.muscle-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 6px;
  border-left: 3px solid #667eea;
}

.stat-item i {
  font-size: 1rem;
  color: #667eea;
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.stat-value {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #212529;
  line-height: 1;
}

.stat-label {
  font-size: 0.625rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1;
}

/* ========================================
   PROGRESS BAR - DUAL
   ======================================== */

.muscle-progress {
  margin-top: 0.5rem;
}

.progress-dual {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-dual-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-dual-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #495057;
  min-width: 60px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.progress-dual-label i {
  font-size: 0.75rem;
}

.progress-bar-wrapper {
  flex: 1;
  height: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
  height: 100%;
  transition: width 0.5s ease, background-color 0.2s ease;
  border-radius: 4px;
  position: relative;
}

.progress-bar-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 4px 4px 0 0;
}

.progress-bar-fill.status-success {
  background: linear-gradient(90deg, #28a745, #20c997);
}

.progress-bar-fill.status-info {
  background: linear-gradient(90deg, #17a2b8, #138496);
}

.progress-bar-fill.status-warning {
  background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.progress-bar-fill.status-danger {
  background: linear-gradient(90deg, #dc3545, #c82333);
}

.progress-dual-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: #212529;
  min-width: 45px;
  text-align: right;
}

.progress-percentage.status-success {
  background-color: #d4edda;
  color: #155724;
}

.progress-percentage.status-info {
  background-color: #d1ecf1;
  color: #0c5460;
}

.progress-percentage.status-warning {
  background-color: #fff3cd;
  color: #856404;
}

.progress-percentage.status-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.achievement-badge {
  margin-left: 0.25rem;
  font-size: 0.875rem;
  animation: pulse-success 2s infinite;
}

@keyframes pulse-success {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* ========================================
   MUSCLE DETAILS (EXPANDABLE)
   ======================================== */

.muscle-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.2s ease;
  padding: 0 0.625rem;
}

.muscle-details.expanded {
  max-height: 2000px;
  padding: 0 0.625rem 0.625rem 0.625rem;
}

.equipment-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ========================================
   EQUIPMENT CARDS
   ======================================== */

.equipment-card {
  background: white;
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

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

.equipment-card.status-success {
  border-left: 4px solid #28a745;
  background: linear-gradient(90deg, rgba(40, 167, 69, 0.03) 0%, white 30%);
}

.equipment-card.status-info {
  border-left: 4px solid #17a2b8;
  background: linear-gradient(90deg, rgba(23, 162, 184, 0.03) 0%, white 30%);
}

.equipment-card.status-warning {
  border-left: 4px solid #ffc107;
  background: linear-gradient(90deg, rgba(255, 193, 7, 0.03) 0%, white 30%);
}

.equipment-card.status-danger {
  border-left: 4px solid #dc3545;
  background: linear-gradient(90deg, rgba(220, 53, 69, 0.03) 0%, white 30%);
}

.equipment-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.625rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f8f9fa;
}

.equipment-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #212529;
}

.equipment-title i {
  color: #667eea;
  font-size: 1rem;
}

.equipment-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.equipment-status-badge.status-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.equipment-status-badge.status-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.equipment-status-badge.status-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.equipment-status-badge.status-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.equipment-config {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.config-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.25rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

.config-item i {
  font-size: 1rem;
  color: #667eea;
}

.config-label {
  font-size: 0.625rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}

.config-value {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #212529;
}

.equipment-progress-section {
  margin-bottom: 0.75rem;
  padding: 0.625rem;
  background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.progress-row {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 0.625rem;
}

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

.progress-info {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.progress-info i {
  font-size: 0.875rem;
  color: #667eea;
}

.progress-label {
  font-size: 0.6875rem;
  color: #6c757d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex: 1;
}

.progress-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: #212529;
}

.progress-bar-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-bar-track {
  flex: 1;
  height: 6px;
  background-color: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.progress-percent {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #495057;
  min-width: 38px;
  text-align: right;
}

.equipment-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.625rem;
  border-top: 2px dashed #e9ecef;
}

.meta-info {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem;
  background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
  border-radius: 6px;
  border-left: 3px solid #667eea;
}

.meta-info i {
  font-size: 1rem;
  color: #667eea;
}

.meta-label {
  font-size: 0.6875rem;
  color: #6c757d;
  font-weight: 600;
  flex: 1;
}

.meta-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #667eea;
}

.completed-info {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  color: #28a745;
  font-weight: 600;
  padding: 0.375rem 0.5rem;
  background: #d4edda;
  border-radius: 6px;
  border-left: 3px solid #28a745;
}

.completed-info i {
  font-size: 0.875rem;
}

.goals-summary {
  background: white;
  border-radius: 8px;
  padding: 0.625rem;
  margin-top: 0.75rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.goals-summary h3 {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: #495057;
  text-align: center;
  font-weight: 600;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.summary-item {
  padding: 0.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 6px;
}

.summary-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #667eea;
  display: block;
  margin-bottom: 0.125rem;
}

.summary-label {
  font-size: 0.6875rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ========================================
   GRAND TOTAL
   ======================================== */

.goals-grand-total {
  background: white;
  border-radius: 8px;
  padding: 0.625rem;
  margin-top: 0.75rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
}

.goals-grand-total::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.goals-grand-total.status-success::before {
  background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.goals-grand-total.status-info::before {
  background: linear-gradient(90deg, #17a2b8 0%, #138496 100%);
}

.goals-grand-total.status-warning::before {
  background: linear-gradient(90deg, #ffc107 0%, #fd7e14 100%);
}

.goals-grand-total.status-danger::before {
  background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
}

.grand-total-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.grand-total-title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.grand-total-title i {
  font-size: 1rem;
  color: #667eea;
}

.grand-total-title h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #212529;
  margin: 0;
  letter-spacing: -0.2px;
}

.grand-total-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: none;
}

.grand-total-badge.status-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.grand-total-badge.status-info {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  color: white;
}

.grand-total-badge.status-warning {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
  color: white;
}

.grand-total-badge.status-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
}

.grand-total-overview {
  display: none;
}

.overview-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.overview-card:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.overview-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  flex-shrink: 0;
}

.overview-icon.status-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.overview-icon.status-info {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.overview-icon.status-warning {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.overview-icon.status-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.overview-icon i {
  font-size: 1.125rem;
  color: white;
}

.overview-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.overview-label {
  font-size: 0.625rem;
  color: #6c757d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.overview-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #212529;
  line-height: 1;
}

.grand-total-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.grand-stat-item {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 0.5rem;
  transition: all 0.2s ease;
}

.grand-stat-item:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.grand-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.375rem;
}

.grand-stat-title {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.grand-stat-title i {
  font-size: 0.75rem;
  color: #667eea;
}

.grand-stat-title span {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #212529;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.grand-stat-percent {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.0625rem 0.375rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.grand-stat-percent.status-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
}

.grand-stat-percent.status-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
}

.grand-stat-percent.status-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
}

.grand-stat-percent.status-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
}

.grand-stat-values {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 0.375rem;
  padding: 0.375rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 4px;
}

.stat-value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.0625rem;
}

.stat-value-label {
  font-size: 0.5625rem;
  color: #6c757d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1px;
}

.stat-value-number {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #212529;
}

.stat-value-separator {
  font-size: 0.9375rem;
  font-weight: 300;
  color: #adb5bd;
  margin: 0 0.125rem;
}

.grand-stat-bar {
  height: 6px;
  background-color: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
  position: relative;
}

.grand-stat-fill {
  height: 100%;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.grand-stat-fill.status-success {
  background: linear-gradient(90deg, #28a745, #20c997);
}

.grand-stat-fill.status-info {
  background: linear-gradient(90deg, #17a2b8, #138496);
}

.grand-stat-fill.status-warning {
  background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.grand-stat-fill.status-danger {
  background: linear-gradient(90deg, #dc3545, #c82333);
}

.progress-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ========================================
   EMPTY STATE
   ======================================== */

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #495057;
}

.empty-state p {
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.empty-state .btn {
  margin-top: 1rem;
}

/* ========================================
   LOADING STATE
   ======================================== */

.loading-state {
  text-align: center;
  padding: 3rem 1rem;
}

.loading-spinner {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  border: 4px solid #e9ecef;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  margin-top: 1rem;
  color: #6c757d;
  font-size: 0.9375rem;
}

/* ========================================
   ERROR STATE
   ======================================== */

.error-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #dc3545;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.error-state h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.error-state p {
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  color: #6c757d;
}

/* ========================================
   REFRESH BUTTON
   ======================================== */

.refresh-button {
  position: fixed;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  box-shadow: 0 3px 8px rgba(102, 126, 234, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  transition: all 0.2s ease;
  z-index: 1000;
}

.refresh-button:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.45);
}

.refresh-button:active {
  transform: scale(0.95);
}

.refresh-button.spinning {
  animation: spin 1s linear infinite;
}

/* ========================================
   TABLET STYLES (768px+)
   ======================================== */

@media (min-width: 768px) {
  .goals-v2-container {
    padding: 0.5rem;
  }

  .goals-v2-header {
    padding: 0.875rem;
    margin-bottom: 0.75rem;
  }

  .goals-v2-header h2 {
    font-size: 1.375rem;
  }

  .goals-v2-header p {
    font-size: 0.8125rem;
  }

  .muscle-group-card {
    margin-bottom: 0.75rem;
  }

  .muscle-header {
    padding: 0.75rem;
  }

  .muscle-info {
    margin-bottom: 0.625rem;
  }

  .muscle-icon {
    font-size: 1.375rem;
    width: 36px;
    height: 36px;
  }

  .muscle-name {
    font-size: 1rem;
  }

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

  .equipment-card {
    padding: 0.875rem;
  }

  .equipment-title {
    font-size: 0.9375rem;
  }

  .equipment-status-badge {
    font-size: 0.8125rem;
    padding: 0.3rem 0.6rem;
  }

  .config-item {
    padding: 0.625rem 0.375rem;
  }

  .config-label {
    font-size: 0.6875rem;
  }

  .config-value {
    font-size: 0.875rem;
  }

  .progress-label {
    font-size: 0.75rem;
  }

  .progress-value {
    font-size: 0.8125rem;
  }

  .meta-value {
    font-size: 1rem;
  }

  .goals-grand-total {
    padding: 0.75rem;
  }

  .grand-total-title i {
    font-size: 1.125rem;
  }

  .grand-total-title h3 {
    font-size: 1rem;
  }

  .grand-total-badge {
    font-size: 0.8125rem;
    padding: 0.25rem 0.625rem;
  }

  .grand-total-overview {
    display: grid;
  }

  .overview-card {
    padding: 0.5rem;
  }

  .overview-icon {
    width: 32px;
    height: 32px;
  }

  .overview-icon i {
    font-size: 1rem;
  }

  .overview-value {
    font-size: 1rem;
  }

  .grand-total-stats {
    flex-direction: row;
    gap: 0.625rem;
  }

  .grand-stat-item {
    flex: 1;
  }

  .stat-value-number {
    font-size: 0.875rem;
  }

  .grand-stat-bar {
    height: 8px;
  }

  .summary-grid {
    gap: 0.625rem;
  }

  .summary-item {
    padding: 0.625rem;
  }

  .summary-value {
    font-size: 1.5rem;
  }

  .summary-label {
    font-size: 0.75rem;
  }
}
@media (min-width: 1200px) {
  .goals-v2-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem;
  }

  .goals-v2-header {
    padding: 1rem;
    margin-bottom: 0.875rem;
  }

  .goals-v2-header h2 {
    font-size: 1.5rem;
  }

  .muscle-header {
    padding: 0.875rem;
  }

  .muscle-icon {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }

  .muscle-name {
    font-size: 1.0625rem;
  }

  .equipment-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625rem;
  }

  .equipment-card {
    padding: 0.875rem;
  }

  .equipment-card-header {
    margin-bottom: 0.75rem;
  }

  .equipment-title {
    font-size: 1rem;
  }

  .equipment-status-badge {
    font-size: 0.875rem;
  }

  .equipment-progress-section {
    padding: 0.75rem;
  }

  .progress-row {
    margin-bottom: 0.75rem;
  }

  .refresh-button {
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .goals-grand-total {
    padding: 0.875rem;
  }

  .grand-total-title i {
    font-size: 1.25rem;
  }

  .grand-total-title h3 {
    font-size: 1.125rem;
  }

  .grand-total-badge {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
  }

  .overview-card {
    padding: 0.625rem;
  }

  .overview-icon {
    width: 36px;
    height: 36px;
  }

  .overview-icon i {
    font-size: 1.125rem;
  }

  .overview-label {
    font-size: 0.625rem;
  }

  .overview-value {
    font-size: 1.125rem;
  }

  .grand-stat-title span {
    font-size: 0.75rem;
  }

  .grand-stat-percent {
    font-size: 0.8125rem;
  }

  .stat-value-label {
    font-size: 0.625rem;
  }

  .stat-value-number {
    font-size: 0.9375rem;
  }

  .grand-stat-bar {
    height: 8px;
    border-radius: 4px;
  }

  .summary-grid {
    max-width: 600px;
    margin: 0 auto;
  }
}
.refresh-button {
  bottom: 2rem;
  right: 2rem;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .goals-v2-container {
    padding: 0;
  }

  .muscle-group-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #dee2e6;
  }

  .muscle-details {
    max-height: none !important;
    padding: 1rem !important;
  }

  .refresh-button {
    display: none;
  }

  .toggle-icon {
    display: none;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.muscle-header:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.refresh-button:focus {
  outline: 3px solid white;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
