* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: #0a0a0a;
  color: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid #2a2b2f;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.sidebar .brand { color: #D4AF37; font-weight: 700; font-size: 1.1rem; margin-bottom: 2rem; }
.sidebar nav { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar nav a { font-size: 0.9rem; padding: 0.5rem 0.75rem; border-radius: 0.5rem; color: #d0d0d0; }
.sidebar nav a:hover, .sidebar nav a.active { background: #16171a; color: #D4AF37; }
.sidebar .logout { background: none; border: none; color: #9a9a9a; text-decoration: underline; cursor: pointer; font-size: 0.85rem; text-align: left; }

.content { flex: 1; padding: 2rem; min-width: 0; }

.card {
  background-color: #16171a;
  border: 1px solid #2a2b2f;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.gold { color: #D4AF37; }

.btn-gold, .btn-outline, .btn-danger {
  display: inline-block;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.9rem;
}
.btn-gold { background-color: #D4AF37; color: #0a0a0a; }
.btn-gold:hover { opacity: 0.85; }
.btn-gold:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-outline { border-color: #D4AF37; color: #D4AF37; background: transparent; }
.btn-danger { border-color: #b91c1c; color: #f87171; background: transparent; font-size: 0.85rem; padding: 0.4rem 1rem; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }

input, textarea, select {
  background-color: #000;
  border: 1px solid #2a2b2f;
  border-radius: 0.5rem;
  padding: 0.6rem 0.9rem;
  color: #f5f5f5;
  width: 100%;
  font-size: 0.9rem;
}

table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td { padding: 0.6rem 0.8rem; border-bottom: 1px solid #2a2b2f; text-align: left; font-size: 0.875rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.flex-gap { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-gray { color: #9a9a9a; }
.capitalize { text-transform: capitalize; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; } .mt-3 { margin-top: 0.75rem; } .mt-6 { margin-top: 1.5rem; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
.field-error { color: #f87171; font-size: 0.8rem; margin-top: 0.25rem; }
.checkbox-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; grid-column: span 2; }
.checkbox-row input { width: auto; }
