@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Dancing+Script:wght@700&display=swap');

:root {
  --pink: #FF2D78;
  --pink-light: #FF6BA6;
  --pink-soft: #FFE0EC;
  --pink-bg: #FFF5F9;
  --purple: #8B3DFF;
  --purple-dark: #6B1FD6;
  --purple-light: #B87FFF;
  --purple-soft: #F0E5FF;
  --gradient-main: linear-gradient(135deg, #FF2D78, #8B3DFF);
  --gradient-card: linear-gradient(145deg, #ffffff, #FFF5F9);
  --gradient-purple: linear-gradient(135deg, #8B3DFF, #6B1FD6);
  --bg: #FAFAFE;
  --surface: #FFFFFF;
  --text: #2D2040;
  --text-secondary: #8A839A;
  --text-light: #4A4458;
  --border: #F0EBF5;
  --shadow-sm: 0 2px 8px rgba(139, 61, 255, 0.06);
  --shadow-md: 0 4px 20px rgba(139, 61, 255, 0.1);
  --shadow-lg: 0 8px 40px rgba(139, 61, 255, 0.15);
  --shadow-pink: 0 4px 20px rgba(255, 45, 120, 0.2);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== LAYOUT ===== */
.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: var(--transition);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 24px 32px;
  min-height: 100vh;
}

/* ===== LOGO ===== */
.logo {
  text-align: center;
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.logo h1 {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.logo span {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

/* ===== NAV ===== */
.nav-menu {
  list-style: none;
  flex: 1;
}

.nav-menu li {
  margin-bottom: 4px;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
}

.nav-menu a:hover {
  background: var(--pink-bg);
  color: var(--pink);
}

.nav-menu a.active {
  background: var(--gradient-main);
  color: white;
  box-shadow: var(--shadow-pink);
}

.nav-menu a .icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.nav-section-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  padding: 16px 16px 8px;
  font-weight: 600;
}

/* ===== USER PROFILE SIDEBAR ===== */
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--pink-bg);
  border-radius: var(--radius-md);
  margin-top: auto;
}

.sidebar-profile .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.sidebar-profile .info h4 {
  font-size: 13px;
  font-weight: 600;
}

.sidebar-profile .info p {
  font-size: 11px;
  color: var(--text-secondary);
}

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.page-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}

.page-header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-header h3 {
  font-size: 16px;
  font-weight: 600;
}

/* ===== STAT CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
  opacity: 0;
  transition: var(--transition);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.stat-card .stat-icon.pink {
  background: var(--pink-soft);
  color: var(--pink);
}

.stat-card .stat-icon.purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.stat-card .stat-change {
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
}

.stat-change.positive {
  background: #E8FFF0;
  color: #00B347;
}

.stat-change.negative {
  background: #FFE8EC;
  color: #FF3355;
}

/* ===== GRID LAYOUTS ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-purple);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 61, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 61, 255, 0.4);
}

.btn-pink {
  background: var(--gradient-main);
  color: white;
  box-shadow: var(--shadow-pink);
}

.btn-pink:hover {
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

/* ===== INPUTS ===== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
  background: var(--surface);
}

.form-input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(139, 61, 255, 0.1);
}

select.form-input {
  cursor: pointer;
}

/* ===== PROGRESS BARS ===== */
.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar .fill {
  height: 100%;
  border-radius: 10px;
  background: var(--gradient-main);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== CHARTS CONTAINER ===== */
.chart-container {
  position: relative;
  width: 100%;
  height: 220px;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--pink-bg);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.tab.active {
  background: white;
  color: var(--purple);
  box-shadow: var(--shadow-sm);
}

/* ===== WATER TRACKER ===== */
.water-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.water-cup {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  transition: var(--transition);
  background: white;
}

.water-cup.filled {
  background: linear-gradient(135deg, #4FC3F7, #0288D1);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(2, 136, 209, 0.3);
}

.water-cup:hover {
  transform: scale(1.05);
}

/* ===== CHECKLIST ===== */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.checklist-item:hover {
  background: var(--pink-bg);
}

.checklist-item.checked {
  background: var(--pink-bg);
  border-color: var(--pink-soft);
}

.checklist-item.checked .check-box {
  background: var(--gradient-main);
  border-color: transparent;
  color: white;
}

.check-box {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: var(--transition);
}

.checklist-item .exercise-name {
  font-weight: 500;
  font-size: 14px;
  flex: 1;
}

.checklist-item .exercise-detail {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Workout section headers */
.workout-section-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
  padding: 12px 4px 6px;
  margin-top: 8px;
  letter-spacing: 0.3px;
}

.workout-section-header:first-child {
  margin-top: 0;
  padding-top: 4px;
}

/* ===== CHAT (NutriOnline) ===== */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
}

.chat-msg {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  animation: fadeInUp 0.3s ease;
}

.chat-msg.bot {
  justify-content: flex-start;
}

.chat-msg.user {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 70%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.6;
}

.chat-msg.bot .chat-bubble {
  background: var(--pink-bg);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-msg.user .chat-bubble {
  background: var(--gradient-purple);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.chat-input-area input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.chat-input-area input:focus {
  border-color: var(--purple);
}

.chat-input-area button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-main);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.chat-input-area button:hover {
  transform: scale(1.05);
}

/* ===== COMMUNITY FEED ===== */
.feed-post {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.feed-post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.feed-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.feed-post-actions {
  display: flex;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}

.feed-action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.feed-action:hover {
  color: var(--pink);
}

/* ===== CHALLENGES ===== */
.challenge-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.challenge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.challenge-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.challenge-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.challenge-card p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-pink {
  background: var(--pink-soft);
  color: var(--pink);
}

.badge-purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.badge-green {
  background: #E8FFF0;
  color: #00B347;
}

/* ===== DIARY/MINDSET ===== */
.diary-entry {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.diary-entry textarea {
  width: 100%;
  border: none;
  resize: none;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  min-height: 80px;
}

/* ===== MOOD SELECTOR ===== */
.mood-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mood-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: var(--text-secondary);
}

.mood-btn .mood-emoji {
  font-size: 28px;
}

.mood-btn:hover {
  border-color: var(--pink);
  background: var(--pink-bg);
}

.mood-btn.selected {
  border-color: var(--pink);
  background: var(--pink-bg);
  color: var(--pink);
}

/* ===== SLEEP TRACKER ===== */
.sleep-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.sleep-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(var(--purple) 0deg, var(--purple-light) 120deg, var(--border) 120deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sleep-circle-inner {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sleep-circle-inner .sleep-hrs {
  font-size: 36px;
  font-weight: 700;
  color: var(--purple);
}

.sleep-circle-inner .sleep-label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== CYCLE TRACKER ===== */
.cycle-phase {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.phase-dot {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  transition: var(--transition);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* ===== SECTION PAGE ===== */
.section-page {
  display: none;
  animation: fadeIn 0.4s ease;
}

.section-page.active {
  display: block;
}

/* ===== RESPONSIVE ===== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    position: fixed;
    z-index: 999;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 16px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--pink-soft);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--pink-light);
}

/* ===== VIDEO CARDS ===== */
.video-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.video-thumb {
  width: 100%;
  height: 160px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  position: relative;
}

.video-thumb .play-btn {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.video-info {
  padding: 16px;
}

.video-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.video-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== META TABLE ===== */
.meta-table {
  width: 100%;
}

.meta-table .meta-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.meta-row .meta-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.meta-row .meta-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--purple);
}

.tip-card {
  background: var(--pink-bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 16px;
}

.tip-card h4 {
  font-size: 13px;
  color: var(--pink);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tip-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.mini-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.mini-card {
  background: var(--purple-soft);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}

.mini-card .mini-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.mini-card .mini-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--purple);
}

/* Food log table */
.food-log {
  width: 100%;
}

.food-log-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.food-log-item:last-child {
  border-bottom: none;
}

.food-emoji {
  font-size: 24px;
}

.food-details {
  flex: 1;
}

.food-details h4 {
  font-size: 14px;
  font-weight: 600;
}

.food-details span {
  font-size: 12px;
  color: var(--text-secondary);
}

.food-kcal {
  font-size: 16px;
  font-weight: 700;
  color: var(--purple);
}

/* Emotional tracker */
.emotion-bar {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.emotion-segment {
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  font-weight: 600;
}

/* ===== FOOD AUTOCOMPLETE ===== */
.food-suggestion-item {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}

.food-suggestion-item:last-child {
  border-bottom: none;
}

.food-suggestion-item:hover {
  background: var(--pink-bg);
}

.food-suggestion-item .food-sug-name {
  font-weight: 500;
  color: var(--text);
}

.food-suggestion-item .food-sug-kcal {
  font-weight: 700;
  color: var(--purple);
  font-size: 12px;
  background: var(--purple-soft);
  padding: 2px 8px;
  border-radius: 8px;
}

.food-delete-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: var(--transition);
  flex-shrink: 0;
}

.food-delete-btn:hover {
  color: #FF3355;
  background: #FFE8EC;
}

.food-log-item {
  position: relative;
}

@keyframes loadingBar {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

@keyframes dietLoadPulse {
  0% {
    width: 20%;
  }

  50% {
    width: 85%;
  }

  100% {
    width: 20%;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* ===== CHECK-IN DO DIA ===== */

/* Energy emoji buttons */
.energy-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: white;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.energy-btn:hover {
  transform: scale(1.15);
  border-color: var(--pink-light);
}

.energy-btn.selected {
  border-color: var(--pink);
  background: var(--pink-soft);
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(255, 45, 120, 0.25);
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border);
  border-radius: 28px;
  transition: all 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.toggle-switch input:checked+.toggle-slider {
  background: var(--gradient-main);
}

.toggle-switch input:checked+.toggle-slider::before {
  transform: translateX(24px);
}

/* Effort buttons */
.effort-btn {
  flex: 1;
  padding: 10px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.effort-btn:hover {
  border-color: var(--purple-light);
  color: var(--purple);
}

.effort-btn.selected {
  border-color: var(--purple);
  background: var(--purple-soft);
  color: var(--purple);
  box-shadow: 0 0 8px rgba(139, 61, 255, 0.15);
}

/* Movement slider */
.movement-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--pink-soft), var(--pink), var(--purple));
  outline: none;
}

.movement-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--pink);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 45, 120, 0.3);
  transition: all 0.2s ease;
}

.movement-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Celebration overlay */
.celebration-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(4px);
}

.celebration-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  overflow: hidden;
  animation: celebPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(139, 61, 255, 0.3);
}

@keyframes celebPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  top: -10px;
  animation: confettiFall 2.5s ease-in forwards;
}

@keyframes confettiFall {
  0% {
    top: -10px;
    opacity: 1;
    transform: rotate(0deg) translateX(0);
  }

  100% {
    top: 110%;
    opacity: 0;
    transform: rotate(720deg) translateX(40px);
  }
}

.streak-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 2px solid var(--border);
  background: white;
}

.streak-dot.done {
  background: var(--gradient-main);
  border-color: transparent;
  color: white;
}

.streak-dot.today {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-soft);
}

/* ===== GIRLSFIT TV ===== */
.video-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.video-card:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255, 255, 255, 0.95);
}

.video-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--purple);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.video-info {
  padding: 14px 16px;
}

.video-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.video-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

.video-card.hidden {
  display: none;
}

.video-card.show {
  animation: fadeSlideIn 0.3s ease forwards;
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Video Detail Page */
.video-detail-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: var(--radius-md);
}

.play-btn-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.play-btn-large:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.play-btn-large.playing {
  background: rgba(255, 45, 120, 0.4);
  border-color: rgba(255, 45, 120, 0.6);
}

.video-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.video-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-main);
  transition: width 0.3s linear;
}

/* Video info pills */
.video-info-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--pink-bg);
  border-radius: var(--radius-sm);
  flex: 1;
  min-width: 120px;
}

.video-info-pill-icon {
  font-size: 24px;
}

.video-info-pill-label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.video-info-pill-value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* Video comments */
.video-comment {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.video-comment:hover {
  background: var(--pink-bg);
}

.video-comment.user-comment {
  background: var(--purple-soft);
}

.video-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6BA6, #B87FFF);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.video-comment-content {
  flex: 1;
  min-width: 0;
}

.video-comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.video-comment-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.video-comment-time {
  font-size: 11px;
  color: var(--text-light);
}

.video-comment-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}