/**
 * ==========================================================
 * DeskFit - Custom Styles
 * ==========================================================
 *
 * @package    DeskFit
 * @author     Muhammad Zaigham
 * @copyright  MZift.com (@itsmzift) All rights reserved.
 * @license    Proprietary
 *
 * ==========================================================
 */

/* ─── Nav Links ──────────────────────────────────────────── */
.mzift-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #737373;
  transition: all 0.2s;
}
.mzift-nav-link:hover {
  color: #e5e5e5;
  background: #1a1a1a;
}
.mzift-nav-active {
  color: #22c55e !important;
  background: rgba(34, 197, 94, 0.1) !important;
}

/* ─── Checklist Items ────────────────────────────────────── */
.mzift-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #141414;
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}
.mzift-check-item:hover {
  border-color: #404040;
}
.mzift-check-item.mzift-done {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}
.mzift-check-item.mzift-done .mzift-check-label {
  text-decoration: line-through;
  opacity: 0.5;
}

/* ─── Check Circle ───────────────────────────────────────── */
.mzift-check-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #404040;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.mzift-done .mzift-check-circle {
  background: #22c55e;
  border-color: #22c55e;
}

/* ─── Heatmap ────────────────────────────────────────────── */
.mzift-heatmap-cell {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #1a1a1a;
  border: 1px solid #262626;
}
.mzift-heat-1 { background: #14532d; border-color: #14532d; }
.mzift-heat-2 { background: #166534; border-color: #166534; }
.mzift-heat-3 { background: #16a34a; border-color: #16a34a; }
.mzift-heat-4 { background: #22c55e; border-color: #22c55e; }

/* ─── Streak Pop ─────────────────────────────────────────── */
@keyframes mzift-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.mzift-streak-pop {
  animation: mzift-pop 0.35s ease;
}

/* ─── Fade In ────────────────────────────────────────────── */
@keyframes mzift-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mzift-fade {
  animation: mzift-fade-up 0.4s ease both;
}
.mzift-d1 { animation-delay: 0.05s; }
.mzift-d2 { animation-delay: 0.1s; }
.mzift-d3 { animation-delay: 0.15s; }
.mzift-d4 { animation-delay: 0.2s; }
.mzift-d5 { animation-delay: 0.25s; }
.mzift-d6 { animation-delay: 0.3s; }

/* ─── Meal Card ──────────────────────────────────────────── */
.mzift-meal-card {
  background: #141414;
  border: 1px solid #262626;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.mzift-meal-card:hover {
  border-color: #404040;
}

/* ─── Exercise Card ──────────────────────────────────────── */
.mzift-exercise-card {
  background: #141414;
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.mzift-exercise-card:hover {
  border-color: #404040;
}

/* ─── Rule Card ──────────────────────────────────────────── */
.mzift-rule-card {
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* ─── Progress Bar ───────────────────────────────────────── */
.mzift-progress-bar {
  height: 8px;
  border-radius: 4px;
  background: #262626;
  overflow: hidden;
}
.mzift-progress-fill {
  height: 100%;
  border-radius: 4px;
  background: #22c55e;
  transition: width 0.5s ease;
}

/* ─── Section Header ─────────────────────────────────────── */
.mzift-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.mzift-section-header h2 {
  font-size: 18px;
  font-weight: 800;
}
.mzift-section-header .mzift-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

/* ─── Tag / Badge ────────────────────────────────────────── */
.mzift-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
}

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #404040;
}
