* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: #1a1b2e;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: #7289da; text-decoration: none; }
a:hover { color: #8599e8; }

/* Navbar */
.navbar { background: #232544; border-bottom: 1px solid #2d2f5a; padding: 0 20px; }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; height: 56px; gap: 24px; }
.nav-brand { font-size: 18px; font-weight: 700; color: #fff !important; }
.nav-links { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-links a, .tab-btn { font-size: 14px; padding: 6px 12px; border-radius: 6px; transition: 0.2s; color: #a0a0b0; text-decoration: none; border: none; background: none; cursor: pointer; }
.nav-links a:hover, .tab-btn:hover, .nav-links a.active { background: rgba(114,137,218,0.15); color: #7289da; }
.tab-btn.active { background: rgba(114,137,218,0.25); color: #7289da; }
.nav-user { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #b0b0b0; margin-left: 12px; }
.nav-avatar { width: 24px; height: 24px; border-radius: 50%; }
.nav-logout { color: #ff6b6b !important; }
.discord-badge { font-size: 11px; background: #5865F2; color: #fff; padding: 2px 6px; border-radius: 4px; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 30px 20px; flex: 1; }

/* Cards */
.card {
  background: #232544;
  border: 1px solid #2d2f5a;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}
.card h2 { font-size: 20px; margin-bottom: 8px; color: #fff; }
.card h3 { font-size: 16px; margin-bottom: 16px; color: #ddd; }
.card p { color: #a0a0b0; line-height: 1.6; }

/* Buttons */
.btn {
  display: inline-block; padding: 8px 18px; border-radius: 6px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  background: #2d2f5a; color: #e0e0e0; border: 1px solid #3d3f6a;
  transition: 0.2s; text-decoration: none;
}
.btn:hover { background: #3d3f6a; color: #fff; }
.btn-primary { background: #5865F2; border-color: #5865F2; color: #fff; }
.btn-primary:hover { background: #4752c4; }
.btn-danger { background: #ed4245; border-color: #ed4245; color: #fff; }
.btn-danger:hover { background: #c03537; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.save-btn { background: #5865F2; border-color: #5865F2; color: #fff; white-space: nowrap; }
.save-btn:hover { background: #4752c4; }
.save-btn.saved { background: #3ba55c; border-color: #3ba55c; }

/* Alerts */
.alert {
  padding: 14px 18px; border-radius: 8px; margin-bottom: 20px;
  font-size: 14px; display: none;
}
.alert-error { background: rgba(237,66,69,0.15); border: 1px solid #ed4245; color: #ff6b6b; display: block; }
.alert-success { background: rgba(59,165,92,0.15); border: 1px solid #3ba55c; color: #6bcf8c; display: block; }

/* Tab content */
.tab-content { display: none; }
.tab-content.active { display: block; }

h2 { font-size: 20px; margin-bottom: 8px; color: #fff; }

/* Category filter */
.category-filter { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.cat-btn {
  padding: 6px 16px; border-radius: 20px; border: 1px solid #3d3f6a;
  background: transparent; color: #a0a0b0; cursor: pointer; font-size: 13px; transition: 0.2s;
}
.cat-btn:hover { border-color: #7289da; color: #7289da; }
.cat-btn.active { background: rgba(114,137,218,0.2); border-color: #7289da; color: #7289da; }

/* Forms */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #b0b0b0; margin-bottom: 6px; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
input, textarea, select {
  width: 100%; padding: 10px 14px; border-radius: 6px;
  background: #1a1b2e; border: 1px solid #3d3f6a;
  color: #e0e0e0; font-size: 14px; font-family: inherit;
  transition: 0.2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: #5865F2; }
textarea { resize: vertical; min-height: 40px; }
input[type="checkbox"] { width: auto; margin-right: 6px; }
.checkbox-label { display: flex !important; align-items: center; gap: 6px; cursor: pointer; font-weight: 400 !important; color: #c0c0c0 !important; }
select { cursor: pointer; }
.help-text { display: block; font-size: 12px; color: #707080; margin-top: 4px; }
.help-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; background: #3d3f6a;
  color: #a0a0b0; font-size: 11px; font-weight: 700; cursor: help;
  margin-left: 4px; vertical-align: middle;
}
code { background: #1a1b2e; padding: 2px 6px; border-radius: 4px; font-size: 13px; color: #a0a0b0; }

/* Users table */
.admin-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.admin-table th, .admin-table td {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid #2d2f5a; font-size: 14px;
}
.admin-table th { color: #b0b0b0; font-weight: 600; font-size: 12px; text-transform: uppercase; }
.admin-table td { color: #a0a0b0; }

.text-muted { color: #707080; font-size: 13px; }
.form-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Footer */
.footer {
  text-align: center; padding: 20px; color: #505060;
  font-size: 12px; border-top: 1px solid #2d2f5a; margin-top: auto;
}

/* Notification fixed */
.notification {
  position: fixed; top: 20px; right: 20px; z-index: 9999;
  max-width: 400px; animation: slideIn 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
