/* Root CSS variables and global styles */
:root {
  color-scheme: dark;
}

html, body {
  height: 100%;
}

/* Component styles */
.card {
  background: linear-gradient(180deg, #151823, #121521);
  border: 1px solid #202537;
}

.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  backdrop-filter: blur(8px);
}

/* Glassmorphism card styles */
.card-glass {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-glass:hover {
  border-color: rgba(109, 211, 166, 0.4);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 0 1px rgba(109, 211, 166, 0.2);
  transform: translateY(-2px);
}

/* Icon button styles */
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(109, 211, 166, 0.3);
}

.icon-btn:active {
  transform: translateY(0);
}

/* Enhanced search input */
.search-input-enhanced {
  background: rgba(15, 19, 32, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.search-input-enhanced:focus {
  border-color: rgba(109, 211, 166, 0.5);
  box-shadow:
    0 0 0 3px rgba(109, 211, 166, 0.1),
    0 8px 24px rgba(109, 211, 166, 0.15);
  transform: translateY(-1px);
}

/* Section card for modal content */
.section-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.grid-bg {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
  background-size: 20px 20px;
}

.chip {
  border: 1px solid #2a3147;
  background: #121521;
}

.btn {
  transition: transform .05s ease;
}

.btn:active {
  transform: translateY(1px);
}

/* Input styles */
.form-input {
  background: #0f1320;
  border: 1px solid #202537;
  color: #eaeef6;
}

.form-input:focus {
  outline: none;
  border-color: #6dd3a6;
  box-shadow: 0 0 0 3px rgba(109, 211, 166, 0.1);
}

/* Edit mode styles */
.edit-mode {
  border: 2px solid #6dd3a6;
  background: rgba(109, 211, 166, 0.05);
}

.edit-controls {
  background: rgba(109, 211, 166, 0.1);
  border: 1px solid #6dd3a6;
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-top: 0.75rem;
}

/* Loading spinner */
.spinner {
  border: 2px solid #202537;
  border-top: 2px solid #6dd3a6;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

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

/* Enhanced loading animations */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(109, 211, 166, 0.3), 0 0 10px rgba(109, 211, 166, 0.2);
  }
  50% {
    box-shadow: 0 0 10px rgba(109, 211, 166, 0.5), 0 0 20px rgba(109, 211, 166, 0.3);
  }
}

@keyframes progress-shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading-overlay-enhanced .progress-bar {
  background: linear-gradient(
    90deg,
    #6dd3a6 0%,
    #7cc2ff 25%,
    #6dd3a6 50%,
    #7cc2ff 75%,
    #6dd3a6 100%
  );
  background-size: 200% 100%;
  animation: progress-shimmer 2s linear infinite;
}

.loading-overlay-enhanced .bouncing-emoji {
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.loading-overlay-enhanced .phase-icon {
  transition: all 0.3s ease;
  display: inline-block;
}

.loading-overlay-enhanced .phase-icon.active {
  animation: pulse-glow 1.5s ease-in-out infinite;
  transform: scale(1.1);
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #151823;
  border: 1px solid #202537;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 10000;
  max-width: 400px;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-color: #6dd3a6;
}

.toast.error {
  border-color: #ffcc6a;
}

/* Toast animations for Tailwind utility classes */
@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.animate-slide-in {
  animation: slide-in 0.3s ease-out forwards;
}

.animate-fade-out {
  animation: fade-out 0.3s ease-out forwards;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: white;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    background: white;
    color: #000;
  }

  .glass {
    background: #f5f5f5;
    backdrop-filter: none;
  }
}

/* Meal plan card improvements */
.meal-plan-day {
  min-width: 0; /* Allow flex/grid items to shrink below content size */
}

.meal-slot {
  min-width: 0; /* Prevent flex items from overflowing */
}

.meal-slot .truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Ensure all text content wraps properly */
.meal-slot * {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Fix horizontal overflow in meal cards */
.filled-meal {
  max-width: 100%;
}

.filled-meal > div {
  min-width: 0;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .meal-plan-day {
    margin-bottom: 1.5rem;
  }

  .grocery-category {
    grid-template-columns: 1fr;
  }

  /* Billing section responsive improvements */
  #quotaLimitsTable th,
  #quotaLimitsTable td,
  #billingHistoryTable th,
  #billingHistoryTable td {
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem;
  }

  #planComparisonModal .max-w-6xl {
    max-width: 100%;
  }

  #planComparisonGrid {
    gap: 1rem !important;
  }
}

/* Billing modal animations */
#planComparisonModal:not(.hidden) {
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Better table scrolling on mobile */
@media (max-width: 640px) {
  #quotaLimitsTable,
  #billingHistoryTable {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  #quotaLimitsTable tbody,
  #billingHistoryTable tbody {
    display: table;
    width: 100%;
  }
}

/* Loading skeleton pulse animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Dashboard fade-in animations */
@keyframes fade-slide-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-section {
  animation: fade-slide-up 0.5s ease-out forwards;
  opacity: 0;
}

.dashboard-section:nth-child(1) { animation-delay: 0.1s; }
.dashboard-section:nth-child(2) { animation-delay: 0.2s; }
.dashboard-section:nth-child(3) { animation-delay: 0.3s; }
.dashboard-section:nth-child(4) { animation-delay: 0.4s; }

/* Progress bar fill animation */
.progress-fill-animate {
  animation: fill-progress 0.8s ease-out forwards;
}

@keyframes fill-progress {
  from {
    width: 0;
  }
}

/* Metric card hover enhancement */
.metric-card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Quota warning colors */
.quota-warning {
  border-color: #ffcc6a !important;
}

.quota-warning .progress-bar {
  background: linear-gradient(to right, #ffcc6a, #f59e0b) !important;
}

.quota-critical {
  border-color: #ef4444 !important;
}

.quota-critical .progress-bar {
  background: linear-gradient(to right, #ef4444, #dc2626) !important;
}

/* Client Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
  border: 1px solid transparent;
}

.status-badge-active {
  background: rgba(109, 211, 166, 0.15);
  color: #6dd3a6;
  border-color: rgba(109, 211, 166, 0.3);
}

.status-badge-paused {
  background: rgba(255, 204, 106, 0.15);
  color: #ffcc6a;
  border-color: rgba(255, 204, 106, 0.3);
}

.status-badge-inactive {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.status-badge-completed {
  background: rgba(165, 176, 194, 0.15);
  color: #a5b0c2;
  border-color: rgba(165, 176, 194, 0.3);
}

/* Goal badges */
.goal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  color: #a5b0c2;
}

.goal-badge-cut {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

.goal-badge-maintain {
  background: rgba(124, 194, 255, 0.1);
  color: #7cc2ff;
}

.goal-badge-bulk {
  background: rgba(109, 211, 166, 0.1);
  color: #6dd3a6;
}

/* Filter chip styles */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  background: rgba(109, 211, 166, 0.1);
  border: 1px solid rgba(109, 211, 166, 0.3);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: #6dd3a6;
}

.filter-chip button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(109, 211, 166, 0.2);
  color: #6dd3a6;
  transition: all 0.15s ease;
}

.filter-chip button:hover {
  background: rgba(109, 211, 166, 0.4);
}

/* Client table row hover */
#clientsTableBody tr {
  transition: background-color 0.15s ease;
}

#clientsTableBody tr:hover {
  background-color: rgba(109, 211, 166, 0.05);
}

/* Avatar styles */
.client-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* =====================================================
   RECIPE PAGE STYLES
   ===================================================== */

/* Meal Type Tabs */
.meal-type-tab {
  background: transparent;
  color: #a5b0c2;
  border: 1px solid transparent;
}

.meal-type-tab:hover {
  background: rgba(109, 211, 166, 0.1);
  color: #eaeef6;
}

.meal-type-tab.active {
  background: rgba(109, 211, 166, 0.15);
  color: #6dd3a6;
  border-color: rgba(109, 211, 166, 0.3);
}

/* Recipe View Toggle */
.recipe-view-toggle {
  color: #a5b0c2;
}

.recipe-view-toggle:hover {
  color: #eaeef6;
  background: rgba(255, 255, 255, 0.1);
}

.recipe-view-toggle.active {
  color: #6dd3a6;
  background: rgba(109, 211, 166, 0.15);
}

/* Recipe Filter Checkboxes */
.recipe-filter-checkbox {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 1px solid #202537;
  background: #0f1320;
  appearance: none;
  cursor: pointer;
  position: relative;
}

.recipe-filter-checkbox:checked {
  background: #6dd3a6;
  border-color: #6dd3a6;
}

.recipe-filter-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #0f1320;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.recipe-filter-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(109, 211, 166, 0.2);
}

/* Recipe Filter Radio Buttons */
.recipe-filter-radio {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1px solid #202537;
  background: #0f1320;
  appearance: none;
  cursor: pointer;
  position: relative;
}

.recipe-filter-radio:checked {
  border-color: #6dd3a6;
}

.recipe-filter-radio:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6dd3a6;
}

.recipe-filter-radio:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(109, 211, 166, 0.2);
}

/* Recipe Card Styles */
.recipe-card {
  background: linear-gradient(180deg, #151823, #121521);
  border: 1px solid #202537;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.recipe-card:hover {
  border-color: rgba(109, 211, 166, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Recipe Card Image Placeholder */
.recipe-card-image {
  height: 160px;
  background: linear-gradient(135deg, rgba(109, 211, 166, 0.1) 0%, rgba(124, 194, 255, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.recipe-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Source Badge */
.source-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.source-badge-ai {
  background: rgba(147, 51, 234, 0.8);
  color: white;
}

.source-badge-custom {
  background: rgba(109, 211, 166, 0.8);
  color: white;
}

.source-badge-library {
  background: rgba(124, 194, 255, 0.8);
  color: white;
}

/* Macro Bar Styles */
.macro-bar-container {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.macro-bar-protein {
  background: linear-gradient(90deg, #6dd3a6, #4ade80);
}

.macro-bar-carbs {
  background: linear-gradient(90deg, #7cc2ff, #60a5fa);
}

.macro-bar-fat {
  background: linear-gradient(90deg, #ffcc6a, #fbbf24);
}

/* Recipe List Item */
.recipe-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(180deg, #151823, #121521);
  border: 1px solid #202537;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.recipe-list-item:hover {
  border-color: rgba(109, 211, 166, 0.4);
  background: rgba(109, 211, 166, 0.05);
}

.recipe-list-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(109, 211, 166, 0.1) 0%, rgba(124, 194, 255, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

/* Compact Table Styles */
#recipeCompactView tbody tr {
  transition: background-color 0.15s ease;
}

#recipeCompactView tbody tr:hover {
  background-color: rgba(109, 211, 166, 0.05);
}

/* Recipe Preview Panel */
#recipePreviewPanel {
  scrollbar-width: thin;
  scrollbar-color: #202537 #121521;
}

#recipePreviewPanel::-webkit-scrollbar {
  width: 8px;
}

#recipePreviewPanel::-webkit-scrollbar-track {
  background: #121521;
}

#recipePreviewPanel::-webkit-scrollbar-thumb {
  background: #202537;
  border-radius: 4px;
}

#recipePreviewPanel::-webkit-scrollbar-thumb:hover {
  background: #2a3147;
}

#recipePreviewPanel.open {
  transform: translateX(0);
}

/* Recipe Preview Image */
.preview-image-large {
  height: 200px;
  background: linear-gradient(135deg, rgba(109, 211, 166, 0.15) 0%, rgba(124, 194, 255, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.preview-image-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dietary Tags in Preview */
.dietary-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  color: #a5b0c2;
}

/* Active Filter Pills */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: rgba(109, 211, 166, 0.15);
  border: 1px solid rgba(109, 211, 166, 0.3);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: #6dd3a6;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  background: rgba(109, 211, 166, 0.25);
}

.filter-pill button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(109, 211, 166, 0.3);
  color: #6dd3a6;
  font-size: 10px;
  line-height: 1;
  transition: all 0.15s ease;
}

.filter-pill button:hover {
  background: rgba(239, 68, 68, 0.5);
  color: white;
}

/* Recipe Difficulty Badge */
.difficulty-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
}

.difficulty-easy {
  background: rgba(109, 211, 166, 0.15);
  color: #6dd3a6;
}

.difficulty-medium {
  background: rgba(255, 204, 106, 0.15);
  color: #ffcc6a;
}

.difficulty-hard {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* Recipe Card Action Button */
.recipe-card-action {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.recipe-card:hover .recipe-card-action {
  opacity: 1;
}

/* ========================================
   Phase 2: Enhanced Filtering Styles
   ======================================== */

/* Collapsible Filter Sections */
.filter-section-header {
  transition: all 0.15s ease;
}

.filter-section-header:hover span {
  color: #6dd3a6;
}

.filter-section-content {
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}

.filter-section-content.collapsed {
  max-height: 0;
  opacity: 0;
}

.filter-section-header svg.rotate-180 {
  transform: rotate(180deg);
}

/* Dual-Handle Range Slider */
.range-slider-container {
  position: relative;
  height: 20px;
  margin: 8px 0;
}

.range-slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: #202537;
  border-radius: 2px;
  transform: translateY(-50%);
}

.range-slider-range {
  position: absolute;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #6dd3a6, #7cc2ff);
  border-radius: 2px;
}

.range-slider-target {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 12px;
  background: #ffcc6a;
  transform: translateY(-50%);
  border-radius: 1px;
  display: none;
}

.range-slider-target.visible {
  display: block;
}

.range-slider-input {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  margin: 0;
}

.range-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #6dd3a6;
  border: 2px solid #121521;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}

.range-slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #8be0b8;
}

.range-slider-input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #6dd3a6;
  border: 2px solid #121521;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}

.range-slider-input::-moz-range-thumb:hover {
  transform: scale(1.15);
  background: #8be0b8;
}

/* Active Filter Pills */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: rgba(109, 211, 166, 0.15);
  border: 1px solid rgba(109, 211, 166, 0.3);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: #6dd3a6;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  background: rgba(109, 211, 166, 0.25);
  border-color: rgba(109, 211, 166, 0.5);
}

.filter-pill-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.15s ease;
  cursor: pointer;
}

.filter-pill-remove:hover {
  background: rgba(109, 211, 166, 0.3);
}

.filter-pill-remove svg {
  width: 10px;
  height: 10px;
}

/* Filter Pill Variants */
.filter-pill-client {
  background: rgba(124, 194, 255, 0.15);
  border-color: rgba(124, 194, 255, 0.3);
  color: #7cc2ff;
}

.filter-pill-client:hover {
  background: rgba(124, 194, 255, 0.25);
  border-color: rgba(124, 194, 255, 0.5);
}

.filter-pill-nutrition {
  background: rgba(255, 204, 106, 0.15);
  border-color: rgba(255, 204, 106, 0.3);
  color: #ffcc6a;
}

.filter-pill-nutrition:hover {
  background: rgba(255, 204, 106, 0.25);
  border-color: rgba(255, 204, 106, 0.5);
}

/* Recipe Fit Score */
.recipe-fit-score {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 600;
}

.fit-score-excellent {
  background: rgba(109, 211, 166, 0.2);
  color: #6dd3a6;
}

.fit-score-good {
  background: rgba(124, 194, 255, 0.2);
  color: #7cc2ff;
}

.fit-score-fair {
  background: rgba(255, 204, 106, 0.2);
  color: #ffcc6a;
}

.fit-score-poor {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Fit Score Bar */
.fit-score-bar {
  height: 3px;
  background: #202537;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.fit-score-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.fit-score-bar-fill.excellent {
  background: linear-gradient(90deg, #6dd3a6, #4eca92);
}

.fit-score-bar-fill.good {
  background: linear-gradient(90deg, #7cc2ff, #5aa8e8);
}

.fit-score-bar-fill.fair {
  background: linear-gradient(90deg, #ffcc6a, #e6b35c);
}

.fit-score-bar-fill.poor {
  background: linear-gradient(90deg, #f87171, #ef4444);
}

/* Client Macro Targets Display */
#clientMacroTargets {
  transition: all 0.2s ease;
}

/* Filter checkbox/radio custom styling */
.recipe-filter-checkbox,
.recipe-filter-radio {
  accent-color: #6dd3a6;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  #recipeFilterSidebar {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    padding: 1rem;
    background: rgba(15, 19, 32, 0.95);
    overflow-y: auto;
  }

  #recipeFilterSidebar .card {
    max-width: 320px;
    margin: 0 auto;
  }

  .meal-type-tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  .recipe-list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .recipe-list-thumbnail {
    width: 100%;
    height: 120px;
  }
}

