.admin-body {
  margin: 0;
  font-family: "Lexend", system-ui, sans-serif;
  background: #f7f8fa;
  color: #3d4657;
  min-height: 100vh;
}

.admin-top {
  background: #fff;
  border-bottom: 1px solid #e2e6ee;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-top a {
  color: #2d6a6a;
  font-weight: 600;
  text-decoration: none;
}

.admin-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.admin-card {
  background: #fff;
  border: 1px solid #e2e6ee;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 20px rgba(28, 35, 48, 0.05);
}

.admin-card h1,
.admin-card h2 {
  margin-top: 0;
  color: #1c2330;
}

.admin-card h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
select,
textarea {
  width: 100%;
  border: 1px solid #e2e6ee;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* margin on .password-field wrapper when password-reveal.js is used */
.password-field {
  margin-bottom: 1rem;
}

.password-field input {
  margin-bottom: 0;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: #2d6a6a;
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: #1c2330;
  border: 1px solid #e2e6ee;
}

.btn-danger {
  background: #fff;
  color: #a33d28;
  border: 1px solid #e8b5a8;
}

.status {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.status.ok {
  background: #e6f2f2;
  color: #245656;
}

.status.err {
  background: #fde8e3;
  color: #a33d28;
}

.status.hidden {
  display: none;
}

.field-hint {
  font-size: 0.85rem;
  color: #5c6575;
  margin: -0.5rem 0 1rem;
}

.img-preview {
  max-width: 200px;
  max-height: 120px;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  display: block;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.tabs button {
  font-family: inherit;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #e2e6ee;
  background: #fff;
  cursor: pointer;
}

.tabs button.active {
  background: #e6f2f2;
  border-color: #b8d9d9;
  color: #245656;
}

.publish-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.publish-row input {
  width: auto;
  margin: 0;
}
