/* Genel yapı */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f6f9;
  margin: 0;
  padding: 0;
}

header {
  background: #2d7d46;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 22px;
}

.header-right a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
  font-size: 15px;
}

.header-right a:hover {
  text-decoration: underline;
}

main {
  display: flex;
  padding: 20px;
}

/* Sol panel */
aside {
  width: 250px;
  background: #ffffff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  height: fit-content;
}

aside h3 {
  margin-top: 0;
}

aside input {
  width: 100%;
  padding: 7px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.ureticilist {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
}

.ureticilist li {
  margin-bottom: 6px;
}

.ureticilist a {
  text-decoration: none;
  color: #2d7d46;
}

.ureticilist a:hover {
  text-decoration: underline;
}

/* Sağ panel */
section {
  flex: 1;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

section h2 {
  margin-top: 0;
  margin-bottom: 15px;
}

.alert-warning {
  background: #fff4e5;
  color: #b86b00;
  padding: 10px;
  margin-bottom: 8px;
  border-left: 4px solid #b86b00;
  border-radius: 5px;
}

/* Reçete kartları */
.recete-card {
  background: #f8f8f8;
  padding: 12px;
  margin-bottom: 12px;
  border-left: 4px solid #2d7d46;
  border-radius: 8px;
}

.recete-card ul {
  margin: 5px 0 0;
  padding-left: 20px;
}

.recete-card strong {
  font-size: 15px;
}

.recete-card p {
  margin-top: 5px;
  font-size: 14px;
}

.recete-card .btn-green,
.recete-card .btn-red {
  display: inline-block;
  padding: 5px 10px;
  font-size: 13px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 5px;
}

.btn-green {
  background: #2d7d46;
  color: white;
}

.btn-red {
  background: #c0392b;
  color: white;
}

.btn-green:hover {
  background: #256b3a;
}

.btn-red:hover {
  background: #a7281d;
}

/* Ürün ekleme alanı */
.urun-row {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}

.urun-row input, .urun-row select {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.urun-row button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

/* Filtre butonu */
#filtreBtn {
  background: #2d7d46;
  color: white;
  padding: 6px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 10px;
}

#filtreBtn:hover {
  background: #256b3a;
}

#filtrePanel {
  background: #f4f6f9;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
}

#filtrePanel label {
  display: inline-block;
  margin-right: 5px;
}

#filtrePanel input, #filtrePanel select {
  padding: 5px;
  margin-right: 10px;
  margin-bottom: 5px;
}

#filtrePanel button {
  padding: 5px 10px;
  background: #2d7d46;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Uyarılar */
.success-alert, .error-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 18px;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  z-index: 9999;
}

.success-alert { background: #2d7d46; }
.error-alert { background: #c0392b; }

/* Mobil uyum */
@media (max-width: 768px) {
  main {
    flex-direction: column;
  }
  aside {
    width: 100%;
    margin-bottom: 20px;
  }
  .urun-row {
    flex-direction: column;
  }
}