/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(to bottom, #000000, #333333);
  color: #ffffff;
  min-height: 100vh;
  font-size: 16px;
}

header {
  background: #222222;
  color: #ffffff;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

header h1 {
  font-size: 2.5rem;
  font-weight: 300;
}

main {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 20px;
}

h2 {
  margin-bottom: 10px;
  color: #cccccc;
  font-size: 1.8rem;
  font-weight: 400;
}

/* Form Styles */
.form-section {
  background: #444444;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  margin-bottom: 20px;
}

.form-section form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-section input,
.form-section select,
.form-section button {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #666;
  background: #555;
  color: #ffffff;
  flex: 1 1 200px;
}

.form-section input::placeholder {
  color: #cccccc;
}

.form-section button {
  background: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  flex: 1 1 100%;
  font-size: 1.1rem;
  font-weight: bold;
}

.form-section button:hover {
  background: #0056b3;
}

/* Filter Section */
.filter-section {
  background: #444444;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-section h3 {
  margin: 0;
  color: #cccccc;
  flex: 1;
  font-size: 1.5rem;
  font-weight: 400;
}

.filter-section input,
.filter-section select {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #666;
  background: #555;
  color: #ffffff;
  flex: 1 1 150px;
}

.filter-section input::placeholder {
  color: #cccccc;
}

/* Dashboard Styles */
.dashboard {
  background: #444444;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

#itemsContainer {
  display: flex;
  flex-direction: column-reverse;
  gap: 15px;
}

.item-card {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  border: 1px solid #666;
  padding: 15px;
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  background: #555555;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.5);
}

.item-card img {
  max-width: 150px;
  max-height: 150px;
  object-fit: cover;
  border-radius: 5px;
}

.item-details {
  flex: 1;
  min-width: 200px;
}

.item-details p {
  margin: 5px 0;
  color: #ffffff;
}

.claim-list {
  font-size: 0.9rem;
  color: #cccccc;
}

button.claim-btn,
button.delete-btn {
  padding: 5px 10px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  margin-right: 5px;
}

button.claim-btn {
  background: #28a745;
  color: #fff;
}

button.claim-btn:hover {
  background: #218838;
}

button.delete-btn {
  background: #dc3545;
  color: #fff;
}

button.delete-btn:hover {
  background: #c82333;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  margin-top: 40px;
  color: #cccccc;
  font-size: 0.9rem;
  background: #222222;
}

/* Responsive */
@media (max-width: 768px) {
  .item-card {
    flex-direction: column;
    align-items: center;
  }

  .item-card img {
    max-width: 100%;
  }

  .form-section form {
    flex-direction: column;
  }

  .filter-section {
    flex-direction: column;
    align-items: stretch;
  }
}
/* Form Rows */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.form-row input,
.form-row select {
  flex: 1 1 calc(33% - 10px); /* 3 fields per row */
}

.form-row:nth-child(2) input,
.form-row:nth-child(3) input {
  flex: 1 1 calc(50% - 10px); /* 2 fields per row */
}

.form-row:nth-child(4) input {
  flex: 1 1 100%; /* Image upload full width */
}

.form-section button {
  margin-top: 10px;
  width: 100%;
  font-size: 1.1rem;
  font-weight: bold;
}
