/* ============================================================
   Be-Lieve Organization — Shared Auth Styles
   Theme: Dark Navy #0A1732 | Gold #C9A227 | White #FFFFFF
   Font: Manrope (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0A1732;
  --navy-mid:   #122048;
  --navy-light: #1a2e5e;
  --gold:       #C9A227;
  --gold-light: #e0b83a;
  --white:      #ffffff;
  --gray-100:   #f5f6fa;
  --gray-200:   #e8eaf0;
  --gray-400:   #9ca3af;
  --gray-600:   #6b7280;
  --danger:     #ef4444;
  --success:    #22c55e;
  --warning:    #f59e0b;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.12);
  --shadow-md:  0 4px 16px rgba(0,0,0,.18);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.28);
  --radius:     12px;
  --radius-sm:  8px;
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--navy);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.2; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ── Auth Layout ── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Left panel — brand */
.auth-brand {
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(201,162,39,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 70%, rgba(201,162,39,.08) 0%, transparent 70%);
  pointer-events: none;
}

.auth-brand-inner { position: relative; z-index: 1; text-align: center; max-width: 420px; }

.auth-logo {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.auth-logo span { color: var(--gold); }

.auth-tagline {
  font-size: .85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .85;
  margin-bottom: 32px;
}

.auth-brand-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
}

.auth-brand-desc {
  color: rgba(255,255,255,.65);
  font-size: .98rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.auth-decoration {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
  margin: 0 auto 32px;
}

.auth-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 40px;
}
.auth-stat { text-align: center; }
.auth-stat-num  { font-size: 1.8rem; font-weight: 800; color: var(--gold); }
.auth-stat-label{ font-size: .75rem; color: rgba(255,255,255,.55); letter-spacing: 1px; text-transform: uppercase; }

/* Right panel — form */
.auth-form-panel {
  background: var(--navy-mid);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 48px;
  overflow-y: auto;
}

.auth-card {
  width: 100%;
  max-width: 460px;
}

.auth-card-header { margin-bottom: 32px; }
.auth-card-header h2 { font-size: 1.75rem; font-weight: 800; }
.auth-card-header p  { color: var(--gray-400); margin-top: 8px; font-size: .95rem; }

/* Form elements */
.form-group { margin-bottom: 20px; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  margin-bottom: 8px;
  letter-spacing: .3px;
}

.input-wrap { position: relative; }
.input-wrap .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1rem;
  pointer-events: none;
  transition: color var(--transition);
}
.input-wrap input:focus ~ .icon,
.input-wrap input:focus + .icon { color: var(--gold); }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  padding: 13px 14px 13px 42px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-size: .95rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
input::placeholder { color: rgba(255,255,255,.3); }
input:focus {
  border-color: var(--gold);
  background: rgba(201,162,39,.07);
  box-shadow: 0 0 0 3px rgba(201,162,39,.15);
}

/* Password toggle */
.pass-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: .9rem;
  transition: color var(--transition);
}
.pass-toggle:hover { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Manrope', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  width: 100%;
  padding: 14px;
  letter-spacing: .5px;
  box-shadow: 0 4px 14px rgba(10,23,50,.5);
}
.btn-primary:hover {
  background: var(--navy-light);
  box-shadow: 0 6px 20px rgba(10,23,50,.7);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  width: 100%;
  padding: 14px;
  letter-spacing: .5px;
  box-shadow: 0 4px 14px rgba(201,162,39,.35);
}
.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: 0 6px 20px rgba(201,162,39,.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover { background: rgba(201,162,39,.1); }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--gray-400);
  font-size: .85rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.1);
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.alert.show { display: flex; }
.alert-error   { background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,.15); border: 1px solid rgba(34,197,94,.3); color: #86efac; }

/* Checkbox */
.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  cursor: pointer;
}
.checkbox-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
  padding: 0;
}

/* Strength meter */
.pass-strength { margin-top: 8px; }
.strength-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
  margin-bottom: 4px;
}
.strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .4s ease, background .4s ease;
  width: 0%;
}
.strength-text { font-size: .78rem; color: var(--gray-400); }

/* Auth footer link */
.auth-footer-link {
  text-align: center;
  margin-top: 24px;
  font-size: .9rem;
  color: var(--gray-400);
}

/* Spinner */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.btn.loading .spinner { display: block; }
.btn.loading .btn-text { opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Admin Layout ── */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--gray-100);
  color: var(--navy);
}

/* Sidebar */
.sidebar {
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo .logo-text { font-size: 1.4rem; font-weight: 800; color: var(--white); }
.sidebar-logo .logo-text span { color: var(--gold); }
.sidebar-logo .logo-sub  { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.4); margin-top: 2px; }

.sidebar-nav { padding: 20px 0; flex: 1; }

.nav-section-label {
  font-size: .68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: 16px 24px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: var(--white); }
.nav-item.active {
  background: rgba(201,162,39,.12);
  color: var(--gold);
  border-left-color: var(--gold);
}
.nav-item i { width: 20px; text-align: center; font-size: .95rem; }

.sidebar-user {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-user-avatar {
  width: 38px; height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: var(--navy);
  font-size: .9rem;
  flex-shrink: 0;
}
.sidebar-user-info .name  { font-size: .88rem; font-weight: 600; color: var(--white); }
.sidebar-user-info .role  { font-size: .72rem; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }
.sidebar-logout {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,.4);
  font-size: .9rem;
  cursor: pointer;
  transition: color var(--transition);
  padding: 4px;
}
.sidebar-logout:hover { color: var(--danger); }

/* Main content */
.admin-main { display: flex; flex-direction: column; }

.admin-topbar {
  background: var(--white);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.topbar-right  { display: flex; align-items: center; gap: 16px; }
.topbar-badge {
  background: var(--gold);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.topbar-date { font-size: .85rem; color: var(--gray-600); }

.admin-content { padding: 32px; flex: 1; }

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

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gold);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-icon.navy   { background: rgba(10,23,50,.1);   color: var(--navy); }
.stat-icon.gold   { background: rgba(201,162,39,.15); color: var(--gold); }
.stat-icon.green  { background: rgba(34,197,94,.1);   color: var(--success); }
.stat-icon.purple { background: rgba(139,92,246,.1);  color: #8b5cf6; }

.stat-info .label { font-size: .8rem; color: var(--gray-600); font-weight: 500; margin-bottom: 4px; }
.stat-info .value { font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-info .sub   { font-size: .75rem; color: var(--success); font-weight: 600; margin-top: 4px; }

/* Section cards */
.section-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.section-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-200);
}
.section-header h3 { font-size: 1rem; font-weight: 700; color: var(--navy); }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--gray-100); }
th {
  padding: 12px 20px;
  text-align: left;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--gray-600);
}
td {
  padding: 14px 20px;
  font-size: .88rem;
  color: var(--navy);
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(201,162,39,.04); }

.user-cell { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 34px; height: 34px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.user-name  { font-weight: 600; font-size: .88rem; }
.user-email { font-size: .78rem; color: var(--gray-600); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .3px;
}
.badge-active   { background: rgba(34,197,94,.12);   color: #16a34a; }
.badge-inactive { background: rgba(107,114,128,.12);  color: var(--gray-600); }
.badge-banned   { background: rgba(239,68,68,.12);   color: #dc2626; }
.badge-admin    { background: rgba(201,162,39,.15);   color: var(--gold); }
.badge-user     { background: rgba(59,130,246,.12);   color: #2563eb; }

/* Table controls */
.table-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--gray-100);
  flex-wrap: wrap;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  flex: 1;
  min-width: 180px;
}
.search-box i { color: var(--gray-400); font-size: .9rem; }
.search-box input {
  border: none;
  background: none;
  outline: none;
  font-family: 'Manrope', sans-serif;
  font-size: .88rem;
  color: var(--navy);
  width: 100%;
  padding: 0;
}
.search-box input::placeholder { color: var(--gray-400); }
select.filter-select {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: 'Manrope', sans-serif;
  font-size: .88rem;
  color: var(--navy);
  outline: none;
  cursor: pointer;
}

/* Action buttons (table) */
.action-btn {
  background: none;
  border: none;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  transition: all var(--transition);
}
.action-btn.ban    { color: var(--danger); }
.action-btn.active { color: var(--success); }
.action-btn.promote{ color: var(--gold); }
.action-btn:hover  { background: rgba(0,0,0,.06); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 24px;
  justify-content: flex-end;
  border-top: 1px solid var(--gray-200);
}
.pag-btn {
  width: 34px; height: 34px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  font-family: 'Manrope',sans-serif;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.pag-btn:hover  { border-color: var(--gold); color: var(--gold); }
.pag-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pag-btn:disabled { opacity: .4; cursor: default; }
.pag-info { font-size: .82rem; color: var(--gray-600); margin-right: 8px; }

/* Chart placeholder */
.chart-area {
  padding: 24px;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.bar-group { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.bar {
  width: 100%;
  background: linear-gradient(to top, var(--navy), var(--navy-light));
  border-radius: 4px 4px 0 0;
  transition: background var(--transition);
  min-height: 4px;
}
.bar:hover { background: linear-gradient(to top, var(--gold), var(--gold-light)); }
.bar-label { font-size: .72rem; color: var(--gray-600); font-weight: 500; text-align: center; }

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  font-weight: 500;
  transform: translateY(80px);
  opacity: 0;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  z-index: 9999;
  border-left: 4px solid var(--gold);
  max-width: 340px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-left-color: var(--danger); }
.toast.success-t { border-left-color: var(--success); }

/* Responsive */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 600px) {
  .auth-form-panel { padding: 32px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .admin-content { padding: 16px; }
}
