@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --bg-darkest: #07080a;
  --bg-dark: #0e0f14;
  --bg-card: #15171e;
  --bg-card-hover: #1e202a;
  --orange-primary: #ff6600;
  --orange-bright: #ff8533;
  --orange-glow: rgba(255, 102, 0, 0.4);
  --orange-glow-strong: rgba(255, 102, 0, 0.85);
  --orange-dim: rgba(255, 102, 0, 0.12);
  --text-primary: #ffffff;
  --text-secondary: #a3a8b8;
  --text-muted: #5f6475;
  --success-color: #00e676;
  --success-glow: rgba(0, 230, 118, 0.3);
  --danger-color: #ff3333;
  --danger-glow: rgba(255, 51, 51, 0.3);
  --glow-shadow: 0 0 15px var(--orange-glow);
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 24px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Linear neon background lights resembling Panobianco gym styling */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, rgba(255, 102, 0, 0.02) 1px, transparent 1px) 0 0 / 100px 100px,
    linear-gradient(rgba(255, 102, 0, 0.02) 1px, transparent 1px) 0 0 / 100px 100px;
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  top: -10%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(50px);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
  border: 2px solid var(--bg-darkest);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--orange-dim);
  border-color: var(--orange-primary);
}

/* App Layout Grid */
.app-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  position: relative;
}

/* Sidebar navigation */
.sidebar {
  background-color: var(--bg-dark);
  border-right: 1px solid rgba(255, 102, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 10;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  background: url('../assets/logo.png?v=112') no-repeat center/contain;
  filter: drop-shadow(0 0 8px var(--orange-primary));
  margin-right: -13px;
}

.brand-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 30%, var(--orange-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 18px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--border-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav-item i {
  font-size: 18px;
  transition: var(--transition-fast);
}

.nav-item:hover {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: rgba(255, 102, 0, 0.2);
}

.nav-item.active {
  background-color: var(--orange-dim);
  color: var(--orange-primary);
  border-color: rgba(255, 102, 0, 0.4);
  box-shadow: inset 0 0 10px rgba(255, 102, 0, 0.05);
}

.nav-item.active i {
  color: var(--orange-primary);
  text-shadow: 0 0 10px var(--orange-glow);
}

/* User Profile Widget in Sidebar */
.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 102, 0, 0.1);
  padding-top: 20px;
}

.offline-toggle-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid rgba(255, 102, 0, 0.1);
  padding: 10px 14px;
  border-radius: var(--border-radius-md);
  margin-bottom: 15px;
  font-size: 13px;
}

.offline-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.offline-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success-color);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--success-color);
  transition: var(--transition-fast);
}

.offline-dot.offline {
  background-color: var(--danger-color);
  box-shadow: 0 0 6px var(--danger-color);
}

/* Toggle Switch Style */
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #333;
  transition: .3s;
  border-radius: 20px;
}

.slider::before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--orange-primary);
  box-shadow: 0 0 8px var(--orange-primary);
}

input:checked + .slider::before {
  transform: translateX(18px);
}

/* Main Content Area */
.main-content {
  padding: 40px;
  overflow-y: auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-section {
  display: none;
  animation: fadeIn 0.4s ease forwards;
  flex-grow: 1;
}

.content-section.active {
  display: flex;
  flex-direction: column;
}

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

/* Page Headers */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.page-title {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--orange-primary);
  box-shadow: 0 0 10px var(--orange-primary);
  border-radius: 2px;
}

.no-underline::after {
  display: none !important;
}

/* Secondary Action Button (secondary to primary brand button) */
.btn-secondary-action {
  background: transparent;
  color: var(--orange-primary);
  border: 1px solid var(--orange-primary);
  padding: 10px 18px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-secondary-action:hover {
  background: rgba(255, 102, 0, 0.1);
  transform: translateY(-1px);
}

/* Glowing Panobianco Style Buttons */
.btn-panobianco {
  background: transparent;
  color: var(--orange-primary);
  border: 1px solid var(--orange-primary);
  padding: 12px 24px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-panobianco:hover {
  background: var(--orange-primary);
  color: var(--bg-darkest);
  box-shadow: 0 0 20px var(--orange-glow-strong);
  text-shadow: none;
}

.btn-panobianco-solid {
  background: var(--orange-primary);
  color: var(--bg-darkest);
  border: 1px solid var(--orange-primary);
  padding: 12px 24px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px var(--orange-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-panobianco-solid:hover {
  background: var(--orange-bright);
  box-shadow: 0 0 25px var(--orange-glow-strong);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 24px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* DASHBOARD / HOME */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
}

.dashboard-left, .dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.premium-banner {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 102, 0, 0.15) 100%);
  border: 1px solid rgba(255, 102, 0, 0.3);
  box-shadow: var(--glow-shadow);
  border-radius: var(--border-radius-md);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.premium-banner::after {
  content: 'PREMIUM';
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-family: var(--font-title);
  font-size: 70px;
  font-weight: 900;
  color: rgba(255, 102, 0, 0.03);
  transform: rotate(-10deg);
  pointer-events: none;
}

.premium-text h3 {
  font-family: var(--font-title);
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--orange-primary);
  text-shadow: 0 0 10px rgba(255, 102, 0, 0.2);
}

.premium-text p {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 320px;
}

/* Stat Cards */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 102, 0, 0.15);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  background: var(--orange-dim);
  border: 1px solid rgba(255, 102, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-primary);
  font-size: 20px;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.stat-value {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  margin-top: 2px;
}

.stat-trend {
  font-size: 11px;
  color: var(--success-color);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Muscle Map & Visual Components */
.card {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* SVG Body Heatmap */
.heatmap-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  min-height: 280px;
}

.body-svg {
  height: 250px;
  width: auto;
  filter: drop-shadow(0 0 15px rgba(255, 102, 0, 0.03));
}

.muscle-path {
  fill: #272a35;
  stroke: #121318;
  stroke-width: 0.8px;
  transition: all 0.5s ease;
}

/* Muscle active states glowing orange */
.muscle-path.active-low {
  fill: #ff9955;
}
.muscle-path.active-mid {
  fill: #ff7722;
  filter: drop-shadow(0 0 2px rgba(255, 119, 34, 0.5));
}
.muscle-path.active-high {
  fill: var(--orange-primary);
  stroke: var(--orange-bright);
  filter: drop-shadow(0 0 5px var(--orange-glow-strong));
}

.muscle-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 15px;
  font-size: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* Streak calendar widget */
.streak-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  text-align: center;
}

.day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.day-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.day-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-darkest);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.day-circle.completed {
  background: var(--orange-dim);
  border-color: var(--orange-primary);
  color: var(--orange-primary);
  box-shadow: var(--glow-shadow);
}

.day-circle.today {
  border-color: #ffffff;
}

/* Quick Start Workout List */
.routines-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.routine-card-item {
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-normal);
}

.routine-card-item:hover {
  border-color: rgba(255, 102, 0, 0.2);
  transform: translateX(4px);
  background: var(--bg-card-hover);
}

.routine-card-item .btn-panobianco {
  width: 110px;
  height: 44px;
  flex-shrink: 0;
}

.routine-info-small h4 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.routine-info-small p {
  color: var(--text-muted);
  font-size: 12px;
}

/* ACTIVE WORKOUT PANEL */
.active-workout-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 1100px) {
  .active-workout-container {
    grid-template-columns: 1fr 340px; /* Layout with Sidebar Watch Simulator */
  }
}

/* Rest Timer Panel (Top of Active Workout) */
.timer-banner {
  background: var(--bg-card);
  border: 1px solid rgba(255, 102, 0, 0.1);
  border-radius: var(--border-radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.timer-banner.active {
  border-color: rgba(255, 102, 0, 0.5);
  box-shadow: var(--glow-shadow);
}

.timer-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 102, 0, 0.05) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.timer-details {
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 2;
}

.timer-circular-container {
  position: relative;
  width: 54px;
  height: 54px;
}

.timer-circular-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible; /* Prevents stroke clipping */
}

.timer-circular-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 4;
}

.timer-circular-progress {
  fill: none;
  stroke: var(--orange-primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 125.6; /* 2 * PI * r (r=20) */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

/* Pill-shaped skip button for the timer banner */
.btn-timer-skip {
  height: 38px;
  padding: 0 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-timer-skip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--orange-primary);
  color: var(--orange-primary);
}

.timer-pulse-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--orange-primary);
  font-size: 16px;
}

.timer-banner.active .timer-pulse-icon {
  animation: pulse-scale 1s infinite alternate;
}

@keyframes pulse-scale {
  from { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  to { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.timer-text-content {
  display: flex;
  flex-direction: column;
}

.timer-status-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timer-countdown {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.timer-banner.active .timer-countdown {
  color: var(--orange-primary);
  text-shadow: 0 0 10px var(--orange-glow);
}

.timer-controls {
  display: flex;
  gap: 8px;
  z-index: 2;
}

.btn-timer-adjust {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition-fast);
}

.btn-timer-adjust:hover {
  background: var(--orange-dim);
  border-color: var(--orange-primary);
  color: var(--orange-primary);
}

/* Active Workout Cards */
.workout-exercises-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.active-exercise-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-md);
  padding: 22px;
  transition: border-color var(--transition-normal);
}

.active-exercise-card.current-active {
  border-color: rgba(255, 102, 0, 0.35);
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.03);
}

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

.exercise-meta h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.exercise-category-tag {
  display: inline-block;
  font-size: 10px;
  background: var(--orange-dim);
  color: var(--orange-primary);
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

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

.btn-exercise-action {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
}

.btn-exercise-action:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: rgba(255, 102, 0, 0.2);
}

.btn-exercise-action.btn-replace:hover {
  color: var(--orange-primary);
  border-color: var(--orange-primary);
  box-shadow: 0 0 8px var(--orange-glow);
}

/* Set Table Styling */
.set-table {
  width: 100%;
  border-collapse: collapse;
}

.set-table th {
  text-align: left;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.set-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  transition: background-color var(--transition-fast);
}

.set-row.done-row {
  background-color: rgba(0, 230, 118, 0.01);
}

.set-row.done-row td {
  color: var(--text-muted);
}

.set-row td {
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
}

.set-num {
  font-weight: 700;
  width: 8%;
}

.set-prev {
  color: var(--text-muted);
  font-size: 13px;
  width: 25%;
}

/* Numeric input boxes simulating tactile controls */
.set-input-box {
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
  color: var(--text-primary);
  font-weight: 700;
  font-family: var(--font-title);
  width: 75px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.set-input-box:focus, .set-input-box.active-editing {
  border-color: var(--orange-primary);
  box-shadow: 0 0 8px var(--orange-glow);
  outline: none;
  background-color: var(--bg-dark);
}

/* Set status check button */
.btn-set-check {
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-sm);
  background: var(--bg-darkest);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.btn-set-check:hover {
  border-color: var(--orange-primary);
  color: var(--orange-primary);
  background: var(--orange-dim);
}

.btn-set-check.checked {
  background: var(--success-color);
  border-color: var(--success-color);
  color: var(--bg-darkest);
  box-shadow: 0 0 10px var(--success-glow);
}

/* Set delete button */
.btn-set-delete {
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-sm);
  background: var(--bg-darkest);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all var(--transition-fast);
}

.btn-set-delete:hover {
  border-color: #ff3333;
  color: #ff3333;
  background: rgba(255, 51, 51, 0.1);
}

.btn-add-set {
  background: transparent;
  color: var(--text-secondary);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: var(--border-radius-sm);
  width: 100%;
  margin-top: 15px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition-fast);
}

.btn-add-set:hover {
  border-color: var(--orange-primary);
  color: var(--orange-primary);
  background: var(--orange-dim);
}

/* CUSTOM TECLADO NUMÉRICO (TACTILE BOTTOM SHEET) */
.custom-numpad {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border-top: 2px solid var(--orange-primary);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5), 0 0 15px var(--orange-glow);
  z-index: 100002; /* Colocado acima do z-index de 9999 da barra de abas inferior */
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.1, 0.76, 0.55, 0.94);
  max-width: 480px;
  margin: 0 auto;
  right: 0;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  overflow: hidden;
}

.custom-numpad.open {
  transform: translateY(0);
}

.numpad-header {
  padding: 18px 24px;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.numpad-title-info {
  display: flex;
  flex-direction: column;
}

.numpad-target-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
}

.numpad-target-set {
  font-size: 12px;
  color: var(--text-muted);
}

.numpad-display-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.numpad-display-val {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  color: var(--orange-primary);
  text-shadow: 0 0 10px var(--orange-glow);
}

.numpad-display-unit {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}

.numpad-quick-adjusters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 20px;
  background: var(--bg-darkest);
}

.btn-quick-adj {
  padding: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-quick-adj:hover {
  background: var(--orange-dim);
  border-color: var(--orange-primary);
  color: var(--orange-primary);
}

.numpad-keys-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 15px 20px 25px 20px;
  background: var(--bg-card);
}

.btn-numpad-key {
  height: 52px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-numpad-key:active, .btn-numpad-key:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}

.btn-numpad-key.btn-action-key {
  color: var(--orange-primary);
}

.btn-numpad-key.btn-confirm-key {
  background: var(--orange-primary);
  color: var(--bg-darkest);
  border-color: var(--orange-primary);
  box-shadow: 0 0 10px var(--orange-glow);
}

.btn-numpad-key.btn-confirm-key:hover {
  background: var(--orange-bright);
}

/* SMARTWATCH SIMULATOR widget floating/sidebar */
.watch-simulator-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 40px;
}

.watch-case {
  width: 250px;
  height: 310px;
  background: #111115;
  border: 4px solid #2a2a30;
  border-radius: 55px; /* Curved Apple Watch style */
  box-shadow: 
    0 15px 35px rgba(0,0,0,0.6), 
    inset 0 0 15px rgba(255,255,255,0.05),
    0 0 2px rgba(255,255,255,0.2);
  padding: 12px;
  position: relative;
}

/* Watch Crown & Action buttons */
.watch-crown {
  position: absolute;
  right: -10px;
  top: 85px;
  width: 8px;
  height: 48px;
  background: #3a3a40;
  border-radius: 3px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.4);
}

.watch-action-button {
  position: absolute;
  right: -8px;
  top: 155px;
  width: 5px;
  height: 32px;
  background: #2a2a30;
  border-radius: 2px;
}

.watch-orange-button {
  position: absolute;
  left: -8px;
  top: 110px;
  width: 5px;
  height: 40px;
  background: #ff5500; /* Apple Watch Ultra action button */
  border-radius: 2px;
  box-shadow: -2px 0 5px rgba(255,85,0,0.3);
}

.watch-screen {
  background: #000000;
  width: 100%;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-body);
  position: relative;
  border: 1px solid rgba(255,255,255,0.02);
}

.watch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--orange-primary);
  font-weight: 700;
}

.watch-time {
  color: #ffffff;
  font-weight: 500;
}

.watch-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin: 10px 0;
}

.watch-ex-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-set-info {
  font-size: 11px;
  color: var(--text-secondary);
}

.watch-weight-display {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  color: var(--orange-primary);
  text-shadow: 0 0 8px var(--orange-glow);
  margin: 2px 0;
}

.watch-btn-check {
  background: var(--bg-card);
  border: 1px solid var(--orange-primary);
  color: var(--orange-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 0 5px var(--orange-glow);
}

.watch-btn-check:hover, .watch-btn-check:active {
  background: var(--orange-primary);
  color: #000;
}

.watch-btn-check.checked {
  background: var(--success-color);
  border-color: var(--success-color);
  color: #000;
  box-shadow: 0 0 8px var(--success-glow);
}

.watch-timer-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.92);
  border-radius: 42px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  z-index: 10;
  animation: fadeIn 0.2s ease forwards;
}

.watch-timer-overlay.active {
  display: flex;
}

.watch-timer-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.watch-timer-val {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  color: var(--orange-primary);
  text-shadow: 0 0 10px var(--orange-glow);
}

.watch-timer-close {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 9px;
  cursor: pointer;
}

.watch-footer {
  text-align: center;
  font-size: 9px;
  color: var(--text-muted);
}

/* WORKOUT BUILDER / ROUTINES EDIT */
.builder-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
}

.builder-catalog-column {
  border-left: 1px solid rgba(255,255,255,0.05);
  padding-left: 20px;
}

.routine-builder-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.form-input {
  background: var(--bg-darkest);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
}

.form-input:focus {
  border-color: var(--orange-primary);
  box-shadow: 0 0 8px var(--orange-glow);
  outline: none;
}

.builder-exercises-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

.builder-exercise-item {
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.builder-ex-info h5 {
  font-size: 14px;
  font-weight: 600;
}

.builder-ex-info span {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-remove-builder {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px;
  transition: var(--transition-fast);
}

.btn-remove-builder:hover {
  color: var(--danger-color);
}

/* Category Filter Tabs */
.category-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.category-tab {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.category-tab:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.category-tab.active {
  background: var(--orange-dim);
  border-color: var(--orange-primary);
  color: var(--orange-primary);
}

.catalog-search-input {
  width: 100%;
  margin-bottom: 15px;
}

.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 430px;
  overflow-y: auto;
  padding-right: 5px;
}

.catalog-item {
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.catalog-item:hover {
  border-color: rgba(255,102,0,0.15);
  background: var(--bg-card-hover);
}

.catalog-info h5 {
  font-size: 14px;
  font-weight: 600;
}

.catalog-info p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-add-catalog {
  background: transparent;
  border: 1px solid var(--orange-primary);
  color: var(--orange-primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: var(--transition-fast);
}

.btn-add-catalog:hover {
  background: var(--orange-primary);
  color: var(--bg-darkest);
  box-shadow: var(--glow-shadow);
}

/* REPLACE EXERCISE MODAL */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto; /* Enable scrollbar when content exceeds viewport */
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 102, 0, 0.25);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 20px var(--orange-glow);
  width: 100%;
  max-width: 480px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  animation: modalScaleIn 0.3s cubic-bezier(0.1, 0.76, 0.55, 0.94);
  margin: auto; /* Vertically and horizontally center small modals, align top and enable scrolling on overflow */
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 20px 24px;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-sub-label {
  font-size: 13px;
  color: var(--text-secondary);
}

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

.alternative-item {
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.alternative-item:hover {
  border-color: var(--orange-primary);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.alternative-info h4 {
  font-size: 14px;
  font-weight: 600;
}

.alternative-info p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-select-alt {
  background: transparent;
  border: 1px solid var(--orange-primary);
  color: var(--orange-primary);
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.alternative-item:hover .btn-select-alt {
  background: var(--orange-primary);
  color: var(--bg-darkest);
}

/* HISTORY & CHART ANALYTICS */
.history-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.history-chart-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 24px;
}

.history-chart-canvas-container {
  height: 220px;
  position: relative;
  margin-top: 15px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 2px solid rgba(255,255,255,0.05);
}

.chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 10%;
}

.chart-bar-pillar {
  width: 100%;
  background: linear-gradient(to top, var(--orange-primary), var(--orange-bright));
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 10px var(--orange-glow);
  min-height: 5px;
  transition: height 0.6s cubic-bezier(0.1, 0.76, 0.55, 0.94);
  position: relative;
}

.chart-bar-pillar:hover {
  filter: brightness(1.2);
}

.chart-bar-tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  font-size: 9px;
  padding: 3px 6px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
  border: 1px solid var(--orange-primary);
}

.chart-bar-pillar:hover .chart-bar-tooltip {
  opacity: 1;
}

.chart-bar-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.history-item-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--border-radius-md);
  padding: 20px;
}

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

.history-item-title h4 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
}

.history-item-title span {
  font-size: 12px;
  color: var(--text-muted);
}

.history-item-summary {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.history-item-summary strong {
  color: var(--orange-primary);
}

/* Offline sync overlay toast */
.sync-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--bg-card);
  border: 1px solid var(--orange-primary);
  border-radius: var(--border-radius-md);
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px var(--orange-glow);
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(150px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sync-toast.show {
  transform: translateY(0);
}

.sync-icon-spin {
  color: var(--orange-primary);
  animation: spin 1.5s linear infinite;
  font-size: 18px;
}

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

.sync-text h5 {
  font-weight: 600;
  font-size: 13px;
}

.sync-text p {
  font-size: 11px;
  color: var(--text-muted);
}

/* RESPONSIVENESS */
@media (max-width: 900px) {
  .app-container {
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }

  .sidebar {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 70px !important;
    border-right: none !important;
    border-top: 1px solid rgba(255, 102, 0, 0.15) !important;
    flex-direction: row !important;
    padding: 10px 15px !important;
    align-items: center !important;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.4) !important;
    z-index: 9999 !important; /* Ensure it floats above all other elements */
  }

  .sidebar > div {
    width: 100%;
  }

  .brand-section, .sidebar-footer {
    display: none; /* Hide brand & settings on mobile nav bar */
  }

  .nav-menu {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
  }

  .nav-item {
    flex: 1;
    flex-direction: column;
    padding: 6px 2px;
    gap: 4px;
    font-size: 9px;
    border-radius: 8px;
    min-width: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .nav-item span {
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-item i {
    font-size: 16px;
  }

  .main-content {
    padding: 45px 20px 95px 20px; /* Mais padding no topo para afastar da barra de status e embaixo para liberar a nav */
    height: calc(100vh - 70px);
    overflow-x: hidden; /* Evita qualquer scroll horizontal no container principal */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
  }

  .main-content::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
  }

  .sync-toast {
    bottom: 90px !important;
    left: 20px !important;
    right: 20px !important;
    z-index: 100000 !important;
  }

  .dashboard-grid, .builder-split {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .builder-catalog-column {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-left: 0;
    padding-top: 20px;
    margin-top: 20px;
  }

  .watch-simulator-panel {
    display: none; /* Hide smartwatch on true mobile browser, keeping it for desktop review */
  }
}

/* OTIMIZAÇÕES ESPECÍFICAS PARA CELULARES PEQUENOS */
@media (max-width: 600px) {
  .stats-row {
    grid-template-columns: 1fr; /* Empilha os cards de estatísticas para não quebrar lateralmente */
    gap: 12px;
  }

  .premium-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .premium-banner button {
    width: 100%;
  }
  
  .page-title {
    font-size: 26px;
  }
  
  .heatmap-container {
    flex-direction: column;
    gap: 20px;
  }

  /* Active Workout Mobile Sizing Optimization */
  .active-exercise-card {
    padding: 12px 10px;
  }

  .exercise-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .exercise-actions-dropdown {
    justify-content: flex-end;
    margin-top: 0 !important;
  }

  /* Page Header Action Buttons Optimization */
  #btn-play-pause-workout, #btn-finish-workout {
    padding: 8px 6px !important;
    font-size: 11px !important;
  }

  .set-input-box {
    width: 58px;
    padding: 6px 4px;
    font-size: 12px;
  }

  .set-prev {
    font-size: 11px;
    width: 22%;
  }

  .set-table th {
    font-size: 10px;
    padding-bottom: 6px;
  }

  .timer-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }

  .timer-details {
    justify-content: center;
  }

  .timer-controls {
    justify-content: center;
  }

  .btn-set-check {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .btn-set-delete {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }
}

/* Mobile Top Header Bar styling */
.mobile-header {
  display: none;
}

@media (max-width: 900px) {
  .mobile-header {
    display: flex;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 102, 0, 0.15);
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  }

  .brand-logo-small {
    width: 38px;
    height: 38px;
    background: url('../assets/logo.png?v=112') no-repeat center/contain;
    filter: drop-shadow(0 0 4px var(--orange-glow));
    margin-right: -11px;
  }

  .brand-name-small {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.5px;
    color: #fff;
  }
  
  /* Ajuste de margem superior para compensar a barra superior no mobile */
  .main-content {
    padding: 85px 20px 95px 20px !important;
  }
}

/* Welcome Splash Screen Overlay */
.welcome-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: radial-gradient(circle at center, rgba(255, 102, 0, 0.15) 0%, #07080a 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.welcome-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.welcome-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: scaleUp 0.8s cubic-bezier(0.1, 0.76, 0.55, 0.94) forwards;
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.welcome-logo {
  width: 152px;
  height: 152px;
  background: url('../assets/logo.png?v=112') no-repeat center/contain;
  filter: drop-shadow(0 0 15px var(--orange-glow-strong));
  animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
  from { filter: drop-shadow(0 0 12px rgba(255, 102, 0, 0.4)); transform: scale(1); }
  to { filter: drop-shadow(0 0 30px rgba(255, 102, 0, 0.85)); transform: scale(1.03); }
}

.welcome-title {
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ffffff 40%, var(--orange-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255,102,0,0.1);
}

.welcome-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 280px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-welcome-pulse {
  background: var(--orange-primary);
  color: #000000;
  border: none;
  padding: 16px 36px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 20px var(--orange-glow);
  transition: all 0.3s ease;
  animation: button-pulse 1.5s infinite alternate;
}

.btn-welcome-pulse:hover {
  background: #ff8533;
  color: #000000;
  box-shadow: 0 0 35px var(--orange-glow-strong);
  transform: translateY(-2px);
}

@keyframes button-pulse {
  from { box-shadow: 0 0 10px var(--orange-glow); }
  to { box-shadow: 0 0 25px var(--orange-glow-strong); }
}

/* GIF CONTAINER & SHOW EXECUTION BUTTON */
.btn-show-gif {
  background: rgba(255, 102, 0, 0.1);
  color: var(--orange-primary);
  border: 1px solid rgba(255, 102, 0, 0.2);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-show-gif:hover {
  background: var(--orange-primary);
  color: #000;
  border-color: var(--orange-primary);
}

.gif-holder {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  justify-content: center;
  margin-top: 0;
}

.gif-holder.open {
  max-height: 300px;
  margin-top: 15px;
}

.gif-holder img {
  width: 100%;
  max-width: 260px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--orange-primary);
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.15);
}

/* EXERCISE COMPLETION BUTTON */
.btn-complete-exercise {
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-complete-exercise:hover {
  transform: scale(1.02);
}

/* Mood Selector Card */
.mood-selector-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.mood-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 12px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: var(--transition-normal);
  color: var(--text-secondary);
}

.mood-btn:hover {
  background: rgba(255, 102, 0, 0.05);
  border-color: rgba(255, 102, 0, 0.2);
  transform: translateY(-2px);
}

.mood-btn.selected {
  background: rgba(255, 102, 0, 0.1) !important;
  border-color: var(--orange-primary) !important;
  box-shadow: 0 0 12px rgba(255, 102, 0, 0.2);
  color: var(--text-primary) !important;
}

.mood-emoji {
  font-size: 24px;
  line-height: 1;
}

.mood-text {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 600px) {
  .mood-selector-container {
    gap: 6px;
  }
  
  .mood-btn {
    padding: 10px 4px;
  }
  
  .mood-emoji {
    font-size: 20px;
  }
  
  .mood-text {
    font-size: 9px;
  }
}

/* Premium Styling for Mood Card */
.mood-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 102, 0, 0.15) 100%) !important;
  border: 1px solid rgba(255, 102, 0, 0.3) !important;
  box-shadow: var(--glow-shadow) !important;
  position: relative;
  overflow: hidden;
  padding: 24px !important;
  margin-bottom: -15px !important; /* Aproxima o card de humor do painel de estatísticas */
}

.mood-card .card-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: var(--orange-primary) !important;
  text-shadow: 0 0 10px rgba(255, 102, 0, 0.2);
  font-size: 18px !important;
  margin-bottom: 15px !important;
}

/* Mobile Header toggle button */
.menu-toggle-btn {
  position: absolute;
  left: 15px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.menu-toggle-btn:hover {
  color: var(--orange-primary);
}

.menu-toggle-btn:active {
  transform: scale(0.9);
}

/* Settings Overlay */
.settings-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
}

.settings-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Settings Drawer */
.settings-drawer {
  width: 320px;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(20, 20, 25, 0.98) 100%);
  border-right: 1px solid rgba(255, 102, 0, 0.2);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-overlay.open .settings-drawer {
  transform: translateX(0);
}

/* Settings Header */
.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-header h3 {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--orange-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

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

/* Settings Content Scroll */
.settings-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 80px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Custom Scrollbar for Drawer */
.settings-content::-webkit-scrollbar {
  width: 4px;
}

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

.settings-content::-webkit-scrollbar-thumb {
  background: rgba(255, 102, 0, 0.2);
  border-radius: 2px;
}

/* Settings Sections */
.settings-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-section h4 {
  font-family: var(--font-title);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.settings-group label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.settings-group input,
.settings-group select {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.settings-group input:focus,
.settings-group select:focus {
  border-color: var(--orange-primary);
  box-shadow: 0 0 8px rgba(255, 102, 0, 0.15);
}

/* Buttons */
.btn-settings-save {
  background: linear-gradient(135deg, var(--orange-primary) 0%, #ff8f00 100%);
  border: none;
  color: white;
  padding: 11px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  margin-top: 4px;
}

.btn-settings-save:hover {
  opacity: 0.95;
}

.btn-settings-save:active {
  transform: scale(0.98);
}

/* Checkbox Style */
.settings-checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-top: 4px;
}

.settings-checkbox-group input[type="checkbox"] {
  accent-color: var(--orange-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.settings-checkbox-group label {
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}

/* Backup Buttons */
.settings-backup-buttons {
  display: flex;
  gap: 10px;
}

.btn-backup {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s, border-color 0.2s;
}

.btn-backup:hover {
  background-color: rgba(255, 102, 0, 0.08);
  border-color: rgba(255, 102, 0, 0.3);
}

/* Reset Button */
.btn-reset-app {
  background-color: rgba(255, 23, 68, 0.05);
  border: 1px solid rgba(255, 23, 68, 0.15);
  color: #ff1744;
  padding: 11px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.btn-reset-app:hover {
  background-color: rgba(255, 23, 68, 0.1);
  border-color: rgba(255, 23, 68, 0.3);
}

/* About Section */
.about-section {
  border-bottom: none;
  padding-bottom: 0;
  text-align: center;
}

.about-section p {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
}

.about-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  background-color: rgba(0, 0, 0, 0.15);
  padding: 10px;
  border-radius: 6px;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .desktop-only-nav {
    display: none !important;
  }
}

/* Monthly Calendar Modal styles */
.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 15px 0 20px 0;
}

.calendar-day-circle {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  min-height: 42px;
  position: relative; /* Para posicionar o badge */
}

.calendar-day-circle:hover {
  border-color: rgba(255, 102, 0, 0.3);
  background-color: rgba(255, 102, 0, 0.04);
  color: #fff;
}

.calendar-day-circle.completed {
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.08) 0%, rgba(255, 143, 0, 0.15) 100%);
  border: 1px solid var(--orange-primary);
  color: #fff; /* Mantém o número legível */
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.15);
}

.calendar-flame-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #ffd700 0%, #ff8f00 100%);
  color: #000;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  border: 1.5px solid #151518; /* Borda da cor do card para cortar visualmente */
}

.calendar-flame-badge i {
  font-size: 8px;
  line-height: 1;
}

.calendar-day-circle.selected {
  border-color: #ffd700 !important;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4) !important;
  background-color: rgba(255, 215, 0, 0.06) !important;
  color: #ffd700 !important;
}

@media (max-width: 480px) {
  .calendar-days-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
}

/* FLOATING REST TIMER BAR */
.floating-timer-bar {
  position: fixed;
  top: 60px; /* Logo abaixo do mobile-header de 60px */
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  width: calc(100% - 30px);
  max-width: 420px;
  background: rgba(21, 21, 24, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--orange-primary);
  box-shadow: 0 8px 30px rgba(255, 102, 0, 0.2), 0 0 15px rgba(0,0,0,0.6);
  border-radius: 40px;
  padding: 12px 20px; /* Aumentado de 8px 16px para dar mais altura e destaque */
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9998; /* Abaixo do header mobile (999) mas acima das abas inferiores (100) */
  transition: transform 0.35s cubic-bezier(0.1, 0.76, 0.55, 0.94), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  box-sizing: border-box;
}

.floating-timer-bar.show {
  transform: translateX(-50%) translateY(12px);
  opacity: 1;
  pointer-events: auto;
}

.timer-pulse-icon-mini {
  color: var(--orange-primary);
  font-size: 13px; /* Tamanho ajustado da ampulheta */
  animation: pulse-scale-mini 1.2s infinite alternate;
  display: inline-block;
  vertical-align: middle;
  margin-right: 2px;
}

@keyframes pulse-scale-mini {
  from { transform: scale(0.9) translateY(0); opacity: 0.7; }
  to { transform: scale(1.25) translateY(0.5px); opacity: 1; }
}

.btn-timer-adjust-mini, .btn-timer-skip-mini {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px; /* Ajustado para acompanhar a altura da barra */
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-main);
}

.btn-timer-adjust-mini:active {
  background: rgba(255, 255, 255, 0.15);
}

.btn-timer-skip-mini {
  border-color: var(--orange-primary);
  color: var(--orange-primary);
}

.btn-timer-skip-mini:active {
  background: var(--orange-primary);
  color: #000;
}
