﻿:root {
  --bg: #f8f7f2;
  --surface: #ffffff;
  --ink: #1f2a2d;
  --muted: #66757a;
  --accent: #007a6b;
  --accent-2: #d65d0e;
  --danger: #b51d28;
  --ok: #177245;
  --border: #dbe2e3;
  --shadow: 0 10px 22px rgba(31, 42, 45, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 12% 5%, #f7ead5 0%, #f8f7f2 44%),
    linear-gradient(180deg, #f6f8f8 0%, #f8f7f2 100%);
  font-family: "Segoe UI", "Tahoma", sans-serif;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 86px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(248, 247, 242, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.topbar h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.2px;
}

.content {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 14px 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.card h3,
.card h4 {
  margin: 0 0 8px;
}

.meta {
  color: var(--muted);
  font-size: 13px;
}

.post-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 10px auto 6px;
}

.post-image-wrap {
  margin: 10px 0 6px;
}

.post-image-error {
  color: var(--muted);
  font-size: 13px;
}

.row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.spread {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.btn,
.ghost-btn,
.danger-btn,
.ok-btn,
.warn-btn {
  border: none;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn:hover,
.ghost-btn:hover,
.danger-btn:hover,
.ok-btn:hover,
.warn-btn:hover {
  transform: translateY(-1px);
}

.btn {
  background: var(--accent);
  color: #fff;
}

.ghost-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.danger-btn {
  background: var(--danger);
  color: #fff;
}

.ok-btn {
  background: var(--ok);
  color: #fff;
}

.warn-btn {
  background: var(--accent-2);
  color: #fff;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 10px 11px;
  font: inherit;
  color: inherit;
  background: #fff;
}

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

.field {
  margin-bottom: 10px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 5px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}

.checkbox input {
  width: 16px;
  height: 16px;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(5px);
}

.nav-btn {
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  padding: 9px 6px;
  font-size: 12px;
  cursor: pointer;
}

.nav-btn.active {
  background: #eaf2f1;
  color: var(--accent);
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  background: #edf3f2;
  color: var(--accent);
}

.status-pending {
  background: #fff2e4;
  color: #9f540f;
}

.status-accepted {
  background: #e6f6ed;
  color: #1a7b4a;
}

.status-rejected {
  background: #ffe8ea;
  color: #b51d28;
}

.list {
  margin: 0;
  padding-left: 18px;
}

.list li {
  margin-bottom: 3px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-weight: 600;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.empty {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0;
}

.kicker {
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.toast {
  position: fixed;
  right: 14px;
  bottom: 96px;
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  background: rgba(26, 48, 52, 0.96);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 760px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .table {
    font-size: 13px;
  }

  .topbar h1 {
    font-size: 18px;
  }
}
