/* ===================================
   OXYLAB ADMIN PANEL — GLOBAL STYLES
   =================================== */

.adminRoot {
  display: flex;
  min-height: 100vh;
  background: #0b0f1a;
  color: #e2e8f0;
  font-family: var(--font-sans);
}

/* ====== SIDEBAR ====== */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: #080c17;
  border-right: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  overflow-y: auto;
}

.sidebarHeader {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebarLogoIcon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.sidebarLogoText {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.5px;
}

.sidebarLogoSub {
  color: #6366f1;
}

.sidebarBadge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.12);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.sidebarNav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.navSection {
  margin-bottom: 20px;
}

.navSectionTitle {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #475569;
  padding: 0 8px;
  margin-bottom: 8px;
}

.navItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.navItem:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #c7d2fe;
}

.navItem.active {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.navItemIcon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

.sidebarFooter {
  padding: 16px 12px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.userInfo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.5);
  margin-bottom: 8px;
}

.userAvatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.userDetails {
  flex: 1;
  min-width: 0;
}

.userName {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.userRole {
  font-size: 11px;
  color: #64748b;
}

.logoutBtn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  cursor: pointer;
  transition: all 0.2s;
}

.logoutBtn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

/* ====== MAIN CONTENT ====== */
.mainContent {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #0b0f1a;
}

.topBar {
  height: 60px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(8, 12, 23, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topBarLeft {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pageTitle {
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
}

.pageBreadcrumb {
  font-size: 13px;
  color: #475569;
}

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

.topBarPublicLink {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6366f1;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  transition: all 0.2s;
}

.topBarPublicLink:hover {
  background: rgba(99, 102, 241, 0.1);
}

.pageBody {
  flex: 1;
  padding: 28px;
}

/* ====== SHARED ADMIN UI COMPONENTS ====== */

/* Stat Cards */
.statsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.statCard {
  background: #0f1628;
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
}

.statCard:hover {
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}

.statIcon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.statIconIndigo { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.statIconGreen { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
.statIconYellow { background: rgba(234, 179, 8, 0.12); color: #facc15; }
.statIconPurple { background: rgba(168, 85, 247, 0.12); color: #c084fc; }

.statInfo {
  flex: 1;
}

.statNumber {
  font-size: 26px;
  font-weight: 700;
  color: #f1f5f9;
  font-family: var(--font-display);
  line-height: 1;
}

.statLabel {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

/* Section Headers */
.sectionHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sectionTitle {
  font-size: 16px;
  font-weight: 600;
  color: #e2e8f0;
}

/* Buttons */
.btnPrimary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  background: #6366f1;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btnPrimary:hover {
  background: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.btnSecondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(15, 23, 42, 0.8);
  color: #94a3b8;
  cursor: pointer;
  border: 1px solid rgba(99, 102, 241, 0.15);
  transition: all 0.2s;
  text-decoration: none;
}

.btnSecondary:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #c7d2fe;
  border-color: rgba(99, 102, 241, 0.3);
}

.btnDanger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  cursor: pointer;
  border: 1px solid rgba(239, 68, 68, 0.2);
  transition: all 0.2s;
}

.btnDanger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

.btnEdit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  cursor: pointer;
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all 0.2s;
  text-decoration: none;
}

.btnEdit:hover {
  background: rgba(99, 102, 241, 0.18);
}

/* Table Styles */
.tableCard {
  background: #0f1628;
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 14px;
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #475569;
  background: rgba(8, 12, 23, 0.5);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.table td {
  padding: 13px 16px;
  font-size: 13px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: rgba(99, 102, 241, 0.04);
}

.tableActions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Status Badges */
.statusBadge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.statusPublished {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.statusDraft {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.2);
}

/* Form Styles */
.formCard {
  background: #0f1628;
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 14px;
  padding: 28px;
}

.formGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.formFullWidth {
  grid-column: 1 / -1;
}

.formGroup {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.formLabel {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.formInput, .formSelect, .formTextarea {
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: rgba(8, 12, 23, 0.6);
  color: #e2e8f0;
  font-size: 14px;
  font-family: var(--font-sans);
  transition: all 0.2s;
  outline: none;
}

.formInput:focus, .formSelect:focus, .formTextarea:focus {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.formInput::placeholder, .formTextarea::placeholder {
  color: #334155;
}

.formTextarea {
  min-height: 100px;
  resize: vertical;
}

.formSelect option {
  background: #0f1628;
  color: #e2e8f0;
}

.formHint {
  font-size: 11px;
  color: #475569;
}

.formCheckboxRow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.formCheckbox {
  width: 18px;
  height: 18px;
  accent-color: #6366f1;
  cursor: pointer;
}

.formActions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

/* Empty State */
.emptyState {
  text-align: center;
  padding: 60px 20px;
  color: #475569;
}

.emptyState h3 {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 8px;
}

.emptyState p {
  font-size: 14px;
}

/* Type Badge */
.typeBadge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.typeWeb { background: rgba(14, 165, 233, 0.12); color: #38bdf8; }
.typeChrome { background: rgba(234, 179, 8, 0.12); color: #facc15; }
.typeFirefox { background: rgba(249, 115, 22, 0.12); color: #fb923c; }
.typeDesktop { background: rgba(168, 85, 247, 0.12); color: #c084fc; }

/* Featured Badge */
.featuredBadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fbbf24;
}

/* Alert */
.alertSuccess {
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #4ade80;
  font-size: 13px;
  margin-bottom: 20px;
}

.alertError {
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  font-size: 13px;
  margin-bottom: 20px;
}

/* Filter Bar */
.filterBar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.filterInput {
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid rgba(99, 102, 241, 0.15);
  background: rgba(8, 12, 23, 0.6);
  color: #e2e8f0;
  font-size: 13px;
  outline: none;
  flex: 1;
  max-width: 280px;
  transition: all 0.2s;
}

.filterInput:focus {
  border-color: rgba(99, 102, 241, 0.4);
}

.filterSelect {
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid rgba(99, 102, 241, 0.15);
  background: rgba(8, 12, 23, 0.6);
  color: #94a3b8;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.filterSelect option {
  background: #0f1628;
}

/* Responsive */
@media (max-width: 1024px) {
  .statsGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
