/* Grundläggande design */
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  background-color: #f4f7f6;
  color: #333;
  margin: 0; /* Ändrad till 0 så menyn fäster i kanten */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- NY MENYRAD --- */
.navbar {
  width: 100%;
  background-color: #2c3e50;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px; /* Skapar luft ner till din container */
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.2em;
  text-decoration: none;
  color: white;
}

.logout-btn {
  background-color: #e74c3c;
  color: white;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.logout-btn:hover {
  background-color: #c0392b;
}

.container {
  width: 100%;
  max-width: 600px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  margin: 0 10px;
}

h1 {
  text-align: center;
  color: #2c3e50;
}

/* Formulär */
.add-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap; /* Gör att fälten bryts snyggt på små skärmar */
}

select,
input[type="text"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  background-color: white;
}

input[type="text"] {
  flex: 1;
  min-width: 150px;
}

button {
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  background-color: #3498db;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background-color: #2980b9;
}

button.delete-btn {
  background-color: #e74c3c;
  padding: 5px 10px;
  font-size: 14px;
}

/* Kategorier och Listor */
.category-header {
  background-color: #2c3e50;
  color: white;
  padding: 10px 15px;
  margin-top: 20px;
  border-radius: 5px 5px 0 0;
  font-weight: bold;
  font-size: 1.1em;
}

ul.category-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  border: 1px solid #eee;
  border-top: none;
  border-radius: 0 0 5px 5px;
}

li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

li:last-child {
  border-bottom: none;
}

/* Statusknappar för mobilvyn */
.status-btn {
  background-color: #ecf0f1;
  color: #7f8c8d;
  width: 80px;
}

.status-btn.active-plockad {
  background-color: #f1c40f; /* Gul */
  color: #fff;
}

.status-btn.active-packad {
  background-color: #2ecc71; /* Grön */
  color: #fff;
}

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

.controls {
  display: flex;
  gap: 10px;
}

/* Din snygga footer */
.site-footer {
  margin-top: 60px;
  text-align: center;
  font-size: 14px;
  color: #546e7a;
  border-top: 1px solid #cfd8dc;
  padding-top: 20px;
  padding-bottom: 20px;
  width: 100%;
}
