/* General */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9fb;
  color: #1c2340;
  margin: 0;
  padding: 0;
}

/* Top bar */
.topbar {
  background: #1c2340;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  font-weight: bold;
  letter-spacing: 1px;
}
.topbar .brand {
  font-size: 1.3rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #ffffff;
}
.topbar nav button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.95rem;
  margin-left: 18px;
  cursor: pointer;
  transition: color 0.2s;
}
.topbar nav button:hover {
  color: #a7c0ff;
}

/* Tabs / sections */
.tab {
  display: none;
  padding: 30px;
  max-width: 900px;
  margin: 0 auto;
}
.tab.active {
  display: block;
}
.tab h2 {
  text-transform: uppercase;
  font-weight: 700;
  color: #1c2340;
  margin-bottom: 20px;
  font-size: 1.3rem;
  text-align: center;
}

/* Forms */
form {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #2f4ba1;
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccd2e3;
  border-radius: 6px;
  font-size: 0.95rem;
}
textarea {
  resize: vertical;
}

/* Buttons */
button {
  background: #2f4ba1;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover {
  background: #223379;
}
button.ghost {
  background: transparent;
  border: 1px solid #2f4ba1;
  color: #2f4ba1;
}
button.ghost:hover {
  background: #2f4ba1;
  color: #fff;
}

/* Cards (Feed / Moderation) */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #1c2340;
}
.card p {
  margin: 0 0 12px;
  line-height: 1.4;
}
.card-foot {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Avatar grid */
.avatar-grid {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.avatar-grid img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s, transform 0.2s;
}
.avatar-grid img:hover {
  transform: scale(1.05);
}
.avatar-grid img.selected {
  border-color: #2f4ba1;
}

/* Messages */
.msg {
  margin-top: 10px;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.9rem;
}
.msg.ok {
  background: #e6f6ed;
  color: #247c43;
  border: 1px solid #b4e0c4;
}
.msg.err {
  background: #fdeaea;
  color: #c73a3a;
  border: 1px solid #f2bcbc;
}
.hint {
  font-size: 0.85rem;
  color: #777;
}

/* Map */
.map {
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Footer */
.footer {
  margin-top: 40px;
  text-align: center;
  padding: 20px;
  background: #1c2340;
  color: #fff;
  font-size: 0.9rem;
}
