/**
 * Main SCSS file - imports all component stylesheets
 * CSS is automatically compiled when SCSS files are changed
 */
@import url("https://fonts.googleapis.com/css2?family=Scope+One&family=Nunito:wght@400;500;600;700&display=swap");
/**
 * SCSS Variables
 * Shared across all stylesheets
 */
/**
 * Miscellaneous styles (navigation, auth, etc.)
 */
/**
 * SCSS Variables
 * Shared across all stylesheets
 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Nunito", sans-serif;
  background: #f5f5f5;
  color: #212121;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Scope One", serif;
  font-weight: 400;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary:active,
.btn-secondary:active,
.btn-danger:active {
  transform: scale(0.98);
}
.btn-primary.btn-tiny,
.btn-secondary.btn-tiny,
.btn-danger.btn-tiny {
  padding: 3px;
  border-radius: 2px;
  font-size: 14px;
}

.btn-primary {
  background: #4CAF50;
  color: white;
}
.btn-primary:hover {
  background: #45a049;
}

.btn-secondary {
  background: transparent;
  color: #757575;
  border: 1px solid #e0e0e0;
}
.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
}

.btn-danger {
  background: #f44336;
  color: white;
}
.btn-danger:hover {
  background: rgb(246.6462264151, 112.2264150943, 102.3537735849);
}

.auth-container {
  max-width: 400px;
  margin: 60px auto;
  padding: 0 20px;
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}
.auth-header .logo {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  border-radius: 16px;
}
.auth-header h1 {
  font-size: 32px;
  margin-bottom: 8px;
}
.auth-header .tagline {
  color: #757575;
  font-size: 16px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: #ffffff;
  padding: 4px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-button {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  border-radius: calc(8px - 4px);
  font-size: 16px;
  font-weight: 500;
  color: #757575;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tab-button.active {
  background: #4CAF50;
  color: white;
}
.tab-button:not(.active):hover {
  background: rgba(0, 0, 0, 0.05);
}

.auth-forms {
  position: relative;
}

.auth-form {
  display: none;
  background: #ffffff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.auth-form.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #212121;
}
.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=password],
.form-group input[type=number],
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease;
}
.form-group input[type=text]:focus,
.form-group input[type=email]:focus,
.form-group input[type=password]:focus,
.form-group input[type=number]:focus,
.form-group select:focus {
  outline: none;
  border-color: #4CAF50;
}
.form-group input[type=checkbox] {
  width: auto;
  margin-right: 8px;
  cursor: pointer;
}
.form-group label:has(input[type=checkbox]) {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.form-group small {
  display: block;
  margin-top: 4px;
  color: #757575;
  font-size: 14px;
}

.password-group .password-input-wrapper {
  position: relative;
  display: block;
}
.password-group .password-input-wrapper input {
  padding-right: 48px;
}
.password-group .password-input-wrapper .password-toggle {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  background: transparent;
  border: none;
  padding: 0 12px;
  cursor: pointer;
  font-size: 20px;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.password-group .password-input-wrapper .password-toggle:hover {
  opacity: 0.8;
}
.password-group .password-input-wrapper .password-toggle:active {
  opacity: 1;
}
.password-group .password-input-wrapper .password-toggle .toggle-icon {
  display: block;
  line-height: 1;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.password-strength {
  margin-top: 8px;
}
.password-strength .strength-bar {
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}
.password-strength .strength-bar .strength-fill {
  height: 100%;
  width: 0%;
  background: #e0e0e0;
  transition: all 0.3s ease;
}
.password-strength .strength-text {
  display: block;
  font-size: 14px;
  color: #757575;
  transition: color 0.3s ease;
}

.auth-form button[type=submit] {
  width: 100%;
  margin-top: 8px;
}

.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;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: #ffffff;
  padding: 0;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
  display: flex;
  flex-direction: column;
}
.modal.modal-wide {
  max-width: 900px;
}
.modal.modal-full {
  max-width: calc(100% - 60px);
}
.modal h2 {
  padding: 24px 32px 16px;
  margin: 0;
  font-size: 24px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.modal > div:not(.modal-buttons) {
  padding: 24px 32px;
  overflow-y: auto;
  flex: 1;
}
.modal > div:not(.modal-buttons) p {
  margin-bottom: 16px;
  color: #757575;
}
.modal .modal-buttons {
  padding: 16px 32px;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}
.loading-overlay p {
  color: white;
  margin-top: 16px;
  font-size: 16px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: #ffffff;
  padding: 16px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.app-header h1 {
  font-size: 24px;
  margin: 0;
}
.app-header .main-nav {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: center;
}
.app-header .main-nav .nav-item {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #757575;
  cursor: pointer;
  transition: all 0.2s ease;
}
.app-header .main-nav .nav-item.active {
  background: #4CAF50;
  color: white;
}
.app-header .main-nav .nav-item:not(.active):hover {
  background: rgba(0, 0, 0, 0.05);
  color: #212121;
}
.app-header .user-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}
.app-header .user-menu span {
  color: #757575;
  white-space: nowrap;
}
.app-header .user-menu .user-email-link {
  background: none;
  border: none;
  color: #757575;
  white-space: nowrap;
  transition: color 0.2s;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
}
.app-header .user-menu .user-email-link:hover {
  color: #4CAF50;
  text-decoration: underline;
}

.app-main {
  flex: 1;
  padding: 20px;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-state h2 {
  font-size: 28px;
  margin-bottom: 16px;
}
.empty-state p {
  color: #757575;
  font-size: 18px;
  margin-bottom: 16px;
}
.empty-state .empty-state-hint {
  font-size: 16px;
  margin-bottom: 32px;
}

.view-container {
  max-width: 1200px;
  margin: 0 auto;
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 0 20px;
}
.view-header h2 {
  font-size: 28px;
  margin: 0;
}

.error-state {
  text-align: center;
  padding: 80px 20px;
}
.error-state h2 {
  font-size: 28px;
  margin-bottom: 16px;
  color: #f44336;
}
.error-state p {
  color: #757575;
  font-size: 18px;
}

.modal {
  max-width: 500px;
}
.modal form {
  text-align: left;
}
.modal form .form-group {
  margin-bottom: 16px;
}
.modal form .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}
.modal form .form-group input[type=text],
.modal form .form-group input[type=number],
.modal form .form-group input[type=email],
.modal form .form-group input[type=password],
.modal form .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
}
.modal form .form-group input[type=text]:focus,
.modal form .form-group input[type=number]:focus,
.modal form .form-group input[type=email]:focus,
.modal form .form-group input[type=password]:focus,
.modal form .form-group select:focus {
  outline: none;
  border-color: #4CAF50;
}
.modal form .form-group input[type=checkbox] {
  margin-right: 8px;
}

@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .app-header h1 {
    text-align: center;
  }
  .app-header .main-nav {
    order: 3;
    justify-content: stretch;
  }
  .app-header .main-nav .nav-item {
    flex: 1;
    text-align: center;
  }
  .app-header .user-menu {
    order: 2;
    justify-content: space-between;
  }
  .view-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .view-header button {
    width: 100%;
  }
  .modal.modal-full {
    width: 100%;
    height: 100vh;
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  .modal > div:not(.modal-buttons) {
    padding: 16px;
  }
}
/**
 * Admin panel styles
 */
/**
 * SCSS Variables
 * Shared across all stylesheets
 */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin: 0 20px 20px;
  background: #ffffff;
  padding: 4px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-tab-btn {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  border-radius: calc(8px - 4px);
  font-size: 15px;
  font-weight: 500;
  color: #757575;
  cursor: pointer;
  transition: all 0.2s ease;
}
.admin-tab-btn.active {
  background: #4CAF50;
  color: white;
}
.admin-tab-btn:not(.active):hover {
  background: rgba(0, 0, 0, 0.05);
}

.admin-content {
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  margin: 0 20px;
}

.admin-tab-content {
  display: none;
}
.admin-tab-content.active {
  display: block;
}

.admin-section button {
  margin-bottom: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.admin-table thead {
  background: #f5f5f5;
}
.admin-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #757575;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-table tbody tr {
  border-top: 1px solid #e0e0e0;
  transition: background 0.2s ease;
}
.admin-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}
.admin-table tbody td {
  padding: 12px 16px;
}
.admin-table tbody td:last-child {
  white-space: nowrap;
}

.btn-small {
  padding: 6px 12px;
  font-size: 14px;
  border: none;
  border-radius: calc(8px / 2);
  background: #4CAF50;
  color: white;
  cursor: pointer;
  margin-right: 8px;
  transition: all 0.2s ease;
}
.btn-small:hover {
  background: #45a049;
}
.btn-small.btn-danger {
  background: #f44336;
}
.btn-small.btn-danger:hover {
  background: rgb(234.1839622642, 27.9622641509, 12.8160377358);
}

/**
 * Meal planner styles
 * TODO: Implement planner layout and interactions
 */
/**
 * SCSS Variables
 * Shared across all stylesheets
 */
.planner-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
}
@media (max-width: 768px) {
  .planner-container {
    padding: 0;
  }
}

.planner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .planner-header {
    flex-direction: column;
  }
}

.week-display {
  display: flex;
  align-items: center;
  gap: 16px;
}
.week-display h2 {
  margin: 0;
  font-size: 1.5rem;
}
@media (max-width: 768px) {
  .week-display h2 {
    font-size: 1.2rem;
  }
}

.date-picker {
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.date-picker:hover {
  border-color: #4CAF50;
}
.date-picker:focus {
  outline: none;
  border-color: #4CAF50;
}

.btn-nav {
  padding: 8px 16px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}
.btn-nav:hover {
  background: rgb(60.5577689243, 139.4422310757, 63.7450199203);
  transform: translateY(-1px);
}
.btn-nav:active {
  transform: translateY(0);
}

.planner-main {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 300px;
  grid-template-rows: auto auto;
  gap: 24px;
  grid-auto-flow: dense;
}
@media (max-width: 1400px) {
  .planner-main {
    grid-template-columns: repeat(4, 1fr) 250px;
  }
}
@media (max-width: 1024px) {
  .planner-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-auto-flow: row;
  }
}

.planner-calendar {
  display: contents;
}
@media (max-width: 1024px) {
  .planner-calendar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}
@media (max-width: 768px) {
  .planner-calendar {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .planner-calendar {
    grid-template-columns: 1fr;
  }
}

.planner-sidebars {
  display: contents;
}
@media (max-width: 1024px) {
  .planner-sidebars {
    display: none;
  }
}

.planner-sidebar {
  grid-column: 5;
  grid-row: 1;
}
@media (max-width: 1024px) {
  .planner-sidebar {
    grid-column: auto;
    grid-row: auto;
  }
}
.planner-sidebar .recipes-sidebar-header {
  display: flex;
  flex-direction: row;
  width: 100%;
}
.planner-sidebar .recipes-sidebar-header .recipes-sidebar-refresh-button-holder {
  text-align: right;
  flex-grow: 2;
}

.day-column {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}
.day-column:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.day-column.drag-over-column {
  background: rgba(76, 175, 80, 0.05);
  border: 2px dashed #4CAF50;
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.2);
}

.day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}
.day-header h3 {
  margin: 0;
  font-size: 1.1rem;
}
.day-header .day-date {
  font-size: 0.85rem;
  color: #757575;
}

.btn-add-slot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px dashed #e0e0e0;
  background: transparent;
  color: #757575;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.btn-add-slot:hover {
  border-color: #4CAF50;
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.1);
}

.day-slots {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.btn-add-meal, .btn-autoplan, .btn-add-note {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  background: transparent;
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  color: #757575;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.btn-add-meal:hover, .btn-autoplan:hover, .btn-add-note:hover {
  border-color: #4CAF50;
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.05);
}
.btn-add-meal.drag-over, .btn-autoplan.drag-over, .btn-add-note.drag-over {
  border-color: #4CAF50;
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.1);
  padding: 20px 12px;
}

.drop-zone {
  min-height: 8px;
  height: 8px;
  background: transparent;
  border-radius: 4px;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}
.drop-zone.drag-over {
  min-height: 40px;
  background: rgba(76, 175, 80, 0.1);
  border: 2px dashed #4CAF50;
  z-index: 10;
}

.meal-slot {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  margin: 4px 0;
}
.meal-slot:hover {
  border-color: #4CAF50;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}
.meal-slot.has-meal {
  border-color: #4CAF50;
}
.meal-slot.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.meal-placeholder {
  color: #757575;
  font-size: 0.85rem;
  text-align: center;
  display: block;
}

.meal-content {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
}

.meal-drag-handle {
  position: absolute;
  top: 4px;
  left: 4px;
  cursor: grab;
  color: #757575;
  font-size: 1rem;
  padding: 2px 4px;
  opacity: 0;
  transition: opacity 0.2s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  line-height: 1;
}
.meal-slot:hover .meal-drag-handle {
  opacity: 1;
}
@media (max-width: 768px) {
  .meal-drag-handle {
    position: relative;
    top: auto;
    left: auto;
    opacity: 1;
    background: transparent;
  }
}
.meal-drag-handle:active {
  cursor: grabbing;
}

.meal-thumbnail {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  -o-object-fit: cover;
     object-fit: cover;
  flex-shrink: 0;
}

.meal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meal-title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.meal-servings {
  font-size: 0.75rem;
  color: #4CAF50;
  font-weight: 500;
  background: rgba(76, 175, 80, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  width: -moz-fit-content;
  width: fit-content;
}

.meal-notes {
  font-size: 0.85rem;
  color: #757575;
  font-style: italic;
}

.day-note {
  background: #fff9e6;
  border: 1px solid #f0e68c;
  border-left-width: 4px;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.day-note:hover {
  background: #fff5d1;
  border-color: #daa520;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.day-note .note-content {
  display: flex;
  gap: 8px;
  align-items: start;
}
.day-note .note-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.day-note .note-text {
  flex: 1;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.note-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.note-editor label {
  font-weight: 600;
  color: #212121;
  font-size: 0.95rem;
}
.note-editor .note-text-input {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}
.note-editor .note-text-input:focus {
  outline: none;
  border-color: #4CAF50;
}

.btn-delete-meal {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: #f44336;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s;
}
.meal-slot:hover .btn-delete-meal {
  opacity: 1;
}
@media (max-width: 768px) {
  .btn-delete-meal {
    opacity: 1;
  }
}
.btn-delete-meal:hover {
  background: rgb(234.1839622642, 27.9622641509, 12.8160377358);
  transform: scale(1.1);
}

.planner-sidebar {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
}
@media (max-width: 1024px) {
  .planner-sidebar {
    display: none;
  }
}
.planner-sidebar h3 {
  margin: 0 0 16px 0;
}
.planner-sidebar .recipes-filter {
  padding: 0;
}

.recipe-search-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.recipe-search-input:focus {
  outline: none;
  border-color: #4CAF50;
}

.recipe-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  padding-right: 2px;
}

.recipe-item {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: white;
  border-radius: 8px;
  cursor: grab;
  transition: all 0.2s;
  border: 1px solid #e0e0e0;
}
.recipe-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateX(2px);
}
.recipe-item.dragging {
  opacity: 0.5;
  cursor: grabbing;
}
.recipe-item img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  -o-object-fit: cover;
     object-fit: cover;
  flex-shrink: 0;
}

.recipe-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.recipe-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.recipe-item-title {
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.3;
}

.recipe-item-meta {
  font-size: 0.8rem;
  color: #757575;
}

.no-recipes {
  text-align: center;
  color: #757575;
  padding: 24px;
}

.meal-summary {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  grid-column: 5;
  grid-row: 2;
}
@media (max-width: 1024px) {
  .meal-summary {
    grid-column: auto;
    grid-row: auto;
    max-height: none;
  }
}
.meal-summary h3 {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
}
.meal-summary h4 {
  margin: 12px 0 8px 0;
  font-size: 0.95rem;
  color: #757575;
}

.summary-content {
  font-size: 0.9rem;
}
.summary-content .no-meals {
  text-align: center;
  color: #757575;
  padding: 16px;
  margin: 0;
}

.summary-nutrition,
.summary-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.summary-nutrition span,
.summary-ratings span {
  padding: 6px 12px;
  background: #f5f5f5;
  border-radius: 16px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.summary-ingredients ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
}
.summary-ingredients ul li {
  padding: 6px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.85rem;
}
.summary-ingredients ul li:last-child {
  border-bottom: none;
}

.meal-editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.meal-editor label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: -8px;
}

.autocomplete-container {
  position: relative;
  width: 100%;
}

.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  margin-top: 4px;
}

.autocomplete-item {
  padding: 12px;
  cursor: pointer;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s;
}
.autocomplete-item:last-child {
  border-bottom: none;
}
.autocomplete-item:hover {
  background: #f5f5f5;
}
.autocomplete-item strong {
  display: block;
  margin-bottom: 4px;
}
.autocomplete-item .autocomplete-desc {
  font-size: 0.85rem;
  color: #757575;
  display: block;
}

.meal-title-input,
.meal-servings-input,
.meal-notes-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.meal-title-input:focus,
.meal-servings-input:focus,
.meal-notes-input:focus {
  outline: none;
  border-color: #4CAF50;
}

.meal-servings-input {
  max-width: 150px;
}

.meal-notes-input {
  min-height: 100px;
  resize: vertical;
}

.last-eaten-info {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgb(245.0996015936, 250.7003984064, 245.3258964143);
  border-left: 4px solid #4CAF50;
  border-radius: 8px;
  font-size: 0.9rem;
  color: rgb(60.5577689243, 139.4422310757, 63.7450199203);
}
.last-eaten-info strong {
  color: #4CAF50;
  font-weight: 600;
}

.autoplan-modal .autoplan-options {
  margin-bottom: 20px;
}
.autoplan-modal .autoplan-options .autoplan-option {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  margin-bottom: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.autoplan-modal .autoplan-options .autoplan-option:hover {
  border-color: #4CAF50;
  background: rgba(76, 175, 80, 0.05);
}
.autoplan-modal .autoplan-options .autoplan-option input[type=radio] {
  margin-right: 12px;
  margin-top: 2px;
  cursor: pointer;
}
.autoplan-modal .autoplan-options .autoplan-option .option-content {
  flex: 1;
}
.autoplan-modal .autoplan-options .autoplan-option .option-content strong {
  display: block;
  margin-bottom: 4px;
  color: #212121;
  font-size: 1rem;
}
.autoplan-modal .autoplan-options .autoplan-option .option-content p {
  margin: 0;
  color: #757575;
  font-size: 0.9rem;
}
.autoplan-modal .autoplan-options .autoplan-option input[type=radio]:checked ~ .option-content strong {
  color: #4CAF50;
}
.autoplan-modal .autoplan-keywords label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #212121;
}
.autoplan-modal .autoplan-keywords input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.autoplan-modal .autoplan-keywords input:focus {
  outline: none;
  border-color: #4CAF50;
}
.autoplan-modal .autoplan-keywords .hint {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #757575;
  font-style: italic;
}

.recipe-preview {
  max-height: 60vh;
  overflow-y: auto;
}
.recipe-preview h3 {
  margin: 0 0 12px 0;
  color: #4CAF50;
  font-size: 1.5rem;
}
.recipe-preview .recipe-description {
  margin-bottom: 16px;
  color: #757575;
  line-height: 1.5;
}
.recipe-preview .recipe-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding: 12px;
  background: rgb(245.0996015936, 250.7003984064, 245.3258964143);
  border-radius: 8px;
}
.recipe-preview .recipe-meta span {
  font-size: 0.9rem;
  color: #212121;
}
.recipe-preview .recipe-section {
  margin-bottom: 24px;
}
.recipe-preview .recipe-section h4 {
  margin: 0 0 12px 0;
  color: #212121;
  font-size: 1.1rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 8px;
}
.recipe-preview .recipe-section ul, .recipe-preview .recipe-section ol {
  margin: 0;
  padding-left: 24px;
}
.recipe-preview .recipe-section ul li, .recipe-preview .recipe-section ol li {
  margin-bottom: 8px;
  line-height: 1.5;
  color: #212121;
}
.recipe-preview .recipe-section ul li strong, .recipe-preview .recipe-section ol li strong {
  color: #4CAF50;
}

.shared-planner-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
}

.shared-planner-header {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  margin-bottom: 2rem;
}
.shared-planner-header h1 {
  margin: 0;
  font-size: 2rem;
}
.shared-planner-header p {
  margin: 0;
  opacity: 0.9;
}

.shared-planner-calendar .calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.shared-planner-calendar .day-column {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.shared-planner-calendar .day-column .day-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem;
  text-align: center;
}
.shared-planner-calendar .day-column .day-header h3 {
  margin: 0;
  font-size: 1.1rem;
}
.shared-planner-calendar .day-column .day-header .day-date {
  display: block;
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}
.shared-planner-calendar .day-column .day-note {
  background: #fff9e6;
  border-left: 4px solid #ffc107;
  padding: 0.75rem;
  margin: 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #666;
  white-space: pre-wrap;
  cursor: auto;
}
.shared-planner-calendar .day-column .meals-list {
  padding: 0.75rem;
  min-height: 100px;
}
.shared-planner-calendar .day-column .no-meals-placeholder {
  text-align: center;
  color: #999;
  padding: 2rem 1rem;
  font-style: italic;
}

.shared-meal-card {
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.shared-meal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.shared-meal-card .meal-card-image {
  width: 100%;
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: #e9ecef;
}
.shared-meal-card .meal-card-content {
  padding: 0.75rem;
}
.shared-meal-card .meal-card-title {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}
.shared-meal-card .meal-card-servings {
  font-size: 0.85rem;
  color: #718096;
  margin-bottom: 0.25rem;
}
.shared-meal-card .meal-card-notes {
  font-size: 0.85rem;
  color: #718096;
  font-style: italic;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .shared-planner-calendar .calendar-grid {
    grid-template-columns: 1fr;
  }
  .shared-planner-header h1 {
    font-size: 1.5rem;
  }
}
.btn-small.confirm-delete {
  background: #4caf50 !important;
  color: #fff !important;
  border-color: #388e3c !important;
  transition: background 0.2s, color 0.2s;
}

.autocomplete-dropdown {
  position: absolute;
  z-index: 10;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-top: 2px;
  min-width: 180px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.autocomplete-dropdown[style*="display: block"] {
  display: block;
}

.autocomplete-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1rem;
}

.autocomplete-item.selected,
.autocomplete-item:hover {
  background: #e0e7ef;
}

.drag-placeholder {
  background: linear-gradient(135deg, #e8f4f8 25%, #d4e9f2 25%, #d4e9f2 50%, #e8f4f8 50%, #e8f4f8 75%, #d4e9f2 75%, #d4e9f2);
  background-size: 20px 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  margin-bottom: 12px;
  min-height: 40px;
  max-height: 50px;
  height: 50px;
  opacity: 0.8;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.drag-placeholder.active {
  background: linear-gradient(135deg, #e8f8ec 25%, #d4f2dd 25%, #d4f2dd 50%, #e8f8ec 50%, #e8f8ec 75%, #d4f2dd 75%, #d4f2dd);
  background-size: 20px 20px;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.9;
    transform: scaleY(1.02);
  }
}
.ingredient-row.dragging,
.method-row.dragging {
  opacity: 0.4;
  background: #f9f9f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/**
 * Recipe library and editor styles
 */
/**
 * SCSS Variables
 * Shared across all stylesheets
 */
.recipes-filter {
  padding: 20px 20px 0;
}
@media (max-width: 768px) {
  .recipes-filter {
    padding: 20px 0 0;
  }
}
.recipes-filter .filter-top-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.recipes-filter .search-container {
  position: relative;
  flex: 1;
}
.recipes-filter .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  pointer-events: none;
  opacity: 0.5;
}
.recipes-filter .recipe-search,
.recipes-filter .recipe-search-input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: border-color 0.2s;
}
.recipes-filter .recipe-search:focus,
.recipes-filter .recipe-search-input:focus {
  outline: none;
  border-color: #4CAF50;
}
.recipes-filter .btn-icon {
  padding: 10px 16px;
  font-size: 1.2rem;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.recipes-filter .btn-icon:hover {
  background: #f5f5f5;
  transform: scale(1.05);
}

.advanced-filter {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.advanced-filter .filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.advanced-filter .filter-row:last-child {
  margin-bottom: 0;
}
.advanced-filter .filter-row label {
  font-weight: 500;
  min-width: 140px;
  font-size: 0.95rem;
}
.advanced-filter .filter-row .sort-select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  background: white;
  cursor: pointer;
}
.advanced-filter .filter-row .sort-select:focus {
  outline: none;
  border-color: #4CAF50;
}
.advanced-filter .filter-row .range-input {
  width: 100px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
}
.advanced-filter .filter-row .range-input:focus {
  outline: none;
  border-color: #4CAF50;
}
.advanced-filter .filter-row .range-separator {
  color: #757575;
  font-size: 0.9rem;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-tag {
  padding: 1px 8px;
  border-radius: 16px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  opacity: 0.5;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.filter-tag:hover {
  opacity: 0.7;
  transform: scale(1.05);
}
.filter-tag.active {
  opacity: 1;
  font-weight: 500;
  border: 1px solid #4caf50 !important;
}

.recipes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}
.recipes-list:has(.recipes-table) {
  display: block;
}

.recipe-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
}
.recipe-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}
.recipe-card.has-image {
  grid-column: span 2;
}
.recipe-card .recipe-card-stars {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #ffc107;
  font-size: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 2px;
}
.recipe-card .recipe-card-effort {
  position: absolute;
  top: 36px;
  right: 12px;
  font-size: 0.85rem;
  letter-spacing: 1px;
}
.recipe-card .recipe-card-content {
  flex: 1;
  min-width: 0;
}
.recipe-card .recipe-card-thumbnail {
  width: 150px;
  height: 150px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.recipe-card h3 {
  margin-bottom: 12px;
  color: #4CAF50;
}
.recipe-card p {
  color: #757575;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recipe-card .recipe-meta {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: #757575;
}
.recipe-card .recipe-meta span {
  display: flex;
  align-items: center;
}
.recipe-card .recipe-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.recipe-card-compact .tag-pill-mini, .recipe-card .tag-pill-mini {
  display: inline-flex;
  align-items: center;
  background: #e0e7ef;
  border: 1px solid #b3c7d9;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 0.75rem;
  color: #555;
  gap: 4px;
}

.recipe-form h3 {
  margin: 24px 0 12px;
  color: #4CAF50;
  font-size: 18px;
}
.recipe-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.recipe-form .form-row.nutrition-grid {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
}
.recipe-form .btn-estimate-nutrition {
  width: 100%;
  height: 100%;
  min-height: 42px;
  padding: 8px 12px;
  margin-top: 0;
  background: #6b7280;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: normal;
  cursor: pointer;
  align-self: end;
}
.recipe-form .btn-estimate-nutrition:hover:not(:disabled) {
  background: #4b5563;
}
.recipe-form .btn-estimate-nutrition:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.recipe-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Nunito", sans-serif;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.recipe-form textarea:focus {
  outline: none;
  border-color: #4CAF50;
}
.recipe-form input[type=file] {
  display: block;
  width: 100%;
  padding: 12px;
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}
.recipe-form input[type=file]:hover {
  border-color: #4CAF50;
  background: #f0f4f8;
}
.recipe-form input[type=file]::file-selector-button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background: #4CAF50;
  color: white;
  cursor: pointer;
  font-size: 14px;
  margin-right: 12px;
  transition: background 0.2s ease;
}
.recipe-form input[type=file]::file-selector-button:hover {
  background: rgb(60.5577689243, 139.4422310757, 63.7450199203);
}
.recipe-form #image-upload-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.recipe-form #image-upload-container img {
  display: block;
}

.ingredient-section {
  margin-bottom: 24px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}
.ingredient-section:last-child {
  margin-bottom: 8px;
}

.ingredient-section-header {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #dee2e6;
}
.ingredient-section-header .section-name-input {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: white;
  transition: all 0.2s;
}
.ingredient-section-header .section-name-input:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}
.ingredient-section-header .section-name-input::-moz-placeholder {
  color: #999;
  font-weight: normal;
}
.ingredient-section-header .section-name-input::placeholder {
  color: #999;
  font-weight: normal;
}
.ingredient-section-header .add-ingredient-in-section,
.ingredient-section-header .add-section-below {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.ingredient-section-header .remove-section {
  flex-shrink: 0;
}
.ingredient-section-header .remove-section.confirm {
  background: #4caf50;
  color: white;
  border-color: #388e3c;
}

.section-ingredients-list {
  min-height: 60px;
  position: relative;
}
.section-ingredients-list:empty::after {
  content: "Drop ingredients here or click + Ingredient above";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #999;
  font-size: 0.9rem;
  pointer-events: none;
  white-space: nowrap;
}

.cooking-ingredients .ingredient-section-header {
  font-size: 1rem;
  font-weight: 600;
  color: #4CAF50;
  margin: 16px 0 8px 0;
  padding: 0 0 4px 0;
  border-bottom: 1px solid #e0e0e0;
}
.cooking-ingredients .ingredient-section-header:first-child {
  margin-top: 0;
}

.ingredient-row,
.method-row {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.ingredient-row:last-child,
.method-row:last-child {
  border-bottom: none;
  margin-bottom: 8px;
  padding-bottom: 0;
}

.ingredient-row {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-bottom: 1em;
}
.ingredient-row .ingredient-main {
  position: relative;
}
.ingredient-row .ingredient-main {
  width: 100%;
  display: flex;
  gap: 8px;
  align-items: center;
}
.ingredient-row .ingredient-main input.ing-name {
  flex: 1;
  font-size: 1rem;
  padding: 0.5em 0.75em;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}
.ingredient-row .ingredient-main .ingredient-type-toggle {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 4px;
  font-size: 1.2rem;
  background: #f8f9fa;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ingredient-row .ingredient-main .ingredient-type-toggle:hover {
  background: #e9ecef;
  border-color: #999;
}
.ingredient-row .ingredient-main .ingredient-type-toggle:active {
  transform: scale(0.95);
}
.ingredient-row .ingredient-details {
  display: flex;
  gap: 8px;
  align-items: start;
  width: 100%;
}
.ingredient-row .ingredient-details input.ing-qty {
  flex: 0 0 80px;
  width: 80px;
  min-width: 0;
  font-size: 0.95rem;
  padding: 0.4em 0.6em;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  text-align: right;
}
.ingredient-row .ingredient-details input.ing-unit {
  flex: 0 0 80px;
  width: 80px;
  min-width: 0;
  font-size: 0.95rem;
  padding: 0.4em 0.6em;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}
.ingredient-row .ingredient-details input.ing-notes {
  flex: 1 1 0;
  min-width: 0;
  font-size: 0.95rem;
  padding: 0.4em 0.6em;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}
.ingredient-row .ingredient-details .btn-small {
  margin-top: 0;
  flex-shrink: 0;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ingredient-row .ingredient-details .drag-handle {
  background: #f3f3f3;
  color: #444;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-right: 4px;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  font-size: 1.2em;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  outline: none;
  transition: background 0.15s;
}
.ingredient-row .ingredient-details .drag-handle:active {
  cursor: grabbing;
  background: #e0e0e0;
}
.ingredient-row .ingredient-details .drag-handle:focus {
  box-shadow: 0 0 0 2px #b3d4fc;
}

.method-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.method-row .method-description {
  width: 100%;
}
.method-row .method-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.method-row .method-footer .method-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.method-row .method-footer .method-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #666;
}
.method-row .method-footer .method-controls label span {
  white-space: nowrap;
}
.method-row .method-footer .method-controls .method-duration {
  width: 60px;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  font-size: 0.9rem;
}
.method-row .method-footer .method-controls .method-duration:focus {
  outline: none;
  border-color: #4CAF50;
}
.method-row .method-footer .method-controls .method-ingredient-input {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
}
.method-row .method-footer .method-controls .method-ingredient-input:focus {
  outline: none;
  border-color: #4CAF50;
}
.method-row .method-footer .method-ingredients-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.method-row .method-footer .method-ingredients-container:empty {
  display: none;
}
.method-row .method-footer .method-ingredient-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background-color: #e8f4f8;
  border: 1px solid #b3d9e8;
  border-radius: 12px;
  font-size: 0.85rem;
  color: #333;
}
.method-row .method-footer .method-ingredient-pill .pill-debug-id {
  font-size: 0.7rem;
  color: #666;
  font-family: monospace;
  opacity: 0.7;
  margin-left: 2px;
}
.method-row .method-footer .method-ingredient-pill .remove-pill {
  background: none;
  border: none;
  color: #666;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin: 0;
}
.method-row .method-footer .method-ingredient-pill .remove-pill:hover {
  color: #d32f2f;
}
.method-row .method-footer .method-ingredient-autocomplete {
  position: absolute;
  top: 38px;
  left: 0;
  right: 80px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}
.method-row .method-footer .drag-handle {
  background: #f3f3f3;
  color: #444;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-right: 4px;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  font-size: 1.2em;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  outline: none;
  transition: background 0.15s;
}
.method-row .method-footer .drag-handle:active {
  cursor: grabbing;
  background: #e0e0e0;
}
.method-row .method-footer .drag-handle:focus {
  box-shadow: 0 0 0 2px #b3d4fc;
}
.method-row .method-footer .btn-small {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .recipes-list {
    grid-template-columns: 1fr;
    padding: 12px 0;
    gap: 12px;
  }
  .recipe-card.has-image {
    grid-column: span 1;
  }
  .recipe-form .form-row {
    grid-template-columns: 1fr;
  }
  .ingredient-row {
    flex-wrap: wrap;
  }
  .ingredient-row .ing-name,
  .ingredient-row .ing-qty,
  .ingredient-row .ing-unit,
  .ingredient-row .ing-notes {
    flex: 1 1 100%;
  }
  .ingredient-row .btn-small {
    flex: 0 0 auto;
  }
}
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  background: #e0e7ef;
  border: 1px solid #b3c7d9;
  border-radius: 12px;
  padding: 2px 6px 2px 8px;
  font-size: 0.85rem;
  color: #333;
  gap: 4px;
  transition: background 0.15s;
}

.tag-pill:hover {
  background: #d0dde9;
}

.tag-text {
  line-height: 1.2;
}

.tag-menu-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 1px 3px;
  color: #666;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
}

.tag-menu-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
}

.tag-menu {
  position: fixed;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  min-width: 120px;
}

.tag-menu-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.tag-menu-item:first-child {
  border-radius: 6px 6px 0 0;
}
.tag-menu-item:last-child {
  border-radius: 0 0 6px 6px;
}
.tag-menu-item:hover {
  background: #f0f0f0;
}

.tag-edit-input {
  border: none;
  background: transparent;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0.9rem !important;
  color: #333 !important;
  border-radius: 0 !important;
}
.tag-edit-input:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
  color: #333 !important;
}

.tag-color-picker {
  position: fixed;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  width: 156px;
  z-index: 10000;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border: 2px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.color-swatch:hover {
  transform: scale(1.1);
}

.tag-pill, .tag-pill-mini {
  position: relative;
}

#tag-input {
  flex: 1;
  min-width: 150px;
}

.form-group.tags-section:not(.has-tags) label,
.form-group.tags-section:not(.has-tags) .tags-container {
  display: none;
}

.ai-import-modal .ai-import-description {
  margin-bottom: 24px;
  color: #555;
  font-size: 0.95rem;
}
.ai-import-modal .form-group {
  margin-bottom: 20px;
}
.ai-import-modal .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}
.ai-import-modal .ai-import-url {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e7ef;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.ai-import-modal .ai-import-url:focus {
  outline: none;
  border-color: #1e88e5;
}
.ai-import-modal .ai-import-url::-moz-placeholder {
  color: #999;
}
.ai-import-modal .ai-import-url::placeholder {
  color: #999;
}
.ai-import-modal .ai-import-text {
  width: 100%;
  min-height: 180px;
  padding: 12px;
  border: 2px solid #e0e7ef;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s;
}
.ai-import-modal .ai-import-text:focus {
  outline: none;
  border-color: #1e88e5;
}
.ai-import-modal .ai-import-text::-moz-placeholder {
  color: #999;
}
.ai-import-modal .ai-import-text::placeholder {
  color: #999;
}
.ai-import-modal .ai-import-hint {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #777;
}
.ai-import-modal .ai-import-divider {
  position: relative;
  text-align: center;
  margin: 24px 0;
}
.ai-import-modal .ai-import-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #ddd;
  z-index: 0;
}
.ai-import-modal .ai-import-divider span {
  position: relative;
  display: inline-block;
  padding: 0 16px;
  background: #fff;
  color: #999;
  font-weight: 500;
  font-size: 0.9rem;
  z-index: 1;
}

.ai-preview .ai-preview-notice {
  padding: 12px;
  background: #e3f2fd;
  border-left: 3px solid #1e88e5;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #1565c0;
}
.ai-preview .form-group {
  margin-bottom: 16px;
}
.ai-preview .form-group label {
  display: block;
  margin-bottom: 6px;
  color: #333;
}
.ai-preview .form-group > div {
  color: #555;
  line-height: 1.6;
}
.ai-preview .form-group a {
  color: #1e88e5;
  text-decoration: none;
}
.ai-preview .form-group a:hover {
  text-decoration: underline;
}
.ai-preview .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}
.ai-preview .form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}
.ai-preview .ai-preview-list {
  padding: 12px;
  background: #f9f9f9;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  white-space: pre-line;
  line-height: 1.8;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.image-upload-container .image-drop-zone {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  background: #fafafa;
  transition: all 0.3s ease;
}
.image-upload-container .image-drop-zone.drag-over {
  border-color: #1e88e5;
  background: #e3f2fd;
  transform: scale(1.02);
}
.image-upload-container .image-drop-zone .drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.image-upload-container .image-drop-zone .drop-zone-icon {
  font-size: 48px;
  opacity: 0.5;
}
.image-upload-container .image-drop-zone .drop-zone-text {
  margin: 0;
  color: #666;
  font-size: 1rem;
  font-weight: 500;
}
.image-upload-container .image-drop-zone .drop-zone-or {
  margin: 4px 0;
  color: #999;
  font-size: 0.9rem;
}
.image-upload-container .image-drop-zone .image-url-input {
  width: 100%;
  max-width: 400px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.image-upload-container .image-drop-zone .image-url-input:focus {
  outline: none;
  border-color: #1e88e5;
}
.image-upload-container .image-drop-zone .image-url-input::-moz-placeholder {
  color: #999;
}
.image-upload-container .image-drop-zone .image-url-input::placeholder {
  color: #999;
}
.image-upload-container .image-preview-wrapper {
  position: relative;
  display: inline-block;
}
.image-upload-container .image-preview-wrapper .recipe-image-preview {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.image-upload-container .image-preview-wrapper .remove-image-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.image-upload-container .image-preview-wrapper .remove-image-btn:hover {
  background: rgba(220, 53, 69, 0.9);
}

.star-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}
.star-rating .star {
  font-size: 32px;
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.star-rating .star.filled {
  color: #ffc107;
  text-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}
.star-rating .star.clear-star {
  font-size: 18px;
  opacity: 0.6;
}
.star-rating .star.clear-star.filled {
  color: #dc3545;
  text-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
  opacity: 1;
}
.star-rating .star.clear-star:hover {
  opacity: 1;
}
.star-rating .star:hover {
  transform: scale(1.2);
}

.effort-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}
.effort-rating .effort-star {
  font-size: 19px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  opacity: 0.4;
}
.effort-rating .effort-star.filled {
  opacity: 1;
  filter: brightness(1.1);
}
.effort-rating .effort-star.clear-effort {
  font-size: 18px;
  opacity: 0.6;
}
.effort-rating .effort-star.clear-effort.filled {
  color: #dc3545;
  opacity: 1;
}
.effort-rating .effort-star.clear-effort:hover {
  opacity: 1;
}
.effort-rating .effort-star:hover {
  transform: scale(1.15);
  opacity: 1;
}

.recipe-card-compact {
  background: white;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}
.recipe-card-compact:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}
.recipe-card-compact .compact-header h3 {
  margin: 0 0 6px 0;
  font-size: 1rem;
  font-weight: 500;
}
.recipe-card-compact .compact-header .compact-ratings {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.recipe-card-compact .compact-header .compact-ratings .compact-stars,
.recipe-card-compact .compact-header .compact-ratings .compact-effort {
  white-space: nowrap;
}
.recipe-card-compact .recipe-card-tags {
  margin-top: 8px;
}
.recipe-card-compact .tag-pill-mini {
  margin-right: 5px;
}

.recipes-table {
  width: 100%;
  table-layout: auto;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border-collapse: collapse;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.recipes-table thead {
  background: #2c3e50;
}
.recipes-table thead th {
  background: #2c3e50;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  color: #ffffff;
  border-bottom: 2px solid #34495e;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.recipes-table thead th:hover {
  background: #34495e;
}
.recipes-table thead th:active {
  background: #1a252f;
}
.recipes-table thead th .sort-indicator {
  display: inline-block;
  margin-left: 4px;
  color: #3498db;
  font-size: 0.8em;
}
.recipes-table tbody .recipe-row {
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid #f0f0f0;
}
.recipes-table tbody .recipe-row:hover {
  background: #f9f9f9;
}
.recipes-table tbody .recipe-row td {
  padding: 12px 16px;
  font-size: 0.95rem;
  vertical-align: middle;
}
.recipes-table tbody .recipe-row td.recipe-title {
  font-weight: 500;
  color: #333;
}
.recipes-table tbody .recipe-row td.recipe-description {
  color: #666;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/**
 * Shopping list styles
 */
/**
 * SCSS Variables
 * Shared across all stylesheets
 */
.shopping-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #4CAF50;
  flex-wrap: wrap;
  gap: 12px;
}
.shopping-list-header h3 {
  margin: 0;
  color: #4CAF50;
  flex: 1 1 100%;
}
.shopping-list-header .shopping-list-meta {
  font-size: 0.9rem;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.shopping-list-header .shopping-list-meta > span {
  margin-right: auto;
}
@media (min-width: 768px) {
  .shopping-list-header .shopping-list-meta {
    width: auto;
  }
}
@media (min-width: 768px) {
  .shopping-list-header h3 {
    flex: 0 1 auto;
  }
}

.shopping-list-body {
  margin-bottom: 32px;
}

.shopping-category {
  margin-bottom: 24px;
}
.shopping-category .category-name {
  margin: 0 0 12px 0;
  padding: 8px 12px;
  background-color: #f0f0f0;
  border-left: 4px solid #4CAF50;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}
.shopping-category .category-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.shopping-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 12px;
  margin-bottom: 2px;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: all 0.2s ease;
  min-height: 56px;
}
@media (min-width: 768px) {
  .shopping-list-item {
    padding: 12px;
    min-height: auto;
  }
}
.shopping-list-item:active, .shopping-list-item.pressing {
  background-color: #f0f0f0;
  transform: scale(0.98);
}
.shopping-list-item.purchased {
  opacity: 0.5;
  background-color: #f9f9f9;
}
.shopping-list-item.purchased .item-name {
  text-decoration: line-through;
  color: #999;
}
.shopping-list-item .item-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.shopping-list-item .item-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}
@media (min-width: 768px) {
  .shopping-list-item .item-name {
    font-size: 1rem;
    font-weight: 500;
  }
}
.shopping-list-item .item-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
@media (min-width: 768px) {
  .shopping-list-item .item-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
.shopping-list-item .item-quantity {
  font-size: 0.95rem;
  color: #666;
  font-variant-numeric: tabular-nums;
}
.shopping-list-item .item-use-by {
  font-size: 0.85rem;
  color: #999;
  margin-left: auto;
}
@media (min-width: 768px) {
  .shopping-list-item .item-use-by {
    margin-left: 0;
  }
}
.shopping-list-item .item-edit-btn {
  flex-shrink: 0;
  padding: 8px 12px;
  background-color: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}
.shopping-list-item .item-edit-btn:hover {
  background-color: #f0f0f0;
  border-color: #4CAF50;
}

.purchased-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px dashed #ccc;
}
.purchased-section .purchased-title {
  margin: 0 0 16px 0;
  color: #999;
  font-size: 1.1rem;
}
.purchased-section .purchased-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.share-button,
.btn-small {
  padding: 8px 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}
.share-button:hover,
.btn-small:hover {
  background-color: rgb(60.5577689243, 139.4422310757, 63.7450199203);
}
.share-button:active,
.btn-small:active {
  background-color: rgb(52.8366533865, 121.6633466135, 55.6175298805);
}
.share-button.btn-danger,
.btn-small.btn-danger {
  background-color: #dc3545;
}
.share-button.btn-danger:hover,
.btn-small.btn-danger:hover {
  background-color: rgb(189.2151898734, 32.7848101266, 47.7721518987);
}
.share-button.btn-danger:active,
.btn-small.btn-danger:active {
  background-color: rgb(167.4810126582, 29.0189873418, 42.2848101266);
}

@keyframes pressAnimation {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(0.98);
  }
}
.shopping-list-item.pressing {
  animation: pressAnimation 1.5s ease-out;
}

@media print {
  .shopping-list-header {
    border-bottom: 2px solid black;
  }
  .share-button,
  .btn-small,
  .item-edit-btn {
    display: none;
  }
  .shopping-list-item:hover,
  .shopping-list-item:active,
  .shopping-list-item.pressing {
    background-color: transparent;
    transform: none;
  }
  .purchased-section {
    page-break-before: always;
  }
}
.edit-item-form .form-group {
  margin-bottom: 16px;
}
.edit-item-form .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
}
.edit-item-form .form-group input[type=text],
.edit-item-form .form-group input[type=number],
.edit-item-form .form-group input[type=date],
.edit-item-form .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}
.edit-item-form .form-group input[type=text]:focus,
.edit-item-form .form-group input[type=number]:focus,
.edit-item-form .form-group input[type=date]:focus,
.edit-item-form .form-group select:focus {
  outline: none;
  border-color: #4CAF50;
}
.edit-item-form .form-group select {
  cursor: pointer;
  background-color: white;
}
.edit-item-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.edit-item-form .form-row .form-group {
  margin-bottom: 16px;
}
.edit-item-form .form-hint {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

/**
 * Cooking Mode Styles
 */
/**
 * SCSS Variables
 * Shared across all stylesheets
 */
.modal-full .modal-content {
  max-width: 100%;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}
.modal-full .modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.cooking-mode {
  height: 100%;
  display: flex;
  flex-direction: column;
}
@media (max-width: 1024px) {
  .cooking-mode {
    height: auto;
    min-height: 100%;
  }
}

.cooking-header {
  background: #4CAF50;
  color: white;
  padding: 24px;
}
.cooking-header h2 {
  margin: 0 0 16px 0;
  font-size: 1.8rem;
}

.cooking-controls {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.servings-adjuster {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 8px;
}
.servings-adjuster label {
  font-weight: 600;
}
.servings-adjuster input {
  width: 60px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  text-align: center;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.9);
}

.btn-servings {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-servings:hover {
  background: rgba(255, 255, 255, 0.3);
}
.btn-servings:active {
  transform: scale(0.95);
}

.wake-lock-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.wake-lock-toggle input[type=checkbox] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.wake-lock-toggle span {
  font-weight: 500;
}

.cooking-content {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  padding: 24px;
  overflow-y: auto;
}
@media (max-width: 1024px) {
  .cooking-content {
    grid-template-columns: 1fr;
    padding: 2px;
    overflow-y: visible;
    flex: none;
  }
}

.cooking-methods h3,
.cooking-ingredients h3 {
  margin: 0 0 16px 0;
  font-size: 1.4rem;
  color: #4CAF50;
}

.method-step {
  display: flex;
  gap: 16px;
  padding: 20px;
  margin-bottom: 16px;
  background: #ffffff;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.method-step:hover {
  border-color: rgb(145.5378486056, 207.4621513944, 148.0398406375);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.method-step.active {
  border-color: #4CAF50;
  background: rgb(234.4322709163, 246.0677290837, 234.9023904382);
}
.method-step.timer-complete {
  animation: pulse 1s ease-in-out;
  border-color: #4CAF50;
}
@media (max-width: 1024px) {
  .method-step {
    padding: 5px;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}
.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #4CAF50;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.step-content {
  flex: 1;
}
.step-content p {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.step-timer {
  background: #f5f5f5;
  padding: 16px;
  border-radius: 8px;
  margin-top: 12px;
}
@media (max-width: 1024px) {
  .step-timer {
    padding: 12px;
    margin-left: -56px;
  }
}
.step-timer .timer-display {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 12px;
  font-family: "Courier New", monospace;
  color: #4CAF50;
}
.step-timer .timer-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.step-timer .btn-timer {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}
.step-timer .btn-timer:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
}
.step-timer .btn-timer:active {
  transform: translateY(0);
}

.step-ingredients {
  margin-top: 16px;
  padding: 16px;
  background: rgb(245.0996015936, 250.7003984064, 245.3258964143);
  border-radius: 8px;
  border-left: 4px solid #4CAF50;
}
.step-ingredients h4 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  color: #4CAF50;
}
.step-ingredients ul {
  margin: 0;
  padding-left: 20px;
}
.step-ingredients ul li {
  margin-bottom: 8px;
  font-size: 1rem;
}
@media (max-width: 1024px) {
  .step-ingredients {
    padding: 12px;
    margin-left: -56px;
    border-radius: 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-left: none;
  }
}

.cooking-ingredients {
  background: #ffffff;
  padding: 24px;
  border-radius: 8px;
  align-self: start;
  position: sticky;
  top: 24px;
}

.ingredient-item {
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 1.05rem;
}
.ingredient-item:last-child {
  border-bottom: none;
}

.ingredient-quantity {
  font-weight: 600;
  color: #4CAF50;
}

.ingredient-unit {
  margin-right: 4px;
  color: #757575;
}

.ingredient-name {
  font-weight: 500;
}

.ingredient-notes {
  display: block;
  font-size: 0.9rem;
  color: #757575;
  font-style: italic;
  margin-top: 4px;
}

.recipe-source-url {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid #e0e0e0;
}
.recipe-source-url h4 {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #757575;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.recipe-source-url a {
  display: inline-block;
  color: #4CAF50;
  text-decoration: none;
  word-break: break-all;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: color 0.2s;
}
.recipe-source-url a:hover {
  color: rgb(60.5577689243, 139.4422310757, 63.7450199203);
  text-decoration: underline;
}

.profile-container {
  min-height: 100vh;
  background-color: #f5f7fa;
}

.profile-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem 0 0 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.profile-header .profile-header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.profile-header h1 {
  margin: 1rem 0 0 0;
  font-size: 2rem;
  font-weight: 600;
}

.profile-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 auto;
  padding: 0 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.profile-tabs .profile-tab {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  border: none;
  border-bottom: 3px solid transparent;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.profile-tabs .profile-tab:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}
.profile-tabs .profile-tab.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-bottom-color: white;
}

.btn-back {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-back:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-2px);
}

.profile-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.profile-section {
  margin-bottom: 2.5rem;
}
.profile-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2d3748;
}
.profile-section.danger-zone h2 {
  color: #dc3545;
}
.profile-section.danger-zone p {
  color: #6c757d;
  margin-bottom: 1rem;
}

.profile-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.profile-card .form-group {
  margin-bottom: 1.5rem;
}
.profile-card .form-group:last-of-type {
  margin-bottom: 1.5rem;
}
.profile-card .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #4a5568;
}
.profile-card .form-group label.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.profile-card .form-group label.checkbox-label input[type=checkbox] {
  margin-right: 0.75rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.profile-card .form-group label.checkbox-label span {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.profile-card .form-group input[type=email],
.profile-card .form-group input[type=password] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.profile-card .form-group input[type=email]:focus,
.profile-card .form-group input[type=password]:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.profile-card .form-group input[type=email]::-moz-placeholder, .profile-card .form-group input[type=password]::-moz-placeholder {
  color: #a0aec0;
}
.profile-card .form-group input[type=email]::placeholder,
.profile-card .form-group input[type=password]::placeholder {
  color: #a0aec0;
}

.sortable-list .sortable-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
  cursor: move;
}
.sortable-list .sortable-item:hover {
  background: #f9f9f9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.sortable-list .sortable-item.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}
.sortable-list .sortable-item .drag-handle {
  font-size: 1.2rem;
  color: #999;
  cursor: grab;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.sortable-list .sortable-item .drag-handle:active {
  cursor: grabbing;
}
.sortable-list .sortable-item .category-name {
  flex: 1;
  font-weight: 500;
}
.sortable-list .sortable-item .category-actions {
  display: flex;
  gap: 0.25rem;
}

@media (max-width: 768px) {
  .profile-header {
    padding: 1.5rem 0;
  }
  .profile-header h1 {
    font-size: 1.5rem;
  }
  .profile-main {
    padding: 1.5rem 1rem;
  }
  .profile-section h2 {
    font-size: 1.25rem;
  }
  .profile-card {
    padding: 1rem;
  }
  .ingredients-filters {
    flex-direction: column;
  }
  .ingredients-filters .ingredient-search-input,
  .ingredients-filters .ingredient-category-filter {
    width: 100%;
    min-width: unset;
  }
}
.ingredients-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.ingredients-filters .ingredient-search-input {
  flex: 1;
  min-width: 250px;
  padding: 0.625rem 1rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.ingredients-filters .ingredient-search-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.ingredients-filters .ingredient-search-input::-moz-placeholder {
  color: #a0aec0;
}
.ingredients-filters .ingredient-search-input::placeholder {
  color: #a0aec0;
}
.ingredients-filters .ingredient-category-filter {
  min-width: 200px;
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 0.95rem;
  background-color: white;
  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='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  transition: all 0.2s ease;
}
.ingredients-filters .ingredient-category-filter:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.ingredients-filters .ingredient-category-filter:hover {
  border-color: #a0aec0;
}

.inline-category-select {
  border: 1px solid transparent;
  background: transparent;
  padding: 0.25rem 1.5rem 0.25rem 0.25rem;
  font-size: inherit;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: 4px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  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='%23999' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  background-size: 12px;
  transition: all 0.2s ease;
}
.inline-category-select:not(:focus):not(:hover) {
  background-image: none;
}
.inline-category-select:hover {
  background-color: #f7fafc;
  border-color: #e2e8f0;
}
.inline-category-select:focus {
  outline: none;
  background-color: #fff;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.category-suggestions-modal {
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
}

.suggestion-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.suggestion-table thead {
  background-color: #f7fafc;
  border-bottom: 2px solid #e2e8f0;
}
.suggestion-table thead th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: #4a5568;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.suggestion-table tbody tr {
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}
.suggestion-table tbody tr:hover {
  background-color: #f7fafc;
}
.suggestion-table tbody tr td {
  padding: 0.75rem;
  vertical-align: middle;
}
.suggestion-table tbody tr td:first-child {
  font-weight: 500;
}
.suggestion-table tbody tr td:last-child {
  text-align: right;
  white-space: nowrap;
}
.suggestion-table .btn-small {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  margin-left: 0.25rem;
  transition: all 0.2s ease;
}
.suggestion-table .btn-small.accept-suggestion {
  background-color: #48bb78;
  color: white;
}
.suggestion-table .btn-small.accept-suggestion:hover:not(:disabled) {
  background-color: #38a169;
}
.suggestion-table .btn-small.decline-suggestion {
  background-color: #f7fafc;
  color: #718096;
}
.suggestion-table .btn-small.decline-suggestion:hover:not(:disabled) {
  background-color: #e2e8f0;
  color: #4a5568;
}
.suggestion-table .btn-small:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.suggestion-table.auto-applied-table tbody tr {
  background-color: #f0fdf4;
}
.suggestion-table.auto-applied-table tbody tr:hover {
  background-color: #dcfce7;
}/*# sourceMappingURL=main.css.map */