/* ===================== ADMIN DASHBOARD ===================== */

.dashboard-container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.25rem;
  color: #081E3F;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.admin-item-card {
  width: 100%;
  max-width: 300px;
  min-width: 300px;
  margin: 0 auto;
  background-color: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-item-card:hover {
  transform: translateY(-5px);
}

.admin-item-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.admin-item-card p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
}

.admin-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin: 1rem 0;
  border: 1px solid #ddd;
}

.status {
  font-weight: bold;
  color: #2e8b57;
}

.status.pending {
  color: #c0392b;
}

.item-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.item-buttons button {
  flex: 1;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  color: white;
  transition: background-color 0.2s ease;
}

button.approve-btn {
  background-color: #081E3F;
}

button.approve-btn:hover {
  background-color: #2a406b;
}

button.delete-btn {
  background-color: #B6862C;
}

button.delete-btn:hover {
  background-color: #8f6b29;
}

.empty-msg {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-top: 2rem;
}


/* ===================== AUTH FORM ===================== */

.auth-form-container {
  max-width: 420px;
  margin: 5rem auto;
  padding: 2.5rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.auth-form h2 {
  font-size: 1.75rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #081E3F;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form label {
  font-weight: 600;
  color: #333;
}

.auth-form input {
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #fff;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

.auth-form input:focus {
  border-color: #081E3F;
  box-shadow: 0 0 0 3px rgba(8, 30, 63, 0.2);
  outline: none;
}

.auth-form button[type="submit"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem;
  background-color: #081E3F;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.auth-form button[type="submit"]:hover {
  background-color: #2a406b;
}

.toggle-btn {
  background: none;
  border: none;
  color: #B6862C;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: 0.95rem;
  margin-left: 0.25rem;
}

.success-message {
  color: green;
  font-weight: bold;
  text-align: center;
  margin-top: 1rem;
}

.error-message {
  color: red;
  font-weight: bold;
  text-align: center;
  margin-top: 1rem;
}


/* ===================== ITEMS ===================== */

.search-div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 35%;
}

.search-bar {
  text-align: center; 
  background-color: #F2F0EF;
  color: #66615E;
  border-radius: 80px;
  box-sizing: border-box;
}

.search-bar::placeholder {
  text-align: center;
}

.search-result {
  padding: 0;
  margin-top: 0.2em;
  background-color: #F2F0EF;
  border-radius: 20px;
}

.search-individual-result {
  list-style-type: none;
  padding: 0.2em;
}

.search-individual-result:hover {
  color: red;
  cursor: pointer;
}

.search-individual-result:focus {
  outline: none;
  background-color: white;
}

.items-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 2rem;
}

.items-row-individual-item {
  max-width: 20%;
  flex: 1 1 250px;
  display: flex;
  justify-content: center;
}

.item-card {
  width: 250px;
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.item-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
  max-height: 200px;
}

.item-card img:hover {
  transform: scale(1.05);
}

.item-card-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: #222;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-card p {
  margin: 1rem;
}

.item-card-description {
  flex-grow: 1;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.4;
  margin: 0.25rem 0 1rem;
  overflow: hidden;
}

.item-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 0.5rem;
}

.item-card-footer-location {
  background-color: #f0f0f0;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #555;
}

.item-card-footer-contact {
  background: #B6862C;
  border: none;
  opacity: 0.9;
  color: white;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  border-radius: 6px;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  font-weight: bold;
}

.item-card-footer-contact:hover {
  opacity: 1;
  background-color: #a07423;
}

.item-status-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.7rem;
  border-radius: 12px;
  font-weight: bold;
  color: white;
  z-index: 2;
}

.item-status-badge.claimed {
  background-color: #6c757d;
  color: white;
}

.item-status-badge.pending {
  background-color: #D9534F;
}


/* ===================== REPORT LOST ===================== */

body {
  background-color: #f9fafb;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.report-form {
  max-width: 700px;
  margin: 3rem auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.report-form h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.75rem;
  text-align: center;
  color: #0f172a;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-grid > div {
  display: flex;
  flex-direction: column;
}

.full-span {
  grid-column: 1 / -1;
}

label {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

input,
textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #fff;
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #081e3f;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

small {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #64748b;
}

.image-preview {
  margin-top: 0.5rem;
}

.image-preview img {
  max-height: 150px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.image-error {
  color: red;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.button-wrapper {
  margin-top: 2rem;
}

.back-button-container {
  margin-bottom: 1rem;
  text-align: left;
}

.submit-button-container {
  display: flex;
  justify-content: center;
}

.back-button {
  background-color: transparent;
  color: #081e3f;
  border: none;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  padding-left: 0.5rem;
}

.back-button:hover {
  text-decoration: underline;
}

.submit-button {
  background-color: #081e3f;
  color: white;
  font-weight: bold;
  border: none;
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease-in-out;
}

.submit-button:hover {
  background-color: #2a406b;
}
