/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  /* Branding */
  --primary-color: #aa26da;
  --secondary-color: #00C853;
  --bg-color: #FAFAFA;
  --text-color: #2D2D2D;
  --card-bg: #FFFFFF;
  --danger-color: #FF5252;
  --gray-light: #E0E0E0;

  /* UI Constants */
  --border-radius: 24px;
  /* Slightly more rounded */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-premium: 0 10px 40px -10px rgba(170, 38, 218, 0.15);
  /* New Premium Shadow */
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;

  /* Transitions */
  --transition-speed: 0.3s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 4px;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 24px;
}

/* Increased */
small {
  font-size: 12px;
  color: #666;
}

/* Utilities */
.container {
  padding: var(--spacing-lg);
  max-width: 480px;
  /* Mobile focused */
  margin: 0 auto;
  width: 100%;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 16px 32px;
  border-radius: 30px;
  /* Pill shape */
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, box-shadow var(--transition-speed);
  border: none;
  font-size: 16px;
  width: 100%;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 8px 20px rgba(170, 38, 218, 0.3);
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  /* Increased padding */
  box-shadow: var(--shadow-subtle);
  margin-bottom: var(--spacing-lg);
  /* More spacing between cards */
  border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Premium Inputs */
input[type="number"],
input[type="text"] {
  width: 100%;
  padding: 18px;
  /* Larger tap area */
  border: 2px solid var(--gray-light);
  border-radius: 16px;
  /* More rounded */
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  /* Larger text */
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #F8F9FA;
}

input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(170, 38, 218, 0.1);
  background: white;
}

/* Navigation (Bottom Bar) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  z-index: 100;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: #999;
  text-decoration: none;
  gap: 4px;
}

.nav-item.active {
  color: var(--primary-color);
}

.nav-icon {
  font-size: 22px;
}

/* Protocol Section */
.checklist-item {
  display: flex;
  align-items: center;
  padding: 16px 0;
  /* More padding */
  border-bottom: 1px solid #f0f0f0;
}

.checklist-item:last-child {
  border-bottom: none;
}

.check-circle {
  width: 24px;
  height: 24px;
  border: 2px solid var(--gray-light);
  border-radius: 50%;
  margin-right: 16px;
  flex-shrink: 0;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checklist-item.checked .check-circle {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.checklist-item.checked .check-circle::after {
  content: '✓';
  color: white;
  font-size: 14px;
}

/* Weight Tracker Specifics - Premium Redesign */

.badge-pill {
  background-color: rgba(170, 38, 218, 0.1);
  color: var(--primary-color);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-block;
  margin-top: 4px;
}

.hero-card {
  padding: 32px 24px;
  /* More vertical padding */
  text-align: center;
  box-shadow: var(--shadow-premium);
}

.weight-display {
  margin-bottom: 24px;
}

.weight-value-huge {
  font-size: 56px;
  font-weight: 800;
  color: var(--text-color);
  line-height: 1;
  letter-spacing: -2px;
}

.weight-unit {
  font-size: 18px;
  font-weight: 600;
  color: #999;
  margin-left: 4px;
}

.divider {
  height: 1px;
  background-color: #F0F0F0;
  margin: 0 0 24px 0;
  width: 100%;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.mini-stat-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mini-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
}

.value-negative {
  color: var(--secondary-color);
}

.value-positive {
  color: var(--danger-color);
}

.chart-container-clean {
  height: 250px;
  width: 100%;
  margin-bottom: 24px;
}

.history-item-clean {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f5f5f5;
}

.history-item-clean:last-child {
  border-bottom: none;
}

.history-date {
  font-weight: 500;
  color: #666;
}

.history-weight {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-color);
}

.spacer {
  height: 100px;
}
/* Recipe Page Styles */
.protocol-stack { display: flex; flex-direction: column; gap: 16px; }
.protocol-card { background: white; border-radius: 20px; box-shadow: var(--shadow-subtle); overflow: hidden; transition: box-shadow 0.3s; }
.protocol-card[open] { box-shadow: var(--shadow-premium); }
.card-summary { list-style: none; display: flex; align-items: center; padding: 20px; cursor: pointer; outline: none; }
.card-summary::-webkit-details-marker { display: none; }
.summary-icon { font-size: 28px; margin-right: 16px; }
.summary-text { flex: 1; display: flex; flex-direction: column; }
.summary-title { font-weight: 700; font-size: 16px; color: var(--text-color); }
.summary-sub { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.chevron { font-size: 12px; color: #ccc; transition: transform 0.3s; }
details[open] .chevron { transform: rotate(180deg); color: var(--primary-color); }
.card-content { padding: 0 24px 24px 24px; animation: slideDown 0.3s ease-out; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.doctor-note { background: #F9FAFB; border-left: 4px solid var(--primary-color); padding: 12px 16px; border-radius: 0 12px 12px 0; font-style: italic; color: #555; font-size: 14px; margin-bottom: 20px; }
.recipe-title { font-size: 14px; text-transform: uppercase; color: #999; margin-bottom: 8px; letter-spacing: 1px; }
.recipe-list { margin-bottom: 20px; padding-left: 0; list-style: inside; }
.recipe-list li { margin-bottom: 8px; color: var(--text-color); font-size: 15px; }
.recipe-text { color: var(--text-color); font-size: 15px; line-height: 1.6; }
.glow-border { border: 2px solid rgba(170, 38, 218, 0.1); box-shadow: 0 8px 24px rgba(170, 38, 218, 0.15); }
.warning-box { background: #FFF5F5; border: 1px solid #FECACA; border-radius: 12px; padding: 16px; display: flex; gap: 12px; align-items: start; color: #C53030; font-size: 13px; margin-bottom: 20px; }

/* Protocolo Page Styles */
.tagline-mandatory { color: #D32F2F; font-weight: 700; font-size: 14px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Bonus Page Styles */
.bonus-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.bonus-header { display: flex; align-items: flex-start; gap: 16px; }
.bonus-title { font-size: 18px; color: var(--text-color); margin-bottom: 4px; }
.bonus-desc { font-size: 14px; color: #666; font-weight: 400; line-height: 1.4; }
.btn-outline { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); box-shadow: none; font-size: 14px; padding: 12px 24px; transition: all 0.2s; }
.btn-outline:active { background: rgba(0,0,0,0.05); transform: scale(0.98); }

.btn-signout { margin-top: 32px; background: transparent; border: 1px solid #ccc; color: #666; font-size: 14px; padding: 10px 20px; width: 100%; border-radius: 12px; cursor: pointer; }
.btn-signout:hover { background: #f0f0f0; border-color: #bbb; }
