@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --font-size: 16px;
  --primary: oklch(0.55 0.18 30);
  --primary-foreground: #ffffff;
  --accent: oklch(0.96 0.02 50);
  --accent-foreground: oklch(0.15 0 0);
  --background: oklch(0.98 0.02 50);
  --foreground: oklch(0.15 0 0);
  --card: #ffffff;
  --card-foreground: oklch(0.15 0 0);
  --muted: oklch(0.92 0.02 50);
  --muted-foreground: oklch(0.55 0 0);
  --destructive: oklch(0.5 0.18 25);
  --destructive-foreground: #ffffff;
  --border: oklch(0.88 0.02 50);
  --input-bg: oklch(0.96 0.02 50);
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-md: 14px;
  --radius-lg: 18px;
}

.dark {
  --background: oklch(0.16 0 0);
  --foreground: oklch(0.97 0 0);
  --card: oklch(0.21 0 0);
  --card-foreground: oklch(0.97 0 0);
  --muted: oklch(0.27 0 0);
  --muted-foreground: oklch(0.78 0 0);
  --primary: oklch(0.68 0.18 30);
  --accent: oklch(0.26 0 0);
  --accent-foreground: oklch(0.97 0 0);
  --border: oklch(0.35 0 0);
  --input-bg: oklch(0.24 0 0);
}

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

html {
  font-size: var(--font-size);
  font-family: 'Outfit', sans-serif;
}

body {
  background: var(--background);
  background-image: radial-gradient(circle at top left, oklch(0.98 0.05 50), transparent 40%),
              radial-gradient(circle at bottom right, oklch(0.96 0.05 50), transparent 40%);
  color: var(--foreground);
  min-height: 100vh;
  transition: background-color 0.3s, color 0.3s;
}

.dark body {
  background-image: radial-gradient(circle at top left, oklch(0.15 0 0), transparent 40%),
              radial-gradient(circle at bottom right, oklch(0.1 0 0), transparent 40%);
}

.hidden {
  display: none !important;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-container {
  background: var(--card);
  padding: 2rem 2.5rem;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06), 0 2px 12px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 380px;
}

.app-icon {
  width: 300px;
  height: auto;
  background: transparent;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.app-icon img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.login-container h1 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--card-foreground);
}

.login-subtitle {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: var(--font-weight-medium);
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

.form-group input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background: var(--input-bg);
  color: var(--foreground);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
  color: var(--muted-foreground);
  opacity: 0.7;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.55 0.18 30 / 0.2);
}

.form-group small {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  display: block;
  margin-top: 0.35rem;
}

button {
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

#login-form button, #register-form button {
  width: 100%;
  background: var(--primary);
  color: var(--primary-foreground);
  margin-top: 0.5rem;
}

#login-form button:hover, #register-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.35);
}

.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider span {
  padding: 0 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.8rem;
}

.switch-link {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.switch-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.switch-link a:hover {
  text-decoration: underline;
}

.error {
  color: var(--destructive-foreground);
  background: var(--destructive);
  text-align: center;
  margin-top: 0.75rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.success {
  color: #16a34a;
  text-align: center;
  margin-top: 0.75rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: #dcfce7;
}

.dark .success {
  background: oklch(0.3 0.15 145);
}

/* Main App */
#main-page {
  display: block;
  width: 100%;
  padding: 0;
  min-height: 100vh;
}

/* Top Banner - Fixed */
.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3%;
  gap: 0.75rem;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.banner-logo-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  cursor: default;
}

.logo-change-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  border-radius: 6px;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.18s;
  cursor: pointer;
}

.banner-logo-wrap:hover .logo-change-overlay:not(.hidden) {
  opacity: 1;
}

.current-tab {
  display: none;
}

.banner-center {
  display: none !important;
}


.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--foreground);
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.hamburger-btn:hover { opacity: 0.7; }

/* Dropdown nav (hamburger) */
.mobile-nav-open .banner-center {
  display: flex !important;
  position: fixed;
  top: 66px;
  left: 0.75rem;
  z-index: 9998;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem;
  gap: 0.2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
  width: auto;
  min-width: 190px;
  animation: mobileNavIn 0.18s ease;
}

@keyframes mobileNavIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.mobile-nav-open .banner-center .nav-btn {
  display: flex;
  align-items: center;
  width: 100%;
  height: 34px;
  font-size: 0.9rem;
  border-radius: 4px;
  text-align: left;
  padding: 0 1rem;
  white-space: nowrap;
  color: var(--foreground);
  background: transparent;
  flex: none;
}

.mobile-nav-open .banner-center .nav-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Paramètres accessibles depuis le menu hamburger uniquement */
.mobile-settings-btn { display: flex !important; }
.mobile-settings-btn {
  border-top: 1px solid var(--border) !important;
  margin-top: 0.25rem !important;
  padding-top: 0 !important;
  color: var(--muted-foreground) !important;
}
#settings-btn { display: none !important; }

.banner-logo-clickable { cursor: pointer; }

.banner-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.content-area {
  margin-top: 80px;
  padding: 1.25rem 3%;
  position: relative;
  z-index: 10;
}

.user-name {
  color: var(--muted-foreground);
  font-size: 0.85rem;
  white-space: nowrap;
}

.theme-toggle {
  background: var(--accent);
  color: var(--foreground);
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--border);
}

#logout-btn,
#logout-btn-admin {
  background: var(--destructive);
  color: var(--destructive-foreground);
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

#logout-btn:hover,
#logout-btn-admin:hover { opacity: 0.9; }

.nav-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  color: var(--muted-foreground);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  min-width: 100px;
  font-size: 0.9rem;
}

.nav-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.nav-btn:hover:not(.active) {
  background: var(--accent);
}

.nav-content {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  display: none;
  border: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.nav-content.active {
  display: block;
}

.nav-content h2 {
  margin-bottom: 1.25rem;
  color: var(--foreground);
  font-size: 1.15rem;
  font-weight: 600;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* Recipes */
.recipes-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

#recipe-search {
  flex: 1;
  min-width: 180px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--foreground);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#recipe-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.55 0.18 30 / 0.15);
}

#recipes-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Breadcrumb */
#recipes-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.breadcrumb-back {
  background: var(--accent);
  color: var(--foreground);
  border: 1px solid var(--border);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.15s;
}

.breadcrumb-back:hover {
  background: var(--muted);
}

.breadcrumb-sep {
  color: var(--muted-foreground);
}

.breadcrumb-current {
  font-weight: 600;
  color: var(--foreground);
}

/* Category card grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.1rem;
}

.category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-align: left;
  width: 100%;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  min-height: 110px;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.category-card-stripe {
  height: 5px;
  background: linear-gradient(to right, var(--primary), oklch(0.7 0.15 50));
  flex-shrink: 0;
}

.category-card-body {
  padding: 1.25rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  justify-content: center;
}

.category-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--foreground);
}

.category-card-count {
  font-size: 0.78rem;
  color: var(--muted-foreground);
  font-weight: 400;
}

/* Recipe search results grouped by category */
.recipe-category-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recipe-category-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.recipe-category-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
}

.recipe-category-count {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
}

.recipe-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}

.recipe-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-align: left;
  width: 100%;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  outline: none;
}
.recipe-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.recipe-card-stripe {
  height: 5px;
  background: linear-gradient(to right, var(--primary), oklch(0.7 0.15 50));
  flex-shrink: 0;
}

.recipe-card-body {
  padding: 1.35rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.recipe-card-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.35;
  margin: 0;
}

.recipe-card-count {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: oklch(0.45 0.18 30);
  background: oklch(0.96 0.05 50);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  align-self: flex-start;
}

.dark .recipe-card-count {
  background: oklch(0.25 0.06 30);
  color: oklch(0.75 0.12 40);
}

.recipe-card-preview {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}

/* Add Recipe Form */
#add-recipe-btn {
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0;
  white-space: nowrap;
}

.form-section {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-section h3 {
  margin-bottom: 1rem;
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 600;
}

.form-section input[type="text"],
.form-section textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background: var(--input-bg);
  color: var(--foreground);
  margin-bottom: 0.75rem;
  font-family: inherit;
}

.form-section textarea {
  font-family: monospace;
  resize: vertical;
}

.form-section input:focus,
.form-section textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.55 0.18 30 / 0.2);
}

.help-text {
  color: var(--muted-foreground);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.help-text input[type="file"] {
  margin-left: 0.5rem;
}

/* Shopping List */
.shopping-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

#add-item-form {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  min-width: 220px;
}

#add-item-form input {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex: 1;
  min-width: 70px;
  background: var(--input-bg);
  color: var(--foreground);
}

#add-item-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.55 0.18 30 / 0.2);
}

#add-item-form button {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.shopping-actions > .danger-btn {
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.danger-btn {
  background: var(--destructive);
  color: var(--destructive-foreground);
}

.danger-btn:hover {
  opacity: 0.9;
}

.warning-btn {
  background: #f59e0b;
  color: white;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.warning-btn:hover { opacity: 0.9; }

.warning-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.success-btn {
  background: var(--primary);
  color: var(--primary-foreground);
}

.success-btn:hover { opacity: 0.9; }

.primary-btn {
  background: var(--primary);
  color: var(--primary-foreground);
}

.primary-btn:hover { opacity: 0.9; }

#shopping-list {
  list-style: none;
}

#shopping-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

#shopping-list li:hover {
  background: var(--accent);
}

#shopping-list li.checked {
  opacity: 0.5;
}

#shopping-list li.checked .item-info {
  text-decoration: line-through;
}

#shopping-list input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

#shopping-list .item-info {
  flex: 1;
}

#shopping-list .item-quantity {
  color: var(--muted-foreground);
  font-size: 0.8rem;
}

.delete-item {
  background: transparent;
  color: var(--destructive);
  padding: 0.35rem 0.65rem;
  font-size: 1.1rem;
}

.delete-item:hover {
  background: var(--destructive);
  color: var(--destructive-foreground);
}

/* Admin */
.admin-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--accent);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.admin-tab {
  flex: 1;
  background: transparent;
  color: var(--muted-foreground);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  font-size: 0.85rem;
  font-weight: 500;
}

.admin-tab:hover {
  background: var(--muted);
}

.admin-tab.active {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.admin-section h3 {
  color: var(--foreground);
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.inline-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.inline-form input, .inline-form select {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--foreground);
  flex: 1;
  min-width: 120px;
}

.inline-form input[type="number"] {
  min-width: 120px;
}

.inline-form input::placeholder {
  color: var(--muted-foreground);
  opacity: 0.7;
}

.inline-form input:focus, .inline-form select:focus {
  outline: none;
  border-color: var(--primary);
}

.inline-form button {
  white-space: nowrap;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
}

#users-list, #pending-list, #blocked-users-list {
  list-style: none;
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

#users-list li, #pending-list li, #blocked-users-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

#users-list li:last-child, #pending-list li:last-child, #blocked-users-list li:last-child {
  border-bottom: none;
}

#users-list li:hover, #pending-list li:hover, #blocked-users-list li:hover {
  background: var(--accent);
}

.blocked-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.blocked-user-info strong {
  color: var(--foreground);
  font-size: 0.95rem;
}

.blocked-reason {
  color: var(--muted-foreground);
  font-size: 0.8rem;
}

.blocked-timer {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 500;
}

.blocked-auto-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: oklch(0.5 0.18 25);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  align-self: flex-start;
}

#users-list:empty::after, #pending-list:empty::after, #blocked-users-list:empty::after {
  content: 'Aucun élément';
  display: block;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted-foreground);
  font-style: italic;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-actions select {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--foreground);
  font-size: 0.8rem;
  cursor: pointer;
}

.user-actions .danger-btn {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.pending-actions, .blocked-actions {
  display: flex;
  gap: 0.4rem;
}

.validate-btn {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.reject-btn, .unblock-btn {
  background: var(--destructive);
  color: var(--destructive-foreground);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.logs-toolbar {
  margin-bottom: 1rem;
}

.refresh-btn {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tr:hover {
  background: var(--accent);
}

.success-badge {
  color: #16a34a;
  font-weight: 600;
  background: oklch(0.85 0.15 145);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  display: inline-block;
}

.fail-badge {
  color: var(--destructive-foreground);
  font-weight: 600;
  background: var(--destructive);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  display: inline-block;
}

/* Modal */
.modal {
  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: 10000;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--card);
  color: var(--card-foreground);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.25s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.close-modal {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--muted-foreground);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.close-modal:hover {
  background: var(--accent);
  color: var(--foreground);
}

/* Recipe Detail Layout */
.recipe-detail-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.recipe-detail-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.recipe-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.recipe-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.ing-badge {
  background: oklch(0.95 0.06 50);
  color: oklch(0.45 0.18 30);
}

.dark .ing-badge {
  background: oklch(0.25 0.07 30);
  color: oklch(0.75 0.12 40);
}

.timer-badge {
  background: oklch(0.95 0.05 240);
  color: oklch(0.4 0.15 250);
}

.dark .timer-badge {
  background: oklch(0.25 0.07 250);
  color: oklch(0.75 0.1 250);
}

.tool-badge {
  background: oklch(0.95 0.06 145);
  color: oklch(0.4 0.15 145);
}

.dark .tool-badge {
  background: oklch(0.25 0.07 145);
  color: oklch(0.7 0.1 145);
}

.recipe-detail-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.recipe-ings-panel h3,
.recipe-steps-panel h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.ing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.ing-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.ing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.ing-name {
  font-weight: 500;
  color: var(--foreground);
  flex: 1;
}

.ing-qty {
  color: var(--muted-foreground);
  font-size: 0.78rem;
  white-space: nowrap;
}

.tools-section,
.timers-section {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.tools-section h4,
.timers-section h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.tools-tags,
.timers-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tool-tag {
  background: oklch(0.95 0.06 145);
  color: oklch(0.4 0.15 145);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 500;
}

.dark .tool-tag {
  background: oklch(0.25 0.07 145);
  color: oklch(0.7 0.1 145);
}

.timer-tag {
  background: oklch(0.95 0.05 240);
  color: oklch(0.4 0.15 250);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 500;
}

.dark .timer-tag {
  background: oklch(0.25 0.07 250);
  color: oklch(0.75 0.1 250);
}

/* Steps */
.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.step-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.steps-list .step-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.step-body {
  flex: 1;
}

.step-text {
  font-size: 0.9rem;
  color: var(--foreground);
  line-height: 1.6;
}

.ing-highlight {
  color: var(--primary);
  font-weight: 600;
  background: oklch(0.97 0.04 50);
  border-radius: 4px;
  padding: 0 2px;
}

.dark .ing-highlight {
  background: oklch(0.22 0.06 30);
}

.tool-highlight {
  color: #d97706;
  font-weight: 600;
  background: oklch(0.93 0.08 45);
  border-radius: 4px;
  padding: 0 2px;
}

.dark .tool-highlight {
  background: oklch(0.25 0.12 45);
}

.timer-highlight {
  color: #059669;
  font-weight: 600;
  background: oklch(0.93 0.08 150);
  border-radius: 4px;
  padding: 0 2px;
}

.dark .timer-highlight {
  background: oklch(0.25 0.12 150);
}

.step-ings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.step-ing-badge {
  font-size: 0.7rem;
  font-weight: 500;
  background: oklch(0.95 0.06 50);
  color: oklch(0.45 0.18 30);
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid oklch(0.88 0.07 50);
}

.dark .step-ing-badge {
  background: oklch(0.25 0.07 30);
  color: oklch(0.75 0.12 40);
  border-color: oklch(0.35 0.08 30);
}

.step-tool-badge {
  font-size: 0.7rem;
  font-weight: 500;
  background: oklch(0.93 0.1 45);
  color: #92400e;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid oklch(0.88 0.1 45);
}

.dark .step-tool-badge {
  background: oklch(0.28 0.1 45);
  color: #fcd34d;
  border-color: oklch(0.38 0.12 45);
}

.recipe-actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.recipe-actions button {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

/* Recipe detail responsive */
@media (max-width: 600px) {
  .recipe-detail-body {
    grid-template-columns: 1fr;
  }
  .modal-content {
    padding: 1.25rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .top-banner {
    height: 56px;
    flex-wrap: nowrap;
    padding: 0 4%;
    position: relative;
  }

  .banner-left {
    flex: 1;
    gap: 0;
  }

  .banner-logo-wrap img {
    height: 38px !important;
  }

  .banner-right {
    flex: 1;
    justify-content: flex-end;
    gap: 0.3rem;
    flex-shrink: 0;
  }

  .user-name { display: none; }

  .theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  #logout-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.72rem;
  }

  .content-area {
    margin-top: 80px;
    padding: 1rem 4%;
  }

  /* Reste du responsive */
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .shopping-actions {
    flex-direction: column;
  }

  #add-item-form {
    width: 100%;
    flex-wrap: wrap;
  }
  #add-item-form #new-item {
    flex: 1 1 100%;
  }

  .admin-tabs {
    overflow-x: auto;
  }

  .admin-tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .inline-form {
    flex-direction: column;
  }

  .inline-form input, .inline-form select, .inline-form button {
    width: 100%;
  }

  #users-list li, #pending-list li, #blocked-users-list li {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .user-actions {
    width: 100%;
    justify-content: flex-end;
  }

  th, td {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
}


/* Settings Modal */
.modal-content-sm {
  max-width: 480px;
}

.settings-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.settings-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--foreground);
  padding-right: 1.5rem;
}

.settings-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--accent);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.settings-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.settings-username {
  font-weight: 600;
  font-size: 1rem;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.settings-role-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--primary);
  color: var(--primary-foreground);
}

.settings-section {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.settings-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Autocomplete */
.autocomplete-wrap {
  position: relative;
  flex: 1;
  min-width: 120px;
}

.autocomplete-wrap input {
  width: 100%;
}

.autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  list-style: none;
  z-index: 200;
  max-height: 180px;
  overflow-y: auto;
  padding: 0.25rem 0;
}

.autocomplete-item {
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  color: var(--foreground);
  cursor: pointer;
  transition: background 0.12s;
}

.autocomplete-item:hover {
  background: var(--accent);
  color: var(--primary);
}

/* Password success animation */
.pw-success-anim {
  display: flex;
  justify-content: center;
  margin: 1.25rem 0 0.5rem;
}

.pw-checkmark {
  width: 56px;
  height: 56px;
}

.pw-checkmark-circle {
  stroke: #16a34a;
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-linecap: round;
  animation: pw-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.pw-checkmark-check {
  stroke: #16a34a;
  stroke-width: 3;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: pw-check 0.4s 0.5s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes pw-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes pw-check {
  to { stroke-dashoffset: 0; }
}

.pw-success-text {
  text-align: center;
  color: #16a34a;
  font-weight: 600;
  font-size: 0.95rem;
  animation: pw-fade-up 0.4s 0.5s both;
}

@keyframes pw-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Settings logout */
.settings-logout-section {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

#logout-btn.settings-logout-btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.9rem;
}

/* Recipe Edit Form */
.recipe-edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recipe-edit-form h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--foreground);
}

.recipe-edit-filename {
  font-size: 0.82rem;
  color: var(--muted-foreground);
  font-family: monospace;
}

#edit-recipe-content {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-family: monospace;
  background: var(--input-bg);
  color: var(--foreground);
  resize: vertical;
  min-height: 280px;
  line-height: 1.6;
}

#edit-recipe-content:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.55 0.18 30 / 0.2);
}

.recipe-edit-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.edit-recipe-btn {
  background: var(--accent);
  color: var(--accent-foreground);
  border: 1px solid var(--border);
}

.edit-recipe-btn:hover {
  background: var(--muted);
}

@media (max-width: 480px) {
  .login-container {
    padding: 1.5rem 1.75rem;
  }

  .app-icon {
    width: 48px;
    height: 48px;
  }

  .login-container h1 {
    font-size: 1.35rem;
  }
}

/* Recipe author */
.recipe-card-author {
  font-size: 0.72rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.recipe-detail-author {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.recipe-servings-ctrl {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.servings-label {
  font-size: 0.85rem;
  color: var(--muted-foreground);
}
.servings-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: border-color 0.15s, background 0.15s;
}
.servings-btn:hover { border-color: var(--primary); background: var(--muted); }
.servings-count {
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 1.5rem;
  text-align: center;
}

/* Secondary button (admin actions) */
.secondary-btn {
  background: var(--muted);
  color: var(--foreground);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.secondary-btn:hover { opacity: 0.8; }

/* Settings hint text */
.settings-hint {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}
/* ============ MENU SEMAINE ============ */

.menu-planner {
  display: flex;
  gap: 1rem;
  min-height: calc(100vh - 90px);
  overflow: visible;
}

.menu-sidebar {
  width: 230px;
  min-width: 200px;
  max-height: calc(100vh - 90px);
  position: sticky;
  top: 70px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-right: 1px solid var(--border);
  padding-right: 1rem;
  overflow: hidden;
}

.menu-sidebar-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.menu-sidebar input[type="search"] {
  width: 100%;
  padding: 0.4rem 0.6rem;
  font-size: 0.82rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--foreground);
}

.menu-recipes-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.menu-recipe-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: grab;
  font-size: 0.82rem;
  user-select: none;
  transition: border-color 0.15s, background 0.15s;
}

.menu-recipe-item:hover { border-color: var(--primary); background: var(--muted); }
.menu-recipe-item.dragging { opacity: 0.4; cursor: grabbing; }

.menu-recipe-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-drag-icon {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  letter-spacing: -2px;
  flex-shrink: 0;
}

.menu-add-btn {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}
.menu-add-btn:hover { opacity: 0.88; }
.menu-add-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.menu-clear-btn {
  background: transparent;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.menu-clear-btn:hover { color: var(--destructive); border-color: var(--destructive); }

.menu-empty-hint {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  padding: 0.5rem 0;
  text-align: center;
}

.menu-category-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  padding: 0.4rem 0 0.15rem;
  border-top: 1px solid var(--border);
  margin-top: 0.2rem;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s;
}
.menu-category-label:hover { color: var(--foreground); }
.menu-category-label:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.menu-cat-arrow {
  font-size: 0.6rem;
  flex-shrink: 0;
  transition: transform 0.15s;
}

/* Days grid */
.menu-days-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  min-width: 0;
}

.menu-day-group {
  display: grid;
  gap: 0.35rem;
}


.menu-day-header {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.3rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.menu-meal-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.25rem 0.5rem;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.menu-drop-zone {
  flex: 1;
  min-height: 40px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-content: flex-start;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}

.menu-drop-zone.drag-over {
  border-color: var(--primary);
  background: oklch(from var(--primary) l c h / 0.07);
}

.menu-drop-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  color: var(--muted-foreground);
  pointer-events: none;
  opacity: 0.5;
  white-space: nowrap;
}

.menu-drop-zone:not(.empty) .menu-drop-hint { display: none; }

/* Recipe chips */
.menu-chip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.4rem 0.3rem 0.55rem;
  font-size: 0.78rem;
  cursor: grab;
  transition: border-color 0.15s;
}

.menu-chip:hover { border-color: var(--primary); }
.menu-chip.dragging { opacity: 0.4; cursor: grabbing; }

.menu-chip-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.menu-chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  font-size: 0.68rem;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.6;
  transition: color 0.12s, opacity 0.12s;
}
.menu-chip-remove:hover { color: var(--destructive); opacity: 1; }

@media (max-width: 768px) {
  .menu-planner { flex-direction: column; }
  .menu-sidebar { width: 100%; max-height: none; position: static; border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 1rem; }
  .menu-drop-zone { min-height: 48px; }
}

/* Help Modal Styles */
.help-modal .help-content {
  max-height: 70vh;
  overflow-y: auto;
  padding: 1.5rem;
}

.help-modal h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.help-section {
  margin-bottom: 1.75rem;
}

.help-section h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.help-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--foreground);
}

.help-section ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.help-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: var(--foreground);
}

.help-section pre {
  background: var(--muted);
  padding: 1rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1rem 0;
}

.help-section code {
  font-family: 'Courier New', monospace;
  background: var(--input-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9rem;
}
