/* ============================================================
   SPRIX Modern Luxury Admin Dashboard - Designed by ENG SAIF
   Framer / Dark Luxury Aesthetic with Cyber Accents
   ============================================================ */

:root {
  --admin-bg: #070b14;
  --admin-card: rgba(18, 21, 29, 0.72);
  --admin-card-hover: rgba(22, 27, 40, 0.85);
  --admin-border: rgba(135, 177, 255, 0.18);
  --admin-border-focus: rgba(56, 189, 248, 0.55);
  --admin-cyan: #38bdf8;
  --admin-emerald: #10b981;
  --admin-glow: rgba(56, 189, 248, 0.15);
}

body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(60% 60% at 50% 10%, #0d1e3d 0%, #070b14 60%, #030408 100%) !important;
  color: #f5f7ff;
  min-height: 100vh;
}

/* Glass Panels */
.admin-card {
  background: var(--admin-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--admin-border);
  border-radius: 1.25rem;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-card:hover {
  border-color: rgba(135, 177, 255, 0.32);
}

/* Metric KPI Cards */
.kpi-card {
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--admin-cyan);
}

.kpi-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.875rem;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

/* Quick Preset Buttons */
.preset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.65rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: #bae6fd;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.preset-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--admin-cyan);
  color: #fff;
  transform: translateY(-1px);
}

/* Code Display */
.code-text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.04em;
  direction: ltr;
  text-align: right;
  font-size: 0.82rem;
}

/* Modern Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  display: inline-block;
}

.status-pill.active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.status-pill.active::before {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-pill.pending {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.status-pill.pending::before {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.status-pill.expired {
  background: rgba(113, 113, 122, 0.15);
  color: #a1a1aa;
  border: 1px solid rgba(113, 113, 122, 0.35);
}
.status-pill.expired::before {
  background: #71717a;
}

.status-pill.revoked {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}
.status-pill.revoked::before {
  background: #f43f5e;
}

/* Action Buttons */
.revoke-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(225, 29, 72, 0.12);
  color: #fda4af;
  border: 1px solid rgba(225, 29, 72, 0.28);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.revoke-button:hover {
  background: rgba(225, 29, 72, 0.3);
  border-color: #f43f5e;
  color: #fff;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.35);
}

/* Table Design */
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
}

.admin-table th {
  background: rgba(7, 10, 17, 0.9);
  padding: 0.85rem 1rem;
  font-weight: 800;
  color: #94a3b8;
  border-bottom: 1px solid var(--admin-border);
  text-align: right;
  white-space: nowrap;
}

.admin-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(135, 177, 255, 0.08);
  vertical-align: middle;
}

.admin-table tr {
  transition: background-color 0.15s ease;
}

.admin-table tr:hover td {
  background: rgba(56, 189, 248, 0.03);
}

/* Form inputs */
.admin-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  background: rgba(3, 7, 18, 0.65);
  border: 1px solid var(--admin-border);
  color: #fff;
  font-size: 0.82rem;
  outline: none;
  transition: all 0.2s ease;
}

.admin-input:focus {
  border-color: var(--admin-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
  background: rgba(3, 7, 18, 0.9);
}

/* Form Messages */
.form-message {
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
}

.form-message.is-success {
  color: #34d399 !important;
}

.form-message.is-error {
  color: #fb7185 !important;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(135, 177, 255, 0.2);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(135, 177, 255, 0.4);
}
