/* Kitchen Recipe Manager - Global Styles */
/* Swiss/Bauhaus-inspired minimalist design */

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

:root {
  --black: #000000;
  --white: #ffffff;
  --red: #ff0000;
  --gray-light: #f5f5f5;
  --gray-mid: #e0e0e0;
  --gray-dark: #666666;
  --success: #4CAF50;
  --warning: #FF9800;
  --error: #f44336;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  min-height: 100vh;
  line-height: 1.4;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px;
}

/* Header */
header {
  margin-bottom: 60px;
  border-bottom: 4px solid var(--black);
  padding-bottom: 20px;
}

header.sticky {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
}

h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -2px;
  text-transform: uppercase;
}

h1 span.accent {
  color: var(--red);
}

.subtitle {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-dark);
  margin-top: 8px;
}

/* Navigation */
nav {
  display: flex;
  gap: 24px;
  margin-top: 20px;
}

nav a {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--gray-dark);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

nav a:hover,
nav a.active {
  color: var(--black);
  border-bottom-color: var(--red);
}

/* User info in nav */
.nav-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-user .user-name {
  color: var(--gray-dark);
}

.nav-user #logoutBtn {
  color: var(--red);
  text-decoration: none;
  font-weight: 700;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.nav-user #logoutBtn:hover {
  border-bottom-color: var(--red);
}

/* Typography */
h2 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 24px;
  color: var(--gray-dark);
}

h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

p {
  margin-bottom: 16px;
}

.info-text {
  font-size: 12px;
  color: var(--gray-dark);
  margin-top: 12px;
  line-height: 1.6;
}

/* Sections */
section {
  margin-bottom: 60px;
}

/* Forms */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-family: inherit;
  border: 2px solid var(--black);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--red);
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin-right: 8px;
}

/* Buttons */
button,
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  text-align: center;
}

button:hover,
.btn:hover {
  background: var(--black);
  color: var(--white);
}

button.primary,
.btn.primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

button.primary:hover,
.btn.primary:hover {
  background: var(--black);
  border-color: var(--black);
}

button.small,
.btn.small {
  padding: 8px 12px;
  font-size: 10px;
}

button.large,
.btn.large {
  padding: 16px 32px;
  font-size: 14px;
}

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

/* Scale Mode Toggle */
.scale-mode-toggle {
  display: inline-flex;
  border: 2px solid #000;
}

.scale-mode-btn {
  padding: 6px 12px;
  background: #fff;
  border: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.scale-mode-btn:not(:last-child) {
  border-right: 2px solid #000;
}

.scale-mode-btn:hover:not(.active) {
  background: #f0f0f0;
}

.scale-mode-btn.active {
  background: #000;
  color: #fff;
}

/* Grids */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.converter-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 20px;
  align-items: end;
}

/* Cards */
.card {
  border: 2px solid var(--black);
  padding: 24px;
  background: var(--white);
  text-decoration: none;
  color: inherit;
}

.card:visited {
  color: inherit;
}

.card:hover {
  box-shadow: 4px 4px 0 var(--black);
}

.card-header {
  border-bottom: 2px solid var(--gray-mid);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
}

.card-meta {
  font-size: 12px;
  color: var(--gray-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Recipe Cards */
.recipe-card {
  border: 2px solid var(--black);
  transition: all 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.recipe-card:visited {
  color: inherit;
}

.recipe-card:hover {
  box-shadow: 4px 4px 0 var(--black);
  transform: translate(-2px, -2px);
}

.recipe-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid var(--black);
}

.recipe-card-image.placeholder {
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-dark);
  font-size: 48px;
}

.recipe-card-content {
  padding: 20px;
}

.recipe-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.recipe-card-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--gray-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Tags */
.tag {
  display: inline-block;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--gray-light);
  color: var(--black);
  margin-right: 4px;
  margin-bottom: 4px;
}

.tag.red {
  background: var(--red);
  color: var(--white);
}

/* Result Display */
.result-display {
  background: var(--black);
  color: var(--white);
  padding: 24px;
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-value {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
}

.result-unit {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-mid);
}

/* Lists */
.list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-mid);
}

.list-item:first-child {
  border-top: 1px solid var(--gray-mid);
}

.list-item-name {
  font-weight: 700;
  font-size: 16px;
}

.list-item-meta {
  font-size: 14px;
  color: var(--gray-dark);
  margin-top: 4px;
}

.list-item-actions {
  display: flex;
  gap: 8px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 40px;
  color: var(--gray-dark);
  border: 2px dashed var(--gray-mid);
}

.empty-state p {
  font-size: 14px;
}

/* Arrow */
.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  padding-bottom: 8px;
}

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--black);
  border: 2px solid var(--black);
}

.stat {
  background: var(--white);
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-dark);
  margin-top: 4px;
}

/* Time Display */
.time-display {
  display: flex;
  gap: 24px;
}

.time-item {
  text-align: center;
}

.time-value {
  font-size: 24px;
  font-weight: 700;
}

.time-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-dark);
}

/* Steps */
.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-mid);
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.step-content h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.step-instruction {
  font-size: 16px;
  line-height: 1.6;
}

.step-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--gray-dark);
}

/* Ingredients List */
.ingredients-list {
  list-style: none;
}

.ingredient-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-light);
}

.ingredient-amount {
  font-weight: 700;
  min-width: 80px;
}

.ingredient-name {
  flex: 1;
}

.ingredient-prep {
  color: var(--gray-dark);
  font-style: italic;
}

/* Difficulty */
.difficulty {
  display: flex;
  gap: 4px;
}

.difficulty-dot {
  width: 8px;
  height: 8px;
  background: var(--gray-mid);
  border-radius: 50%;
}

.difficulty-dot.filled {
  background: var(--black);
}

/* Nutrition */
.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.nutrition-item {
  text-align: center;
  padding: 16px;
  background: var(--gray-light);
}

.nutrition-value {
  font-size: 24px;
  font-weight: 700;
}

.nutrition-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-dark);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid var(--black);
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-mid);
}

th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--gray-light);
}

tr:hover {
  background: var(--gray-light);
}

/* Modal */
.modal-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;
}

.modal {
  background: var(--white);
  border: 2px solid var(--black);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 24px;
  border-bottom: 2px solid var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 24px;
  border-top: 2px solid var(--gray-mid);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Alerts */
.alert {
  padding: 16px 20px;
  border: 2px solid var(--black);
  margin-bottom: 24px;
}

.alert.success {
  background: #E8F5E9;
  border-color: var(--success);
}

.alert.warning {
  background: #FFF3E0;
  border-color: var(--warning);
}

.alert.error {
  background: #FFEBEE;
  border-color: var(--error);
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-mid);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nutrition-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Navigation wrap on tablets */
  nav {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  /* Flex-between becomes stacked on smaller screens when needed */
  .flex-between {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .container,
  .container-narrow {
    padding: 16px;
  }

  h1 {
    font-size: 28px;
    letter-spacing: -1px;
  }

  h3 {
    font-size: 20px;
  }

  header {
    margin-bottom: 40px;
  }

  section {
    margin-bottom: 40px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .converter-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .arrow {
    transform: rotate(90deg);
    padding: 0;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Navigation as scrollable horizontal on mobile */
  nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 8px;
    margin: 16px -16px 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .nav-user {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
    order: 999;
    margin-top: 8px;
  }

  .time-display {
    flex-wrap: wrap;
    gap: 16px;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  /* Result display stacked on mobile */
  .result-display {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .result-value {
    font-size: 28px;
  }

  /* Flex utilities responsive */
  .flex-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .flex-between > * {
    width: 100%;
  }

  /* Buttons more touch-friendly */
  button,
  .btn {
    padding: 14px 20px;
    min-height: 44px;
  }

  button.small,
  .btn.small {
    padding: 10px 12px;
    min-height: 36px;
  }

  /* Forms more touch-friendly */
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="url"],
  textarea,
  select {
    padding: 14px;
    font-size: 16px; /* Prevents iOS zoom */
  }

  /* Modal full width on mobile */
  .modal {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border: none;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 16px;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-footer button,
  .modal-footer .btn {
    width: 100%;
  }

  /* List items on mobile */
  .list-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .list-item-actions {
    width: 100%;
    justify-content: flex-start;
  }

  /* Nutrition grid tighter */
  .nutrition-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .nutrition-item {
    padding: 12px 8px;
  }

  .nutrition-value {
    font-size: 18px;
  }

  /* Stat grid tighter */
  .stat {
    padding: 12px;
  }

  .stat-value {
    font-size: 24px;
  }

  /* Recipe cards */
  .recipe-card-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Ingredient items */
  .ingredient-item {
    flex-wrap: wrap;
  }

  .ingredient-amount {
    min-width: 60px;
  }

  /* Calendar responsive */
  .week-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .week-label {
    min-width: 100%;
    order: -1;
    margin-bottom: 8px;
  }

  /* Cards tighter padding */
  .card {
    padding: 16px;
  }

  /* Empty state */
  .empty-state {
    padding: 40px 20px;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .container,
  .container-narrow {
    padding: 12px;
  }

  h1 {
    font-size: 24px;
  }

  nav {
    margin: 12px -12px 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .stat-label {
    margin-top: 0;
  }
}

/* Responsive tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
  table {
    min-width: 500px;
  }
}

/* Print */
@media print {
  header nav,
  button,
  .btn,
  .modal-overlay {
    display: none;
  }

  .container {
    max-width: 100%;
    padding: 20px;
  }

  .recipe-card {
    break-inside: avoid;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden {
  display: none;
}

.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* Meal Planner Calendar */
.week-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.week-label {
  font-size: 18px;
  font-weight: 700;
  min-width: 200px;
  text-align: center;
}

.calendar-container {
  overflow-x: auto;
}

.calendar-grid {
  display: grid;
  grid-template-columns: 100px repeat(7, 1fr);
  gap: 2px;
  background: var(--black);
  border: 2px solid var(--black);
  min-width: 800px;
}

.calendar-header {
  background: var(--gray-light);
  padding: 12px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.calendar-label {
  background: var(--white);
  padding: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: flex-start;
  color: var(--gray-dark);
}

.calendar-cell {
  background: var(--white);
  padding: 8px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.add-meal-btn {
  width: 100%;
  padding: 4px 8px;
  font-size: 18px;
  font-weight: 700;
  border: 1px dashed var(--gray-mid);
  background: transparent;
  color: var(--gray-dark);
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: auto;
}

.add-meal-btn:hover {
  border-color: var(--black);
  color: var(--black);
  background: var(--gray-light);
}

.meal-item {
  background: var(--gray-light);
  padding: 8px;
  border-left: 3px solid var(--black);
  font-size: 12px;
}

.meal-item.prepared {
  border-left-color: var(--success);
  opacity: 0.7;
}

.meal-title {
  font-weight: 700;
  margin-bottom: 2px;
  word-break: break-word;
}

.meal-meta {
  font-size: 10px;
  color: var(--gray-dark);
}

.meal-actions {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.meal-actions button {
  padding: 2px 6px;
  font-size: 12px;
  background: transparent;
  border: 1px solid var(--gray-mid);
  cursor: pointer;
}

.meal-actions button:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Recipe Search */
.recipe-results {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--gray-mid);
}

.recipe-result-item {
  padding: 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recipe-result-item:hover {
  background: var(--gray-light);
}

.recipe-result-item .meta {
  font-size: 12px;
  color: var(--gray-dark);
}

.selected-recipe-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--gray-light);
  border: 2px solid var(--black);
}

.selected-recipe-item button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 0 8px;
}

/* Grocery List */
.grocery-list {
  list-style: none;
}

.grocery-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.grocery-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.grocery-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.grocery-item input[type="checkbox"]:checked + .grocery-amount,
.grocery-item input[type="checkbox"]:checked + .grocery-amount + .grocery-name {
  text-decoration: line-through;
  opacity: 0.5;
}

.grocery-amount {
  font-weight: 700;
  min-width: 80px;
}

.grocery-recipes {
  font-size: 11px;
  color: var(--gray-dark);
  text-align: right;
}

/* Templates */
.template-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--gray-mid);
  margin-bottom: 8px;
}

.template-info {
  flex: 1;
}

.template-actions {
  display: flex;
  gap: 8px;
}

/* Nutrition Summary */
.nutrition-summary {
  background: var(--gray-light);
  padding: 16px;
}

/* Print styles for grocery list */
@media print {
  .grocery-item input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--black);
    margin-right: 8px;
  }
}
