/* ================================
   ADMIN PANEL BASE THEME
================================ */
:root {
  --bg-main: #0f172a;
  --bg-panel: #111827;
  --bg-card: #1f2933;
  --border-soft: rgba(255,255,255,0.08);

  --text-main: #f9fafb;
  --text-muted: #9ca3af;

  --accent: #38bdf8;
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;

  --radius: 12px;
  --transition: 0.25s ease;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
}

/* ================================
   LAYOUT
================================ */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: var(--bg-panel);
  padding: 22px;
  border-right: 1px solid var(--border-soft);
}

.sidebar h2 {
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.sidebar a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.sidebar a:hover,
.sidebar a.active {
  background: var(--bg-card);
  color: var(--text-main);
}

/* ================================
   MAIN CONTENT
================================ */
.main-content {
  padding: 28px;
}

/* Header */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-header h1 {
  font-size: 1.4rem;
}

/* ================================
   CARDS / PANELS
================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.card-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ================================
   TABLES (AUDIT LOGS)
================================ */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 12px;
}

.table td {
  padding: 14px 12px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.85rem;
}

.table tr:hover {
  background: rgba(255,255,255,0.04);
}

/* Status badges */
.badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
}

.badge.success { background: rgba(34,197,94,0.2); color: var(--success); }
.badge.danger { background: rgba(239,68,68,0.2); color: var(--danger); }
.badge.warning { background: rgba(245,158,11,0.2); color: var(--warning); }

/* ================================
   BUTTONS
================================ */
.btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: black;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* ================================
   FORMS
================================ */
.input,
textarea,
select {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--text-main);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ================================
   STATS GRID
================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: bold;
}

/* ================================
   MODERATION PANEL
================================ */
.moderation-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--border-soft);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
  }
