/* Hnetwork - White Card + Purple Theme */
:root {
  --purple: #6f42c1;
  --purple-dark: #5a35a1;
  --purple-light: #f0ebfa;
}

body {
  background: #f4f6fb;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Navbar */
.bg-purple { background: var(--purple) !important; }
.navbar-dark.bg-purple .nav-link { color: rgba(255,255,255,0.85); }
.navbar-dark.bg-purple .nav-link:hover { color: #fff; }

/* Sidebar */
#sidebar {
  width: 240px;
  min-height: calc(100vh - 56px);
  background: #1a1a2e !important;
  flex-shrink: 0;
}
#sidebar .nav-link {
  color: rgba(255,255,255,0.7);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 2px;
  transition: all 0.2s;
}
#sidebar .nav-link:hover,
#sidebar .nav-link.active {
  color: #fff;
  background: var(--purple);
}

/* Cards */
.card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.card-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  border-radius: 14px 14px 0 0 !important;
  font-weight: 600;
}

/* Stat Cards */
.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.stat-card .icon.purple { background: var(--purple-light); color: var(--purple); }
.stat-card .icon.green  { background: #e8f5e9; color: #388e3c; }
.stat-card .icon.blue   { background: #e3f2fd; color: #1565c0; }
.stat-card .icon.orange { background: #fff3e0; color: #e65100; }
.stat-card h3 { font-size: 1.6rem; font-weight: 700; margin: 0.25rem 0; }
.stat-card p  { font-size: 0.82rem; color: #888; margin: 0; }

/* Buttons */
.btn-purple {
  background: var(--purple);
  color: #fff;
  border: none;
}
.btn-purple:hover { background: var(--purple-dark); color: #fff; }
.btn-outline-purple {
  border: 1.5px solid var(--purple);
  color: var(--purple);
}
.btn-outline-purple:hover { background: var(--purple); color: #fff; }

/* Form Controls */
.form-control:focus, .form-select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 0.2rem rgba(111,66,193,0.15);
}

/* Tables */
.table th { font-weight: 600; color: #555; font-size: 0.85rem; }
.table td { vertical-align: middle; }

/* Badges */
.badge-active { background: #d4edda; color: #155724; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-rejected { background: #f8d7da; color: #721c24; }
.badge-inactive { background: #e9ecef; color: #495057; }

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--purple), #9c59d1);
  color: white;
  padding: 100px 0;
}
.hero-section h1 { font-size: 3rem; font-weight: 800; }

/* Quick Buttons */
.quick-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 0.75rem;
  text-decoration: none;
  color: var(--purple);
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  min-height: 90px;
}
.quick-btn i { font-size: 1.6rem; margin-bottom: 0.4rem; }
.quick-btn:hover { background: var(--purple); color: #fff; transform: translateY(-3px); }

/* Footer */
.footer { background: #fff; border-top: 1px solid #eee; }
.footer a { color: var(--purple); text-decoration: none; }

/* Content wrapper */
.content-wrapper { min-height: calc(100vh - 56px); }

/* Admin Sidebar */
.admin-sidebar {
  width: 240px;
  min-height: 100vh;
  background: #16213e;
}
.admin-sidebar .nav-link {
  color: rgba(255,255,255,0.7);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 2px;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  color: #fff;
  background: var(--purple);
}

/* Responsive */
@media(max-width:991px) {
  #sidebar { display: none !important; }
  .content-wrapper { padding: 1rem !important; }
  .hero-section h1 { font-size: 2rem; }
}

/* Auth Pages */
.auth-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--purple), #9c59d1);
  display: flex; align-items: center; justify-content: center;
}
.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.auth-card h2 { font-weight: 700; color: var(--purple); }
