/* =====================================================
   Admin Tools - 100% Grau, kein Blau, kein Lila!
   ===================================================== */

:root {
  /* Nur noch Grautöne! */
  --primary: #6b7280;
  --primary-hover: #8b92a0;
  --primary-light: #b0b5c0;
  
  --success: #00C851;
  --warning: #FFB300;
  --danger: #FF3547;
  
  /* Hintergründe */
  --bg-primary: #1a1a1a;
  --bg-secondary: #252525;
  --bg-tertiary: #2a2a2a;
  --bg-darker: #0f0f0f;
  
  /* Borders */
  --border: #3a3a3a;
  --border-hover: #4a4a4a;
  
  /* Text */
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --text-muted: #707070;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: #1a1a1a;
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 30px 20px;
}

.container-narrow {
  max-width: 1200px;
}

.container-centered {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 20px;
}

.card {
  background: #252525;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  border: 2px solid #3a3a3a;
}

.card-sm {
  padding: 30px;
  max-width: 500px;
  margin: 0 auto;
}

header {
  background: #252525;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  border: 2px solid #3a3a3a;
}

h1 {
  color: #b0b5c0;
  font-size: 32px;
  margin-bottom: 8px;
  font-weight: 700;
}

h2 {
  font-size: 22px;
  color: #b0b5c0;
  font-weight: 700;
  margin-bottom: 20px;
}

h3 {
  font-size: 18px;
  color: #e0e0e0;
  font-weight: 600;
  margin-bottom: 15px;
}

.subtitle,
.muted {
  color: #a0a0a0;
  font-size: 14px;
}

.text-sm {
  font-size: 13px;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-btn,
header nav a {
  background: #252525;
  color: #e0e0e0;
  border: 2px solid #3a3a3a;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.tab-btn:hover,
header nav a:hover {
  border-color: #6b7280;
  background: #2a2a2a;
}

.tab-btn.active,
header nav a.active {
  background: #6b7280;
  border-color: #6b7280;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

header nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

header .spacer {
  margin-left: auto;
}

.btn,
button.btn {
  background: #6b7280;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background: #8b92a0;
  transform: translateY(-2px);
}

.btn-success {
  background: #00C851;
}

.btn-success:hover {
  background: #00a641;
}

.btn-danger {
  background: #FF3547;
}

.btn-danger:hover {
  background: #e02537;
}

.btn-warning {
  background: #FFB300;
}

.btn-warning:hover {
  background: #e0a000;
}

.btn-ghost {
  background: transparent;
  border: 2px solid #3a3a3a;
  color: #e0e0e0;
}

.btn-ghost:hover {
  border-color: #6b7280;
  color: #b0b5c0;
  background: #2a2a2a;
  transform: none;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

.form-group,
.form-row {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #a0a0a0;
  font-weight: 600;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  background: #0f0f0f;
  border: 2px solid #3a3a3a;
  border-radius: 6px;
  color: #e0e0e0;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}

input::placeholder,
textarea::placeholder {
  color: #707070;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #6b7280;
  background: #1a1a1a;
}

input[type="search"],
input.rounded {
  border-radius: 20px;
}

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

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

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th {
  background: #0f0f0f;
  color: #e0e0e0;
  padding: 14px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid #3a3a3a;
}

td {
  padding: 12px 14px;
  border: 1px solid #3a3a3a;
  font-size: 13px;
  color: #e0e0e0;
}

tbody tr {
  transition: background 0.2s;
}

tbody tr:hover {
  background: #2a2a2a;
}

td.nowrap {
  white-space: nowrap;
}

.badge,
.pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: #0f0f0f;
  color: #a0a0a0;
  border: 1px solid #3a3a3a;
}

.badge-success,
.pill-success {
  background: rgba(0, 200, 81, 0.2);
  color: #00C851;
  border-color: #00C851;
}

.badge-danger,
.pill-danger {
  background: rgba(255, 53, 71, 0.2);
  color: #FF3547;
  border-color: #FF3547;
}

.badge-warning,
.pill-warning {
  background: rgba(255, 179, 0, 0.2);
  color: #FFB300;
  border-color: #FFB300;
}

.pill {
  padding: 6px 14px;
  border-radius: 20px;
}

.pill .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
}

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

.stat-card {
  background: #0f0f0f;
  padding: 20px;
  border-radius: 8px;
  border: 2px solid #3a3a3a;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #b0b5c0;
}

.stat-label {
  font-size: 13px;
  color: #a0a0a0;
  margin-top: 5px;
}

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

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

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

.flex-start {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

.section-title {
  font-size: 22px;
  color: #b0b5c0;
  font-weight: 700;
}

.alert {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-warning {
  background: rgba(255, 179, 0, 0.2);
  border: 2px solid #FFB300;
  color: #FFB300;
}

.alert-info {
  background: rgba(160, 160, 160, 0.2);
  border: 2px solid #8b92a0;
  color: #b0b5c0;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #252525;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  border: 2px solid #3a3a3a;
}

.modal-header {
  font-size: 20px;
  color: #b0b5c0;
  margin-bottom: 20px;
  font-weight: 700;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 25px;
  justify-content: flex-end;
}

.login-card {
  width: 100%;
  max-width: 500px;
}

.error-msg {
  color: #FF3547;
  font-size: 14px;
  min-height: 24px;
  margin-top: 10px;
  padding: 10px;
  background: rgba(255, 53, 71, 0.2);
  border-radius: 6px;
  border: 2px solid #FF3547;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 30px; }

.text-center { text-align: center; }
.text-right { text-align: right; }

a {
  color: #b0b5c0;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #d0d5e0;
}

@media (max-width: 768px) {
  .container {
    padding: 15px 10px;
  }
  
  table {
    font-size: 11px;
  }
  
  th, td {
    padding: 8px;
  }
  
  .tabs {
    flex-direction: column;
  }
  
  .tab-btn,
  header nav a {
    width: 100%;
    text-align: center;
  }
  
  .grid,
  .form-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 6px;
  border: 2px solid #1a1a1a;
}

::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}
