body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f9fafb;
  color: #333;
  margin: 0;
  padding: 0;
}

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

hr.rounded {
  border-top: 8px solid #bbb;
  border-radius: 5px;
  margin-top: 30px;
  margin-bottom: 30px;
}

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

.dashboard-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  flex: 1;
  border-radius: 12px;
  padding: 20px;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card-blue {
  background: linear-gradient(to right, #4e54c8, #8f94fb);
}

.card-black {
  background: linear-gradient(to right, #232526, #414345);
}

.card-title {
  font-size: 20px;
  font-weight: bold;
  opacity: 0.85;
}

.card-value {
  font-size: 36px;
  font-weight: bold;
  margin-top: 8px;
}

.dashboard-section {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.dashboard-section h4,
.dashboard-section h5 {
  margin-top: 0;
}

.category-list,
.empty-category-list {
  padding-left: 20px;
}

.category-list li::before {
  content: "📌 ";
}

.empty-category-list li::before {
  content: "⚠️ ";
}

.ingredient-search {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ingredient-search form {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.ingredient-search input[type="text"] {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.ingredient-search button {
  padding: 8px 16px;
  background-color: #FFA930;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.ingredient-search button:hover {
  background-color: #FFA930;
}

.card, .dashboard-section, .ingredient-search {
  animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* SnowUI-inspired dashboard styles */
.dashboard-header {
  margin-bottom: 30px;
  border-bottom: 2px solid #4e54c8;
  padding-bottom: 10px;
}

.dashboard-header h2 {
  color: #722102;
  margin-bottom: 4px;
}

.dashboard-header p {
  color: #555;
  margin: 0;
}

.dashboard-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.dashboard-box {
  flex: 1;
  min-width: 300px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-top: 20px;
}

.dashboard-box h4 {
  margin-top: 0;
  color: #4e54c8;
}

.ingredient-form input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 10px;
}

.ingredient-form button {
  width: 100%;
  padding: 10px;
  background-color: #FFA930;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.ingredient-form button:hover {
  background-color: #ef9a24;
}
.dashboard-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-start;
  align-items: stretch;
}

.card.mini-card {
  background: #f4f7ff;
  border-radius: 8px;
  padding: 20px;
  min-width: 120px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  color: #333;
  flex: 0 1 250px;
  width: 250px;
  margin-top: 10px;
}

.card.mini-card .card-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.card.mini-card .card-value {
  font-size: 22px;
  font-weight: bold;
}

.card.mini-card.empty {
  opacity: 0.5;
  background: #eee;
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
  }
  
  .sidebar {
    width: 250px;
    background-color: #FFA930;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
  }
  
  .sidebar div:first-child {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  .sidebar a {
    color: white;
    text-decoration: none;
    margin: 10px 0;
    display: block;
    font-weight: 500;
    transition: padding 0.3s ease, font-size 0.3s ease;
  }
  
  .sidebar a:hover {
    text-decoration: underline;
  }
  
  .main-content {
    flex: 1;
    padding: 30px;
  }

/* Sidebar collapse styles */
.sidebar.collapsed {
  width: 60px;
}

.sidebar.collapsed div:first-child {
  display: none;
}

.sidebar.collapsed a {
  text-align: center;
  padding: 10px 0;
  font-size: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar.collapsed a::after {
  content: attr(title);
  position: absolute;
  left: 70px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
  max-width: 200px;
}

.sidebar.collapsed a:hover::after {
  opacity: 1;
}

.sidebar-toggle {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  margin-bottom: 20px;
  align-self: flex-end;
}

.sidebar a:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

form {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

form label {
  font-weight: bold;
  margin-top: 12px;
  display: block;
}

form input[type="text"],
form input[type="number"],
form textarea,
form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

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

form .form-row > * {
  flex: 1;
  min-width: 200px;
}

form .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

form .checkbox-group label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: normal;
}

form button,
form input[type="submit"] {
  padding: 10px 20px;
  background-color: #059d00;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

form button:hover,
form input[type="submit"]:hover {
  background-color: #067102;
}

.sidebar a {
  color: white;
  text-decoration: none;
  margin: 6px 0;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.3s;
}

.sidebar a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-toggle {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  margin-bottom: 20px;
  align-self: flex-end;
}

.sidebar.collapsed .menu-label {
  display: none;
}

.dashboard-header-with-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.header-logo-img {
  height: 100px;
  width: auto;
}
.ingredient-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 30px;
}
.recipe-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.recipe-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 16px;
  width: calc(33.333% - 16px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recipe-card h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
  color: #333;
}

.recipe-card p {
  margin: 2px 0;
  font-size: 14px;
  color: #555;
}

.card-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.card-actions a {
  text-decoration: none;
  color: #4e54c8;
  font-weight: 500;
}

.card-actions a:hover {
  text-decoration: underline;
}
.card-actions a.btn-edit {
  display: inline-block;
  padding: 6px 12px;
  background-color: #FFA930;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.card-actions a.btn-edit:hover {
  background-color: #d8891b;
}

.card-actions a.btn-delete {
  display: inline-block;
  padding: 6px 12px;
  background-color: #e53935;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.card-actions a.btn-delete:hover {
  background-color: #c62828;
}
.category-actions a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: white;
  margin-right: 8px;
  transition: background-color 0.2s ease;
}

.category-actions a.edit {
  background-color: #4e54c8;
}

.category-actions a.edit:hover {
  background-color: #3e42a5;
}

.category-actions a.delete {
  background-color: #e53935;
}

.category-actions a.delete:hover {
  background-color: #c62828;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.category-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 16px;
  min-width: 200px;
  max-width: 300px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-name {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 16px;
  color: #333;
}

.category-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.category-actions a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: white;
  transition: background-color 0.2s ease;
}

.category-actions a.edit {
  background-color: #ee9b26d4; /* zachter blauw */
}

.category-actions a.edit:hover {
  background-color: #ba7514;
}

.category-actions a.delete {
  background-color: #ee2a2adc; /* zachter rood */
}

.category-actions a.delete:hover {
  background-color: #c84343;
}
.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 15px;
  padding: 10px;
  background-color: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.suggestion-item {
  background-color: #f0f0f0;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  color: #333;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.05);
  transition: background-color 0.3s;
}

.suggestion-item:hover {
  background-color: #e6e6e6;
  cursor: default;
}

/* Keyword grid styles */
.keyword-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.keyword-item {
  background-color: #fff4e5;
  border: 1px solid #ffc66d;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  color: #333;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: background-color 0.3s;
}

.keyword-item:hover {
  background-color: #ffebcc;
  cursor: default;
}

.keyword-search {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.keyword-search form {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.keyword-search input[type="text"] {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.keyword-search button {
  padding: 8px 16px;
  background-color: #FFA930;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.keyword-search button:hover {
  background-color: #FFA930;
}

.card, .dashboard-section, .keyword-search {
  animation: fadeIn 0.4s ease-in;
}