/* ==========================================================================
   lifeOS DESIGN SYSTEM & THEMES
   ========================================================================== */

:root {
  /* Fonts */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-main);

  /* Animations */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.16);

  /* Light Theme Overrides (Default variables mapping to Dark below) */
  --theme-glow-1: rgba(99, 102, 241, 0.15);
  --theme-glow-2: rgba(16, 185, 129, 0.1);
  --theme-glow-3: rgba(245, 158, 11, 0.1);
}

/* Dark Theme (Default) */
.dark-theme {
  --bg-primary: #080B11;
  --bg-secondary: #0D121F;
  --bg-card: rgba(15, 22, 38, 0.55);
  --bg-card-hover: rgba(20, 29, 50, 0.7);
  --bg-sidebar: rgba(10, 15, 26, 0.8);
  --bg-element: rgba(255, 255, 255, 0.04);
  --bg-element-hover: rgba(255, 255, 255, 0.08);
  
  --border-color: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);

  --text-main: #E2E8F0;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-heading: #FFFFFF;

  --accent-indigo: #6366f1;
  --accent-indigo-hover: #4f46e5;
  --accent-fitness: #8b5cf6;
  --accent-fitness-gradient: linear-gradient(135deg, #a78bfa, #8b5cf6);
  --accent-health: #10b981;
  --accent-health-gradient: linear-gradient(135deg, #34d399, #10b981);
  --accent-water: #0ea5e9;
  --accent-water-gradient: linear-gradient(135deg, #38bdf8, #0ea5e9);
  --accent-comm: #f59e0b;
  --accent-comm-gradient: linear-gradient(135deg, #fbbf24, #f59e0b);
  
  --glass-effect: backdrop-filter: blur(14px) saturate(190%);
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Light Theme */
.light-theme {
  --bg-primary: #F8FAFC;
  --bg-secondary: #F1F5F9;
  --bg-card: rgba(255, 255, 255, 0.65);
  --bg-card-hover: rgba(255, 255, 255, 0.85);
  --bg-sidebar: rgba(241, 245, 249, 0.9);
  --bg-element: rgba(0, 0, 0, 0.03);
  --bg-element-hover: rgba(0, 0, 0, 0.06);

  --border-color: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(0, 0, 0, 0.15);

  --text-main: #334155;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-heading: #0F172A;

  --accent-indigo: #4f46e5;
  --accent-indigo-hover: #3730a3;
  --accent-fitness: #7c3aed;
  --accent-fitness-gradient: linear-gradient(135deg, #8b5cf6, #7c3aed);
  --accent-health: #059669;
  --accent-health-gradient: linear-gradient(135deg, #10b981, #059669);
  --accent-water: #0284c7;
  --accent-water-gradient: linear-gradient(135deg, #0ea5e9, #0284c7);
  --accent-comm: #d97706;
  --accent-comm-gradient: linear-gradient(135deg, #f59e0b, #d97706);

  --glass-effect: backdrop-filter: blur(14px) saturate(190%);
  --shadow-card: 0 8px 32px 0 rgba(15, 23, 42, 0.05);

  --theme-glow-1: rgba(99, 102, 241, 0.05);
  --theme-glow-2: rgba(16, 185, 129, 0.03);
  --theme-glow-3: rgba(245, 158, 11, 0.03);
}

/* ==========================================================================
   GLOBAL LAYOUT & RESET
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
  position: relative;
  transition: background-color var(--transition-normal);
}

/* Dynamic Ambient Glow Particles */
.bg-glow {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(150px);
  z-index: 0;
  pointer-events: none;
  transition: background-color var(--transition-slow);
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background-color: var(--theme-glow-1);
  top: -10%;
  right: -5%;
}

.bg-glow-2 {
  width: 400px;
  height: 400px;
  background-color: var(--theme-glow-2);
  bottom: 10%;
  left: -5%;
}

.bg-glow-3 {
  width: 450px;
  height: 450px;
  background-color: var(--theme-glow-3);
  bottom: -15%;
  right: 25%;
}

/* App Main Container */
.app-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  width: 100vw;
  height: 100vh;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   SIDEBAR NAVIGATION
   ========================================================================== */

.sidebar {
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 10;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 28px 12px;
}

.brand-logo {
  color: var(--accent-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.5px;
}

.brand-name .highlight {
  color: var(--accent-indigo);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: left;
  transition: all var(--transition-fast);
}

.nav-item svg {
  transition: stroke var(--transition-fast), transform var(--transition-fast);
}

.nav-item:hover {
  background-color: var(--bg-element);
  color: var(--text-heading);
}

.nav-item:hover svg {
  transform: translateX(2px);
}

.nav-item.active {
  background-color: var(--bg-element-hover);
  border: 1px solid var(--border-color);
  color: var(--accent-indigo);
  font-weight: 600;
}

.nav-item.active svg {
  stroke: var(--accent-indigo);
}

.user-profile-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 12px;
  border-top: 1px solid var(--border-color);
  margin-top: 16px;
}

.avatar-container {
  position: relative;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--border-color);
}

.badge-online {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background-color: var(--accent-health);
  position: absolute;
  bottom: 0;
  right: 0;
  border: 2px solid var(--bg-secondary);
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  color: var(--text-heading);
  font-weight: 600;
  font-size: 0.9rem;
}

.user-status {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.streak-count {
  font-weight: 600;
  color: #ff7849;
}

/* ==========================================================================
   MAIN VIEWPORT & HEADER
   ========================================================================== */

.main-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.app-header {
  height: 72px;
  border-bottom: 1px solid var(--border-color);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  z-index: 8;
  flex-shrink: 0;
}

#page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-heading);
  letter-spacing: -0.3px;
}

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

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-element);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background-color: var(--bg-element-hover);
  color: var(--text-heading);
  border-color: var(--border-hover);
}

.notif-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-fitness);
  border-radius: var(--radius-full);
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1.5px solid var(--bg-secondary);
}

.notification-hub {
  position: relative;
}

.notif-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  width: 320px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.notif-dropdown.active {
  display: flex;
}

.notif-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  color: var(--text-heading);
  font-size: 0.95rem;
}

.notif-list {
  max-height: 300px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-fast);
  cursor: pointer;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background-color: var(--bg-element);
}

.notif-item.unread {
  background-color: rgba(99, 102, 241, 0.05);
}

.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background-color: var(--bg-element);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.notif-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.notif-body p {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.35;
}

.notif-body p strong {
  color: var(--text-heading);
}

.notif-body span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.current-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-element);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

/* Light/Dark Icon states */
.dark-theme .sun-icon {
  stroke: var(--text-secondary);
}

.light-theme .sun-icon {
  stroke: var(--accent-indigo);
  fill: rgba(99, 102, 241, 0.1);
}

/* ==========================================================================
   VIEWPORTS & GENERAL PANELS
   ========================================================================== */

.content-viewport {
  flex-grow: 1;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}

.view-panel {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   GLASS CARDS & BADGES
   ========================================================================== */

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-normal), background-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
  var(--glass-effect);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  z-index: 1;
}

.glass-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.glass-card.interactive-card:hover {
  transform: translateY(-2px);
}

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

.card-header h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-heading);
}

/* Badges */
.badge {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-fitness {
  background: rgba(139, 92, 246, 0.12);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.badge-health {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-water {
  background: rgba(14, 165, 233, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.badge-premium {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.15));
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.sparkle-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.btn-primary {
  background-color: var(--accent-indigo);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-indigo-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-element);
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--bg-element-hover);
  color: var(--text-heading);
  border-color: var(--border-hover);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   DASHBOARD DETAILS
   ========================================================================== */

.dashboard-hero {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 50%, rgba(13, 18, 31, 0) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.hero-left {
  max-width: 60%;
}

.hero-left h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.hero-left h2 .name-highlight {
  color: var(--accent-indigo);
  background: linear-gradient(90deg, #6366f1, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-left p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.hero-actions-row {
  display: flex;
  gap: 12px;
}

.hero-right-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.progress-ring-system {
  width: 130px;
  height: 130px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: var(--bg-element);
  stroke-width: 6;
}

.ring-fg {
  fill: none;
  stroke-linecap: round;
  stroke-width: 6.5;
  transition: stroke-dashoffset 1s ease-in-out;
}

.ring-fitness {
  stroke: var(--accent-fitness);
}

.ring-health {
  stroke: var(--accent-health);
}

.ring-water {
  stroke: var(--accent-water);
}

.ring-legend {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

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

.legend-item::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
}

.legend-item.fitness::before { background-color: var(--accent-fitness); }
.legend-item.health::before { background-color: var(--accent-health); }
.legend-item.water::before { background-color: var(--accent-water); }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.calorie-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
}

.cal-main {
  display: flex;
  flex-direction: column;
}

.cal-number {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-heading);
  line-height: 1;
}

.cal-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.cal-math {
  display: flex;
  gap: 24px;
}

.math-item {
  display: flex;
  flex-direction: column;
}

.math-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
}

.math-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.progress-bar-container {
  height: 8px;
  width: 100%;
  background-color: var(--bg-element);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 12px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fitness-dash-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fitness-circle-metrics {
  display: flex;
  justify-content: space-around;
  background-color: var(--bg-element);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.circle-metric {
  text-align: center;
}

.metric-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-heading);
}

.metric-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mini-workout-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-workout-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-element);
  font-size: 0.85rem;
}

.mini-workout-item .work-icon {
  font-size: 1.1rem;
}

.mini-workout-item .work-title {
  font-weight: 600;
  flex-grow: 1;
  margin-left: 12px;
}

.mini-workout-item .work-meta {
  color: var(--text-secondary);
}

.booking-dash-body {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-booking-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.no-booking-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.active-booking-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.booking-details-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.booking-box-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-heading);
}

.booking-box-time {
  font-size: 0.85rem;
  color: var(--accent-comm);
}

.booking-box-cap {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

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

.water-quick-val {
  display: flex;
  flex-direction: column;
}

.water-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-heading);
}

.water-unit {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.btn-water-add {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-element);
  border: 1px solid var(--border-color);
  color: var(--accent-water);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.btn-water-add:hover {
  background-color: var(--bg-element-hover);
  border-color: var(--accent-water);
}

/* ==========================================================================
   FITNESS PAGE & WORKOUT LOG
   ========================================================================== */

.sub-tab-nav {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1px;
  margin-bottom: 24px;
}

.sub-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sub-tab-btn:hover {
  color: var(--text-heading);
}

.sub-tab-btn.active {
  color: var(--accent-fitness);
  border-bottom-color: var(--accent-fitness);
}

.sub-view-panel {
  display: none;
}

.sub-view-panel.active {
  display: block;
}

.fitness-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.standard-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: var(--bg-element);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-indigo);
  background-color: var(--bg-element-hover);
}

.exercise-section {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

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

.section-header h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
}

.exercise-rows-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.exercise-row {
  display: flex;
  gap: 8px;
  align-items: center;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.exercise-row input {
  background-color: var(--bg-element);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.85rem;
  color: var(--text-main);
}

.exercise-row .exercise-name {
  flex-grow: 1;
}

.exercise-row .exercise-sets,
.exercise-row .exercise-reps,
.exercise-row .exercise-weight {
  width: 75px;
}

.btn-delete-row {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color var(--transition-fast);
}

.btn-delete-row:hover {
  color: #f43f5e;
}

.form-actions {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  justify-content: flex-end;
}

/* Workout History List */
.history-filters {
  display: flex;
  gap: 12px;
  margin: 16px 0;
}

.history-filters input {
  flex-grow: 1;
  background-color: var(--bg-element);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--text-main);
}

.history-filters select {
  background-color: var(--bg-element);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--text-main);
}

.workout-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 650px;
  overflow-y: auto;
}

.workout-log-card {
  border-radius: var(--radius-md);
  padding: 16px;
  background-color: var(--bg-element);
  border: 1px solid var(--border-color);
  transition: border-color var(--transition-fast);
}

.workout-log-card:hover {
  border-color: var(--accent-fitness);
}

.workout-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.work-type-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.work-type-crossfit { background-color: rgba(139, 92, 246, 0.15); color: #c084fc; }
.work-type-weightlifting { background-color: rgba(99, 102, 241, 0.15); color: #818cf8; }
.work-type-running { background-color: rgba(16, 185, 129, 0.15); color: #34d399; }
.work-type-biking { background-color: rgba(14, 165, 233, 0.15); color: #38bdf8; }
.work-type-other { background-color: rgba(148, 163, 184, 0.15); color: #cbd5e1; }

.workout-log-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-heading);
}

.workout-log-meta {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.workout-log-exercises {
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-top: 1px dashed var(--border-color);
  padding-top: 8px;
}

.workout-cf-details {
  font-size: 0.8rem;
  color: var(--text-heading);
  background-color: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  margin-top: 8px;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}


/* ==========================================================================
   ANALYTICS & QUERY HUB
   ========================================================================== */

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.query-explainer {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.query-builder {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 8px 0;
  background-color: var(--bg-element);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.query-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.query-input-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.query-input-group input,
.query-input-group select {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--text-main);
  font-size: 0.85rem;
}

.query-result-box {
  background-color: rgba(99, 102, 241, 0.05);
  border: 1px dashed var(--accent-indigo);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.query-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--accent-indigo);
  animation: scanning 2s linear infinite;
  display: none;
}

.result-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
}

.result-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-indigo);
}

.result-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.result-details {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chart-card {
  display: flex;
  flex-direction: column;
}

.chart-container {
  height: 180px;
  width: 100%;
  margin-top: 16px;
}

.svg-visualizer {
  width: 100%;
  height: 100%;
}

.chart-line {
  fill: none;
  stroke: var(--accent-fitness);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 1s ease;
}

.chart-area {
  fill: url(#chart-gradient);
  transition: all 1s ease;
}

.chart-point {
  fill: var(--accent-fitness);
  stroke: var(--bg-secondary);
  stroke-width: 2.5;
  cursor: pointer;
  transition: r 0.2s ease;
}

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

.chart-legend {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ==========================================================================
   HEALTH HUB (MEAL LOG & NUTRITION)
   ========================================================================== */

.health-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 0.8fr;
  gap: 24px;
}

.meals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  max-height: 400px;
  overflow-y: auto;
}

.meal-journal-item {
  background-color: var(--bg-element);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
}

.meal-journal-item:hover {
  border-color: var(--accent-health);
}

.meal-info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meal-name-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-heading);
}

.meal-category-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.meal-macro-inline {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.meal-kcal-col {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.meal-kcal-val {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-heading);
}

.btn-delete-meal {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  margin-top: 2px;
}

.btn-delete-meal:hover {
  color: #f43f5e;
}

/* Donut Chart details */
.macro-donut-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 24px 0;
}

.donut-svg {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}

.donut-track {
  fill: none;
  stroke: var(--bg-element);
  stroke-width: 14;
}

.donut-segment {
  fill: none;
  stroke-width: 15;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease;
}

.donut-carbs { stroke: var(--accent-health); }
.donut-protein { stroke: var(--accent-fitness); }
.donut-fat { stroke: var(--accent-comm); }

.donut-text {
  transform: rotate(90deg);
  transform-origin: 80px 80px;
  text-anchor: middle;
}

.donut-kcal-num {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  fill: var(--text-heading);
}

.donut-kcal-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  fill: var(--text-muted);
}

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

.macro-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.macro-indicator .dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
}

.macro-indicator.carbs .dot { background-color: var(--accent-health); }
.macro-indicator.protein .dot { background-color: var(--accent-fitness); }
.macro-indicator.fat .dot { background-color: var(--accent-comm); }

.macro-indicator .label {
  color: var(--text-secondary);
  flex-grow: 1;
}

.macro-indicator .pct {
  font-weight: 700;
  color: var(--text-heading);
}

.macro-bars-progress {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.macro-bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bar-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.bar-track {
  height: 6px;
  background-color: var(--bg-element);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.bar-fill.carbs { background-color: var(--accent-health); }
.bar-fill.protein { background-color: var(--accent-fitness); }
.bar-fill.fat { background-color: var(--accent-comm); }

.bar-vals {
  display: flex;
  justify-content: flex-end;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bar-vals span {
  color: var(--text-main);
  font-weight: 600;
  margin-right: 3px;
}

/* Water tracker glass */
.water-tracker-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.water-tracker-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.water-glass-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 16px 0;
  gap: 16px;
}

.water-glass {
  width: 80px;
  height: 120px;
  border: 4px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 16px 16px;
  position: relative;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.02);
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.3);
}

.water-liquid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.7) 0%, rgba(2, 132, 199, 0.95) 100%);
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.water-wave {
  position: absolute;
  top: -10px;
  left: 0;
  width: 200%;
  height: 20px;
  background-image: radial-gradient(circle, transparent 20%, rgba(14, 165, 233, 0.7) 21%, rgba(14, 165, 233, 0.7) 80%, transparent 81%);
  background-size: 40px 20px;
  animation: waveMotion 2.5s linear infinite;
}

.glass-glare {
  position: absolute;
  top: 0;
  right: 6px;
  width: 8px;
  height: 85%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
  border-radius: var(--radius-full);
}

.water-indicator {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.water-fraction {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
}

.water-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.water-controls {
  display: flex;
  gap: 12px;
}

.water-controls .btn {
  flex: 1;
}

/* ==========================================================================
   COMMUNITIES PAGE
   ========================================================================== */

.communities-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  height: calc(100vh - 160px);
}

.communities-sidebar {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.communities-sidebar h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.community-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.community-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.community-tab:hover {
  background-color: var(--bg-element);
}

.community-tab.active {
  background-color: var(--bg-element-hover);
  border-color: var(--border-color);
}

.community-tab.premium-coach {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(236, 72, 153, 0.04) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.03);
  margin-bottom: 8px;
}

.community-tab.premium-coach:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.08);
}

.community-tab.premium-coach.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(236, 72, 153, 0.12) 100%);
  border-color: var(--accent-indigo);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.12);
}

.community-tab.premium-coach .comm-title {
  font-weight: 800;
  background: linear-gradient(90deg, #a5b4fc, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.comm-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.box-avatar { background-color: rgba(245, 158, 11, 0.1); }
.run-avatar { background-color: rgba(16, 185, 129, 0.1); }
.food-avatar { background-color: rgba(139, 92, 246, 0.1); }

.comm-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.comm-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
}

.comm-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.friend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.friend-item:hover {
  background-color: var(--bg-element);
}


.community-workspace {
  overflow-y: auto;
  padding-right: 4px;
}

.community-space-panel {
  display: none;
}

.community-space-panel.active {
  display: block;
}

/* Premium Banner Header */
.premium-header-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(13, 18, 31, 0.1) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  height: 100px;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.banner-overlay {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.banner-overlay h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--text-heading);
}

/* Premium Community Sub Tabs Nav */
.communities-tab-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  background-color: var(--bg-element);
  padding: 4px;
  border-radius: var(--radius-md);
  width: fit-content;
}

.comm-sub-tab {
  background: none;
  border: none;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.comm-sub-tab.active {
  background-color: var(--bg-secondary);
  color: var(--accent-comm);
  box-shadow: var(--shadow-sm);
}

.comm-section-panel {
  display: none;
}

.comm-section-panel.active {
  display: block;
}

/* WOD Grid */
.wod-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.wod-details-card {
  display: flex;
  flex-direction: column;
}

.wod-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.wod-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-heading);
}

.wod-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.wod-blocks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wod-block {
  background-color: var(--bg-element);
  padding: 14px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--border-color);
}

.wod-block.warm-up { border-left-color: var(--text-muted); }
.wod-block.strength { border-left-color: var(--accent-fitness); }
.wod-block.metcon { border-left-color: var(--accent-comm); }

.wod-block h5 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.wod-block p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.wod-block .target-cap {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-comm);
  margin-top: 6px;
}

.wod-actions {
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

/* WOD Leaderboard */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.leader-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  background-color: var(--bg-element);
  border: 1px solid var(--border-color);
}

.leader-item.user-highlight {
  border-color: var(--accent-comm);
  background-color: rgba(245, 158, 11, 0.04);
}

.leader-rank {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  width: 24px;
  text-align: center;
  color: var(--text-secondary);
}

.leader-item:nth-child(1) .leader-rank { color: #ffd700; } /* Gold */
.leader-item:nth-child(2) .leader-rank { color: #c0c0c0; } /* Silver */
.leader-item:nth-child(3) .leader-rank { color: #cd7f32; } /* Bronze */

.leader-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--bg-element-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-heading);
}

.leader-info {
  flex-grow: 1;
}

.leader-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
}

.leader-notes {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.leader-score-box {
  text-align: right;
}

.leader-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-comm);
}

.leader-type {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Booking tool weekly view */
.booking-intro {
  margin-bottom: 20px;
}

.booking-intro h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.booking-intro p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.weekly-schedule-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.schedule-day-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.day-header-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
  margin-top: 6px;
}

.day-slots-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.class-slot-card {
  background-color: var(--bg-element);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all var(--transition-fast);
}

.class-slot-card:hover {
  border-color: var(--accent-comm);
}

.slot-main-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slot-time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-heading);
}

.slot-coach {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.slot-capacity {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.slot-capacity .capacity-num {
  color: var(--text-main);
}

.slot-capacity.full .capacity-num {
  color: #f43f5e;
}

.slot-actions {
  display: flex;
}

.slot-actions .btn {
  width: 100%;
  padding: 6px 0;
  font-size: 0.8rem;
}

.btn-booked {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--accent-health);
  border-color: rgba(16, 185, 129, 0.2);
}

.btn-booked:hover {
  background-color: rgba(244, 63, 94, 0.1);
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.2);
}

.btn-booked:hover span::after {
  content: 'Cancel';
}

.btn-booked:hover span {
  display: none;
}

/* Feed & Posts */
.feed-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.create-post-card {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
}

.create-post-card form {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.create-post-card textarea {
  width: 100%;
  height: 60px;
  background: none;
  border: none;
  resize: none;
  font-size: 0.9rem;
  color: var(--text-main);
}

.create-post-card textarea:focus {
  outline: none;
}

.post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 400px);
  min-height: 320px;
  overflow-y: auto;
  padding-right: 6px;
}

.posts-list::-webkit-scrollbar {
  width: 6px;
}

.posts-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
  border-radius: var(--radius-sm);
}

.posts-list::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-sm);
}

.posts-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.post-card {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.post-header-info {
  display: flex;
  gap: 8px;
  align-items: center;
}

.post-author {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-heading);
}

.post-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.post-card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-text {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-main);
}

.post-embedded-item {
  background-color: var(--bg-element);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
}

.post-interactions {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.post-inter-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.post-inter-btn:hover {
  color: var(--accent-indigo);
}

/* General community pages layout overrides */
.general-community-hero {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(13, 18, 31, 0.1) 100%);
}

.recipes-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(13, 18, 31, 0.1) 100%);
}

.general-community-hero h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.general-community-hero p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.challenge-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.challenge-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-heading);
}

.challenge-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.challenge-status {
  font-size: 0.75rem;
  color: var(--accent-health);
  font-weight: 600;
}

.recipes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.recipe-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recipe-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
}

.recipe-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.recipe-macros {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   DIALOG MODALS (BACKDROP & CARDS)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(5, 8, 16, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92);
  opacity: 0;
  transition: all var(--transition-normal);
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
  opacity: 1;
}

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

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-heading);
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-close:hover {
  color: var(--text-heading);
}

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

.wod-summary-desc {
  background-color: var(--bg-element);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ==========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================== */

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

@keyframes waveMotion {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-40px);
  }
}

@keyframes scanning {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(94px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================================================
   USER AUTHENTICATION & ACCESS CONTROL (PHASE 3)
   ========================================================================== */

.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.auth-overlay.active {
  display: flex;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-form-panel {
  display: none;
}

.auth-form-panel.active {
  display: block;
}

.quick-users-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quick-user-btn {
  background-color: var(--bg-element);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-fast);
}

.quick-user-btn:hover {
  background-color: var(--bg-element-hover);
  border-color: var(--accent-indigo);
  transform: translateY(-2px);
}

.quick-user-btn .avatar {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-fitness));
  color: #fff;
  font-weight: 700;
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent-indigo);
  font-weight: 600;
  cursor: pointer;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Visibility Sharing Badges */
.badge-visibility {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: 4px;
}
.badge-visibility.private {
  background-color: rgba(100, 116, 139, 0.15);
  color: var(--text-secondary);
}
.badge-visibility.shared {
  background-color: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}
.badge-visibility.public {
  background-color: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

/* Members Roster grid list */
.roster-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-element);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: border-color var(--transition-fast);
}

.roster-card:hover {
  border-color: var(--accent-indigo);
}

.roster-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.roster-role-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.roster-role-owner {
  background-color: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.roster-role-admin {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.roster-role-member {
  background-color: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}

.roster-role-coach {
  background-color: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

/* Admin editor styles */
.admin-only {
  border: 1px dashed var(--accent-comm) !important;
  background-color: rgba(245, 158, 11, 0.02) !important;
}

.btn-signout:hover svg {
  stroke: #ef4444;
  transform: translateX(1px);
}

/* Autocomplete Suggestion Dropdowns */
.autocomplete-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background-color: #121929;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  max-height: 160px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  padding: 6px 0;
}

.suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-main);
  transition: background-color var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.suggestion-item:hover {
  background-color: var(--bg-element-hover);
  color: var(--text-heading);
}

.suggestion-item .suggestion-alias {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
}

.suggestion-item.custom-action {
  color: var(--accent-indigo);
  font-weight: 700;
  border-top: 1px solid var(--border-color);
}

.suggestion-item.custom-action:hover {
  background-color: rgba(99, 102, 241, 0.05);
}

/* ==========================================================================
   TIMER MODULE STYLES
   ========================================================================== */

.timer-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.timer-main-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.timer-ring-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.timer-ring-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-ring-bg {
  fill: none;
  stroke: var(--bg-element);
  stroke-width: 8;
}

.timer-ring-fg {
  fill: none;
  stroke-width: 8.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear, stroke 0.3s ease;
  stroke: var(--timer-active-color);
  filter: drop-shadow(0 0 8px var(--timer-active-glow));
}

.timer-center-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.timer-state-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--timer-active-color);
  transition: color 0.3s ease;
}

.timer-clock-display {
  font-family: 'Space Grotesk', var(--font-main);
  font-weight: 700;
  font-size: 2.8rem;
  color: var(--text-heading);
  margin: 6px 0;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}

.timer-round-display {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.timer-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
  max-width: 320px;
}

.timer-controls .btn {
  flex: 1;
}

.timer-audio-toggle {
  margin-top: 20px;
}

.timer-laps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timer-lap-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-element);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  animation: slideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.timer-lap-number {
  font-weight: 700;
  color: var(--text-muted);
}

.timer-lap-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.timer-lap-time {
  font-family: 'Space Grotesk', monospace;
  font-weight: 700;
  color: var(--text-heading);
}

/* Timer State Custom Variables mapping */
.timer-main-card.state-ready {
  --timer-active-color: var(--text-muted);
  --timer-active-glow: rgba(100, 116, 139, 0.2);
}

.timer-main-card.state-work {
  --timer-active-color: var(--accent-fitness);
  --timer-active-glow: rgba(139, 92, 246, 0.4);
}

.timer-main-card.state-rest {
  --timer-active-color: #ef4444;
  --timer-active-glow: rgba(239, 68, 68, 0.4);
}

.timer-main-card.state-finished {
  --timer-active-color: var(--accent-health);
  --timer-active-glow: rgba(16, 185, 129, 0.4);
}

.timer-main-card.state-stopwatch {
  --timer-active-color: var(--accent-water);
  --timer-active-glow: rgba(14, 165, 233, 0.4);
}

/* Flashing work/rest transitions effect */
@keyframes timer-flash {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

.timer-transition-flash {
  animation: timer-flash 0.3s ease 3;
}

/* Mode Tab Button Styling (Structured vs Freeform) */
.mode-tab-btn {
  background-color: var(--bg-element);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.mode-tab-btn:hover {
  background-color: var(--bg-element-hover);
  color: var(--text-secondary);
}

.mode-tab-btn.active {
  background-color: var(--accent-indigo) !important;
  border-color: var(--accent-indigo) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

/* WOD Editor Active Tab Specifics */
#btn-wod-mode-freeform.active,
#btn-wod-mode-structured.active {
  background-color: var(--accent-fitness) !important;
  border-color: var(--accent-fitness) !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

/* Workout Progress List Styling */
.workout-progress-history-box {
  animation: slideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.timer-progress-card {
  border-left: 3px solid var(--accent-health);
}

/* Dynamic WOD Component Cards in Box Admin Editor */
.wod-component-editor-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  transition: border-color var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wod-component-editor-card:hover {
  border-color: var(--accent-fitness);
}

.wod-component-editor-card .component-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.wod-component-editor-card .component-title-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
}

.btn-delete-component {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  height: 28px;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  display: inline-flex;
  align-items: center;
}

.btn-delete-component:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.wod-block-actions-bar {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.wod-block-actions-bar .btn {
  flex: 1;
  font-size: 0.75rem;
  padding: 4px 8px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* WOD Planner Calendar Styling */
.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(80px, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.calendar-day-cell {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast) ease;
  position: relative;
  overflow: hidden;
}

.calendar-day-cell:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(99, 102, 241, 0.4);
  cursor: pointer;
  transform: translateY(-1px);
}

.calendar-day-cell.other-month {
  opacity: 0.25;
  background: transparent;
  pointer-events: none;
}

.calendar-day-cell.today {
  border: 1.5px solid var(--accent-indigo) !important;
  background: rgba(99, 102, 241, 0.04);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15) inset;
}

.calendar-day-cell.today .calendar-day-number {
  color: var(--accent-indigo);
  font-weight: 700;
}

.calendar-day-cell.active-select {
  border-color: var(--accent-indigo);
  outline: 1.5px solid var(--accent-indigo);
  background: rgba(99, 102, 241, 0.08);
}

.calendar-day-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  align-self: flex-end;
}

.calendar-day-wod-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--accent-indigo-gradient);
  color: #ffffff;
  padding: 3px 6px;
  border-radius: 4px;
  margin-top: auto;
  margin-bottom: 4px;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.calendar-day-cell.has-wod {
  border-left: 3.5px solid var(--accent-indigo);
}

/* WOD Editor Class Pills */
.class-pill-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.class-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--text-heading);
}

.class-pill-btn.active {
  background: var(--accent-indigo-gradient);
  border-color: var(--accent-indigo);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.class-pill-btn.btn-add-class {
  border: 1px dashed rgba(99, 102, 241, 0.4);
  color: var(--accent-indigo);
}

.class-pill-btn.btn-add-class:hover {
  background: rgba(99, 102, 241, 0.05);
  color: var(--accent-indigo);
}

/* Premium Table Styles for Analytics Engine */
.premium-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.premium-table th {
  border-bottom: 2px solid var(--border-color);
  color: var(--text-heading);
  font-weight: 700;
  padding: 10px 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.premium-table td {
  border-bottom: 1px solid var(--border-color);
  padding: 12px 12px;
  color: var(--text-main);
  vertical-align: middle;
}

.premium-table tr {
  transition: background-color var(--transition-fast);
}

.premium-table tr:hover {
  background-color: rgba(255, 255, 255, 0.015);
}

/* Interactive Chart Visualizer Styles */
.svg-visualizer {
  display: block;
  overflow: visible;
  width: 100%;
}

.chart-grid-line {
  stroke: var(--border-color);
  stroke-dasharray: 4, 4;
  stroke-width: 1;
}

.chart-axis-line {
  stroke: var(--border-color);
  stroke-width: 1.5;
}

.chart-line-curve {
  fill: none;
  stroke: var(--accent-fitness);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.25));
}

.chart-line-curve-secondary {
  stroke: var(--accent-indigo) !important;
  filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.25)) !important;
}

.chart-area-fill {
  fill: url(#chart-gradient);
  pointer-events: none;
}

.chart-node-point {
  fill: var(--bg-card);
  stroke: var(--accent-fitness);
  stroke-width: 2.5;
  cursor: pointer;
  transition: r var(--transition-fast), fill var(--transition-fast);
}

.chart-node-point:hover {
  r: 8px !important;
  fill: var(--accent-fitness) !important;
}

.chart-node-point-secondary {
  stroke: var(--accent-indigo) !important;
}

.chart-node-point-secondary:hover {
  fill: var(--accent-indigo) !important;
}

.premium-tooltip {
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
  border-radius: var(--radius-md) !important;
}

.premium-tooltip strong {
  color: var(--text-heading);
  display: block;
  margin-bottom: 4px;
}

/* Workout Phase Card Layouts */
.workout-phase-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.phase-header-inputs {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.phase-title-input {
  flex-grow: 2;
  background-color: var(--bg-element);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-main);
  font-size: 0.9rem;
}
.phase-type-select {
  background-color: var(--bg-element);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-main);
  font-size: 0.9rem;
  min-width: 140px;
}
.btn-delete-phase {
  background-color: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 700;
  transition: all var(--transition-fast);
}
.btn-delete-phase:hover {
  background-color: #EF4444;
  color: #FFFFFF;
}

/* Hide Sets input for CrossFit activities */
#workout-form.activity-crossfit .exercise-sets,
#wod-editor-form.activity-crossfit .exercise-sets {
  display: none !important;
}

/* Hide Sets input for CrossFit components in community WOD editor */
.wod-component-editor-card.activity-crossfit .exercise-sets {
  display: none !important;
}




