body {
  font-family: 'Segoe UI', sans-serif;
  background: #f0f4f3;
  margin: 0;
  padding: 0;
}

header {
  background: #00796b;
  color: white;
  padding: 20px;
  text-align: center;
}

nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  background: #004d40;
  padding: 15px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 5px;
}

nav a:hover {
  background-color: #00695c;
}

.container {
  max-width: 900px;
  margin: 30px auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

h2 {
  color: #00796b;
  text-align: center;
}

form input, form select, form button {
  padding: 10px;
  margin: 8px 0;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

form button {
  background: #00796b;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

form button:hover {
  background: #004d40;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table, th, td {
  border: 1px solid #ccc;
}

th {
  background: #00796b;
  color: white;
  padding: 10px;
}

td {
  padding: 8px;
  text-align: left;
}

.message {
  margin-top: 15px;
  color: green;
}

.bahan-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}

.bahan-item input {
  padding: 8px;
  font-size: 14px;
}

.bahan-item button {
  padding: 6px 10px;
  background: crimson;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.bahan-item button:hover {
  background: darkred;
}

form .form-actions {
  margin-top: 15px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

form .form-actions button {
  flex: 1;
  min-width: 150px;
}

table th, table td {
  text-align: center;
}

.action-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.action-buttons a, .action-buttons button {
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.action-buttons .edit {
  background-color: #0288d1;
  color: white;
  border: none;
}

.action-buttons .delete {
  background-color: crimson;
  color: white;
  border: none;
}
