:root {
  --color-primary: #00d4aa;
  --color-accent: #ffd700;
  --color-bg: #0a0a0a;
  --color-surface: #1a1a1a;
  --color-text: #ffffff;
  --color-text-muted: #888888;
  --space-md: 16px;
  --space-lg: 24px;
  --radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-surface);
  border-bottom: 1px solid #333;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
  position: fixed;
  top: 60px;
  left: -250px;
  width: 250px;
  height: calc(100vh - 60px);
  background: var(--color-surface);
  border-right: 1px solid #333;
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  transition: left 0.3s ease;
}

.nav-menu.active {
  left: 0;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  padding: 12px var(--space-md);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: 0.2s;
}

.nav-link:hover,
.nav-link.active {
  background: var(--color-primary);
  color: #000;
}

/* ========== PAGE CONTENT ========== */
.page-content {
  margin-top: 80px;
  padding: var(--space-md);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.page-header {
  margin-bottom: var(--space-lg);
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

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

/* ========== SECTIONS ========== */
.analytics-section,
.training-section {
  background: var(--color-surface);
  border-radius: 12px;
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.analytics-section h2,
.training-section h2 {
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.chart-container {
  height: 300px;
  position: relative;
}

/* ========== PR GRID ========== */
.pr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.pr-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, #00b894 100%);
  padding: var(--space-md);
  border-radius: 12px;
  text-align: center;
}

.pr-card h3 {
  font-size: 0.9rem;
  color: rgba(0,0,0,0.7);
  margin-bottom: 8px;
}

.pr-card .weight {
  font-size: 2rem;
  font-weight: 800;
  color: #000;
}

.pr-card .date {
  font-size: 0.8rem;
  color: rgba(0,0,0,0.6);
  margin-top: 4px;
}

/* ========== WORKOUT CARDS ========== */
.workout-card {
  background: #222;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #333;
}

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

.workout-date {
  color: #888;
  font-size: 0.9rem;
}

.workout-type {
  background: var(--color-primary);
  color: #000;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.workout-rating {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.rating-stark { background: #00d4aa; color: #000; }
.rating-solide { background: #ffd700; color: #000; }
.rating-okay { background: #888; color: #fff; }

.workout-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  color: #888;
  font-size: 0.9rem;
}

.workout-exercises {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exercise-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: #1a1a1a;
  border-radius: 8px;
}

.exercise-name {
  font-weight: 500;
}

.exercise-sets {
  color: #888;
  font-size: 0.9rem;
}

.workout-notes {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #333;
  color: #888;
  font-style: italic;
  font-size: 0.9rem;
}

/* Desktop: always show nav */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
  
  .nav-menu {
    position: static;
    flex-direction: row;
    width: auto;
    height: auto;
    border: none;
    left: 0;
  }
  
  .nav-link {
    margin-bottom: 0;
    margin-right: 8px;
  }
  
  .page-content {
    margin-top: 80px;
    margin-left: 0;
  }
}