* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #1e222a;
  color: #e6e6e6;
  margin: 0;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

/* ---------- Karten ---------- */

.card {
  background: #2a2f3a;
  border-radius: 12px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card.medium {
  max-width: 600px;
}

.card.wide {
  max-width: 1100px;
}


/* ---------- Allgemein ---------- */

h1 {
  margin-top: 0;
  font-size: 22px;
  color: #ffffff;
}

nav {
  margin-bottom: 24px;
  font-size: 14px;
}

nav a {
  color: #7aa2f7;
  text-decoration: none;
  margin-right: 16px;
}

nav a:hover {
  text-decoration: underline;
}


/* ---------- Formulare ---------- */

label {
  display: block;
  font-size: 13px;
  color: #a9b1c2;
  margin: 14px 0 6px;
}

input,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #3c4250;
  background: #1e222a;
  color: #e6e6e6;
  font-size: 14px;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #7aa2f7;
}

button {
  margin-top: 20px;
  padding: 12px;
  width: 100%;
  border: none;
  border-radius: 8px;
  background: #5b7cfa;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #4a68e0;
}


/* ---------- Nachrichten ---------- */

.msg-success {
  background: #1f4d2e;
  color: #8ee6a8;
  padding: 12px;
  border-radius: 8px;
}

.msg-error {
  background: #4d1f1f;
  color: #e68e8e;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}


/* ---------- Status ---------- */

.status-offen,
.status-pending {
  color: #f0c674;
  font-weight: 600;
}

.status-angenommen,
.status-accepted {
  color: #8ee6a8;
  font-weight: 600;
}

.status-abgelehnt,
.status-rejected {
  color: #e68e8e;
  font-weight: 600;
}


/* ---------- Tabellen ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  background: #2a2f3a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid #3c4250;
}

th {
  color: #a9b1c2;
  font-weight: 600;
  background: #23272f;
}


/* ---------- Admin Übersicht ---------- */

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.top h1 {
  margin: 0;
  font-size: 24px;
}

a.logout {
  color: #e68e8e;
  text-decoration: none;
  font-size: 14px;
}

.settings-card {
  background: #2a2f3a;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.settings-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #a9b1c2;
}

.settings-card label {
  font-size: 14px;
}


/* ---------- Admin Einstellungen ---------- */

.settings-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.settings-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  color: #e6e6e6;
}

.settings-form input[type="checkbox"] {
  width: auto;
  margin: 0;
  padding: 0;
}

.settings-form button {
  width: auto;
  margin: 0;
  padding: 8px 16px;
  font-size: 13px;
}


/* ---------- Aktionen ---------- */

.actions a {
  color: #7aa2f7;
  text-decoration: none;
  font-size: 12px;
  margin-right: 10px;
}

.actions a.reject {
  color: #e68e8e;
}

.actions a.accept {
  color: #8ee6a8;
}

.actions a.delete {
  color: #999;
}


/* ---------- Chat-Button (Player Dashboard) ---------- */

.chat-btn {
  display: inline-block;
  padding: 6px 14px;
  background: #5b7cfa;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.chat-btn:hover {
  background: #4a68e0;
}

/* ---------- Chat-Icon (Admin Tabelle) ---------- */

.chat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #7aa2f7;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.15s;
}

.chat-icon:hover {
  background: #3c4250;
}

.chat-btn:hover {
  background: #4a68e0;
}


/* ---------- Appeal Details ---------- */

.meta {
  font-size: 13px;
  color: #a9b1c2;
  margin-bottom: 20px;
}

.original {
  background: #1e222a;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 20px;
  font-size: 14px;
}

.thread {
  margin-top: 20px;
}

.msg {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  max-width: 85%;
}

.msg-player {
  background: #2f3a5b;
}

.msg-admin {
  background: #3a3020;
  margin-left: auto;
}

.msg-meta {
  font-size: 11px;
  color: #a9b1c2;
  margin-bottom: 4px;
}

.locked {
  color: #a9b1c2;
  font-size: 13px;
  margin-top: 16px;
}


/* ---------- Responsive ---------- */

@media (max-width: 1150px) {
  .card.wide {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  body {
    padding: 20px 10px;
  }

  .card {
    padding: 20px;
  }

  table {
    display: block;
    overflow-x: auto;
  }

  .top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
.status-freigegeben {
  color: #a9b1c2;
  font-weight: 600;
}
.urgent-row {
  background: #4d2f1f;
}
.status-zurückgezogen {
  color: #a9b1c2;
  font-weight: 600;
}
.status-zurückgezogen {
  color: #a9b1c2;
  font-weight: 600;
}
.status-abgelaufen {
  color: #f0c674;
  font-weight: 600;
}

.urgent-row {
  background: #4d2f1f;
}

.health-ok {
   background: #8ee6a8; 
}

.health-bad { 
  background: #e68e8e; 
}