/* ========================================================
   GARAGECORE — SUPER ADMIN PANEL STYLESHEET
   Executive Platform Administration Design System
   ======================================================== */

:root {
  --admin-bg: #090d16;
  --admin-sidebar: #060910;
  --admin-card: #0f1626;
  --admin-card-hover: #151f33;
  --admin-border: #1e293b;
  --admin-border-light: #2d3b52;
  --admin-primary: #f59e0b; /* Amber Gold for Super Admin */
  --admin-accent: #38bdf8;
  --admin-text: #f8fafc;
  --admin-muted: #94a3b8;
  --admin-dim: #64748b;
  --admin-success: #10b981;
  --admin-danger: #ef4444;
  --admin-radius: 8px;
  --admin-radius-lg: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text);
  line-height: 1.5;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--admin-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: #7dd3fc;
}

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background-color: var(--admin-sidebar);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  transition: transform 0.3s ease;
}

.admin-brand {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--admin-border);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
}
.super-tag {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.sidebar-menu {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}
.menu-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--admin-dim);
  padding: 8px 12px 4px;
  letter-spacing: 0.08em;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--admin-muted);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--admin-radius);
  transition: all 0.15s ease;
  margin-bottom: 2px;
}
.menu-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.menu-item.active {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border-left: 3px solid #f59e0b;
}

/* Main Content Area */
.admin-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-header {
  height: 64px;
  background: rgba(9, 13, 22, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.admin-container {
  padding: 28px;
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Metric Stats Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.metric-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  padding: 20px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.metric-card:hover {
  border-color: var(--admin-border-light);
  transform: translateY(-2px);
}
.metric-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--admin-dim);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.metric-value {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}
.metric-sub {
  font-size: 12px;
  color: var(--admin-muted);
  margin-top: 4px;
}

/* Tables */
.data-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}
.data-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.data-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}
table.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
table.admin-table th {
  background: rgba(6, 9, 16, 0.6);
  padding: 12px 20px;
  color: var(--admin-dim);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--admin-border);
}
table.admin-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  color: var(--admin-muted);
}
table.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
}

/* Filter Bars */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.search-input {
  background: var(--admin-sidebar);
  border: 1px solid var(--admin-border);
  padding: 8px 14px;
  border-radius: var(--admin-radius);
  color: #fff;
  font-size: 13px;
  outline: none;
  min-width: 220px;
}
.search-input:focus {
  border-color: var(--admin-accent);
}

.select-filter {
  background: var(--admin-sidebar);
  border: 1px solid var(--admin-border);
  padding: 8px 14px;
  border-radius: var(--admin-radius);
  color: #fff;
  font-size: 13px;
  outline: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--admin-radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: #f59e0b;
  color: #000;
}
.btn-primary:hover {
  background: #d97706;
}
.btn-secondary {
  background: var(--admin-border);
  color: #fff;
}
.btn-secondary:hover {
  background: var(--admin-border-light);
}
.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}
.btn-danger:hover {
  background: #ef4444;
  color: #fff;
}
.btn-sm {
  padding: 4px 10px;
  font-size: 11px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--admin-dim);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--admin-sidebar);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  color: #fff;
  font-size: 14px;
  outline: none;
}
.form-control:focus {
  border-color: var(--admin-primary);
}

.alert {
  padding: 12px 18px;
  border-radius: var(--admin-radius);
  font-size: 13px;
  margin-bottom: 20px;
}
.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

/* Mobile responsive */
@media (max-width: 900px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
  }
}
