/* Grundlayout */

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020617;
  color: #e5e7eb;
}

.bg-center {
  background: #0f172a;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-main {
  background: #020617;
}

/* Header */

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: #020617;
  border-bottom: 1px solid #1f2937;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #6366f1;
}

.user-info {
  font-size: 14px;
  color: #9ca3af;
}

.user-info a {
  color: #f97373;
  text-decoration: none;
  margin-left: 8px;
}

/* Main Container */

.main-container {
  max-width: 980px;
  margin: 24px auto;
  padding: 0 16px 40px;
}

h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

.subtitle {
  color: #9ca3af;
  margin-bottom: 24px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border 0.15s, transform 0.1s;
  cursor: pointer;
}

.btn.primary {
  background: #6366f1;
  color: white;
}

.btn.primary:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.btn.secondary {
  background: transparent;
  color: #e5e7eb;
  border-color: #4b5563;
}

.btn.secondary:hover {
  border-color: #6366f1;
  color: #6366f1;
  transform: translateY(-1px);
}

.btn-icon {
  border: none;
  background: transparent;
  color: #f97373;
  cursor: pointer;
  font-size: 16px;
}

.btn-icon:hover {
  color: #fca5a5;
}

/* Center Card für Login & Fehler */

.center-card {
  background: #111827;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  text-align: center;
  max-width: 480px;
  width: 100%;
  margin: auto;
}

.center-card.wide {
  max-width: 520px;
}

.center-card h1 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 24px;
}

.center-card p {
  margin-bottom: 20px;
  color: #9ca3af;
}

.card-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* Dashboard Guild Grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.guild-card {
  background: #020617;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid #1f2937;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.guild-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.guild-id {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 12px;
}

.guild-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status {
  font-size: 13px;
}

.status-ok {
  color: #22c55e;
}

.status-warn {
  color: #f97316;
}

.empty {
  color: #6b7280;
  margin-top: 16px;
}

/* Guild-Konfiguration */

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 20px;
}

.card {
  background: #020617;
  border-radius: 16px;
  padding: 16px 20px;
  border: 1px solid #1f2937;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.card h2 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 8px;
}

.card p.help {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 0;
  margin-bottom: 16px;
}

.field {
  margin-bottom: 12px;
}

label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

input[type="text"] {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #374151;
  background: #020617;
  color: #e5e7eb;
  font-size: 14px;
}

input[type="text"]::placeholder {
  color: #4b5563;
}

select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #374151;
  background: #020617;
  color: #e5e7eb;
  font-size: 14px;
}

select:focus {
  outline: none;
  border-color: #6366f1;
}

.emoji-select {
  min-width: 120px;
}

/* Tabelle */

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

th,
td {
  padding: 6px;
  border-bottom: 1px solid #1f2937;
  text-align: left;
}

th {
  font-weight: 500;
  color: #9ca3af;
}

tr:last-child td {
  border-bottom: none;
}

.table-actions {
  margin-top: 8px;
}

/* Actions unten */

.actions {
  margin-top: 20px;
  display: flex;
  gap: 8px;
}

/* Kleine Elemente */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 9999px;
  font-size: 11px;
  background: #0f172a;
  color: #9ca3af;
}

.modal-warning {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #f97316;
  color: white;
  padding: 25px 35px;
  border-radius: 12px;
  font-size: 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 2000;
}


