body {
  font-family: system-ui, Arial, sans-serif;
  background: #f1f5f9;
  color: #0f172a;
  margin: 0;
}

h2 {
  margin-bottom: 20px;
  color: #2563eb;
}

.form-card {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  max-width: 500px;
  margin: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

label {
  margin-top: 12px;
  font-weight: 600;
}

input, textarea {
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
}

input[type="file"] {
  padding: 4px;
}

button.btn {
  margin-top: 20px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

button.btn:hover {
  background: #1e40af;
}

.msg {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #0c4a6e;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.card-media {
  background: #f8fafc;
  display: grid;
  place-items: center;
  height: 160px;
  border-bottom: 1px solid #e5e7eb;
}
.card-media img { max-height: 140px; max-width: 90%; object-fit: contain; }
.noimg { color: #94a3b8; font-size: 14px; }

.card-body { padding: 14px; }
.card-body .row { margin-top: 6px; font-size: 14px; }
.card-body .row strong { color: #334155; margin-right: 6px; }
.muted { color: #64748b; font-size: 13px; }

.actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.actions form { display: inline; }

.btn-danger {
  background: #dc2626 !important;
}

input[type="checkbox"] { transform: translateY(1px); }
.card .actions { flex-wrap: wrap; }
.card .actions .btn { white-space: nowrap; }


.menu-links { list-style: none; padding: 0; margin: 8px 0 0; }
.menu-links li { margin: 6px 0; }
.menu-links a { text-decoration: none; font-weight: 600; color: #2563eb; }
.menu-links a:hover { text-decoration: underline; }