body {
  font-family: sans-serif;
  background: #111;
  color: white;
  padding: 20px;
  max-width: 900px;
  margin: auto;
}

select,
textarea,
button {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  box-sizing: border-box;
}

textarea {
  min-height: 180px;
}

button {
  background: #2e8b57;
  color: white;
  cursor: pointer;
}

h1,
h2,
h3 {
  color: white;
}

.hidden {
  display: none;
}

.login-hint {
  font-size: 0.875rem;
  opacity: 0.85;
  margin: 0 0 16px;
}

.login-status {
  font-size: 0.9375rem;
  color: #c8f7c8;
  margin: 0;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.checkbox {
  width: auto;
  margin-right: 10px;
}

#search {
  margin-bottom: 20px;
}

.event-card {
  background: #222;
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 0;
}

#events,
#members,
#galleries,
#news {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.admin-pagination-info {
  font-size: 0.9375rem;
  opacity: 0.85;
}

.admin-pagination .secondary-button {
  margin-bottom: 0;
  min-width: 110px;
}

.admin-pagination .secondary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

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

.event-meta {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 4px;
}

.member-card-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.member-role-public {
  color: #ffd54f;
  font-weight: 600;
  margin-left: 0.35em;
}

.member-role-anonymized {
  color: #9e9e9e;
  font-weight: 600;
  margin-left: 0.35em;
}

.member-list-card--anonymized {
  opacity: 0.78;
}

.member-card-contact--anonymized {
  font-style: italic;
}

.member-card-contact,
.member-card-consents {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 6px;
  line-height: 1.45;
}

.member-card-consents {
  margin-top: 8px;
}

.member-list-card .event-header {
  align-items: flex-start;
}

.member-consent-yes {
  color: #3ddc84;
  font-weight: 700;
}

.member-consent-no {
  color: #ff6b6b;
  font-weight: 700;
}

.actions {
  display: flex;
  gap: 8px;
}

.actions button {
  width: auto;
  margin: 0;
  padding: 8px 12px;
}

.delete-button {
  background: #c0392b;
}

.admin-topbar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.admin-topbar input {
  margin: 0;
}

.new-button {
  width: auto;
  white-space: nowrap;
}

.secondary-button {
  width: auto;
  white-space: nowrap;
  background: #444;
}

.admin-topbar .secondary-button,
.admin-topbar .new-button {
  margin-bottom: 0;
}

.member-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member-admin-actions button {
  width: auto;
  flex: 1 1 180px;
  margin-bottom: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 20px;
  margin-top: 30px;
}

.dashboard-card {
  background: #222;
  border-radius: 14px;
  padding: 40px 20px;
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: 0.2s;
}

.dashboard-card span {
  font-size: 18px;
}

.dashboard-card:hover {
  background: #2e8b57;
}

.admin-wrapper {
  max-width: 1200px;
  margin: auto;
  padding-top: 40px;
}

.admin-header {
  margin-bottom: 40px;
}

.admin-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.admin-escape-nav {
  flex-shrink: 0;
}

.admin-header h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 700;
}

.admin-header p {
  margin-top: 10px;
  opacity: 0.7;
  font-size: 18px;
}

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

.dashboard-card {
  background: linear-gradient(
    145deg,
    #222,
    #1a1a1a
  );

  border-radius: 20px;

  padding: 35px;

  text-decoration: none;

  color: white;

  transition: 0.25s ease;

  border: 1px solid rgba(255,255,255,0.05);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.25);
}

.dashboard-card:hover {
  transform: translateY(-4px);

  background: linear-gradient(
    145deg,
    #2e8b57,
    #256f46
  );
}

.dashboard-icon {
  font-size: 42px;
  margin-bottom: 20px;
}

.dashboard-card h2 {
  margin: 0 0 12px 0;
  font-size: 24px;
}

.dashboard-card p {
  margin: 0;
  opacity: 0.8;
  line-height: 1.5;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  gap: 20px;
}

.page-header h1 {
  margin: 0;
}

.page-header p {
  margin-top: 6px;
  opacity: 0.7;
}

.back-button {
  background: #222;
  color: white;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 10px;
  transition: 0.2s;
  white-space: nowrap;
}

.back-button:hover {
  background: #2e8b57;
}

.preview-image {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  margin-top: 10px;
}

.gpx-name {
  margin-top: 8px;
  opacity: 0.8;
  font-size: 14px;
}

.event-separator {
  margin: 30px 0 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  opacity: 0.7;
}

.event-separator::before,
.event-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.15);
}

.event-separator span {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-push {

  max-width: 700px;

}

.admin-push form {

  display: flex;

  flex-direction: column;

  gap: 1rem;

}

.admin-push input,
.admin-push textarea {

  width: 100%;

  padding: 0.75rem;

  border: 1px solid #ccc;

  border-radius: 8px;

  font: inherit;

}

.admin-push button {

  width: fit-content;

  padding: 0.75rem 1.5rem;

  border: none;

  border-radius: 8px;

  background: #ed1c24;

  color: white;

  font-weight: 600;

  cursor: pointer;

}

#push-status {

  margin-top: 1rem;

  font-weight: 600;

}

.member-admin-form label {
  display: block;
  margin-bottom: 15px;
}

.member-admin-form input,
.member-admin-form select {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 0;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  box-sizing: border-box;
}

.member-admin-hint,
.admin-hint {
  margin: -4px 0 15px;
  font-size: 14px;
  opacity: 0.75;
}

.member-edit-loading,
.member-edit-status {
  margin: 0 0 16px;
  font-size: 15px;
}

.member-edit-status--error {
  color: #ffb4b4;
}

.admin-field {
  display: block;
  margin-bottom: 15px;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 0;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  box-sizing: border-box;
}

.admin-field--inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-field--inline input {
  width: auto;
  margin-top: 0;
}

.admin-field--spaced {
  margin-top: 18px;
}

.member-admin-form > .row {
  margin-bottom: 0;
}

.member-admin-form > .row .admin-field {
  margin-bottom: 15px;
}

.member-consent-readonly {
  background: #222;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 15px;
}

.member-consent-readonly h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.member-consent-readonly p {
  margin: 0 0 6px;
  opacity: 0.9;
}

.gallery-images-section {
  margin-top: 30px;
}

.gallery-images-section h2 {
  margin: 0 0 15px;
  font-size: 20px;
}

.gallery-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.gallery-image-item {
  background: #222;
  border-radius: 10px;
  overflow: hidden;
}

.gallery-image-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery-image-item button {
  width: 100%;
  margin: 0;
  border-radius: 0;
}