/* ========= Pixel-Match Theme ========= */
:root{
  --bg:#f5f5f9;        /* from screenshots */
  --card:#ffffff;
  --muted:#efeff9;     /* soft panel bg */
  --ink:#1f2937;       /* text */
  --sub:#6b7280;
  --primary:#0ea5e9;   /* sky blue action */
  --primary-600:#0284c7;
  --indigo:#4f46e5;    /* deep accent for highlights */
  --success:#22c55e;
  --warn:#f59e0b;
  --radius:16px;
  --shadow:0 10px 24px rgba(2,6,23,.07);
}
*{box-sizing:border-box}
body{background:var(--bg); color:var(--ink); font-family:'Poppins',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;}

/* Navbar */
.navbar{ background:#fff; box-shadow:0 6px 20px rgba(2,6,23,.05); }
.navbar-brand{ font-weight:800; letter-spacing:.2px; }
.navbar .nav-link{ font-weight:600; color:#475569; }
.navbar .nav-link.active,.navbar .nav-link:hover{ color:var(--primary-600); }
.navbar .badge{ border-radius:999px; padding:.4rem .6rem; }

/* Cards */
.card{ border:0; border-radius:var(--radius); box-shadow:var(--shadow); }
.card-header{ background:var(--muted); font-weight:700; }
.card-hover:hover{ transform:translateY(-2px); box-shadow:0 16px 30px rgba(2,6,23,.12); transition:.2s; }

/* Hero banner */
.hero-gradient{ background:linear-gradient(135deg,#0ea5e9,#4f46e5); color:#fff; border-radius:var(--radius); padding:20px; }
.hero-gradient .btn{ background:#fff; color:#0f172a; border:0; font-weight:700; }

/* Buttons */
.btn{ border-radius:12px; font-weight:700; }
.btn-primary{ background:var(--primary); border-color:var(--primary); }
.btn-primary:hover{ background:var(--primary-600); border-color:var(--primary-600); }
.btn-outline-primary{ color:var(--primary); border-color:var(--primary); }
.btn-outline-primary:hover{ background:var(--primary); color:#fff; }

/* Forms */
.form-label{ font-weight:700; color:#0f172a; }
.form-control,.form-select{ border-radius:12px; border-color:#e5e7eb; }
.form-control:focus,.form-select:focus{ border-color:var(--primary); box-shadow:0 0 0 .25rem rgba(14,165,233,.15); }

/* Tables */
.table{ vertical-align:middle; }
.table thead th{ text-transform:uppercase; font-size:.78rem; letter-spacing:.06em; color:#64748b; background:#f8fafc; border-bottom:1px solid #e5e7eb!important; }
.table tbody td{ color:#0f172a; }
.table-striped>tbody>tr:nth-of-type(odd)>*{ background-color:#fbfcff; }
.table-hover>tbody>tr:hover>*{ background-color:#f3f7ff; }

/* Badges */
.badge{ border-radius:999px; padding:.5rem .7rem; font-weight:700; }
.badge.bg-success{ background:var(--success)!important; }
.badge.bg-warning{ background:#fde047!important; color:#1f2937!important; }
.badge.bg-secondary{ background:#94a3b8!important; }
.badge.bg-info{ background:#38bdf8!important; }

/* Pricing */
.pricing .card{ overflow:hidden; position:relative; }
.pricing .card h4{ font-weight:800; }
.pricing .price{ font-size:40px; font-weight:900; letter-spacing:-.02em; }
.pricing .period{ font-size:.9rem; color:#64748b; }
.pricing .feature-list{ padding-left:1.1rem; }
.pricing .feature-list li{ margin:.35rem 0; }
.pricing .ribbon{ position:absolute; right:-52px; top:16px; transform:rotate(45deg); background:linear-gradient(135deg,#4f46e5,#0ea5e9); color:#fff; padding:6px 56px; font-weight:700; font-size:.8rem; }

/* Stats */
.stat h6{ color:#64748b; text-transform:uppercase; letter-spacing:.06em; font-weight:700; }
.stat h3{ font-weight:900; letter-spacing:-.02em; }

/* Dividers */
.divider-gradient{ height:3px; border-radius:999px; background:linear-gradient(90deg,#22c1c3,#4f46e5); opacity:.85; }

/* Login/register centering tweaks */
.container .card{ overflow:hidden; }
.login-title{ font-weight:800; letter-spacing:.2px; }

/* Password field visibility toggle inside input */
.has-toggle .password-toggle-btn{
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  background:transparent; border:0; padding:0; line-height:1; color:#6b7280;
}
.has-toggle .password-toggle-btn:hover{ color:#000; }
.has-toggle input.form-control{ padding-right:2.4rem; }
/* Ensure wrappers/groups fill full width for consistent field widths */
.login-input-group{ width:100%; }
.login-input-group .input-group{ width:100%; }
.needs-validation .input-group{ width:100%; }


/* ===== Left Sidebar Layout ===== */
.with-sidebar{ padding-left:280px; }
.sidebar{
  position:fixed; inset:0 auto 0 0; width:260px; height:100vh;
  background:linear-gradient(180deg,#0ea5e9,#4f46e5);
  color:#fff; padding:18px 16px; display:flex; flex-direction:column; z-index:1030;
  box-shadow:0 10px 30px rgba(2,6,23,.25);
}
.sidebar-header{ padding:0 0 16px 0; border-bottom:1px solid rgba(255,255,255,.1); margin-bottom:12px; }
.sidebar-brand{ font-weight:900; font-size:1.15rem; letter-spacing:.3px; margin-bottom:8px; }
.sidebar .brand-link{ color:#fff; text-decoration:none; }
.sidebar-user{ background:rgba(255,255,255,.12); padding:12px; border-radius:12px; margin-bottom:12px;}
.sidebar-user .user-name{ font-weight:700; }
.sidebar-user .user-balance{ background:rgba(255,255,255,.25); color:#fff; border-radius:999px; padding:.25rem .6rem; margin-top:6px; display:inline-block; }
.sidebar-nav{ display:flex; flex-direction:column; gap:6px; margin-top:8px; }
.sidebar-nav .nav-item{
  color:#ecfeff; text-decoration:none; font-weight:600; padding:.6rem .8rem; border-radius:10px;
  transition:.15s background; display:flex; align-items:center; justify-content:space-between;
}
.sidebar-nav .nav-item:hover{ background:rgba(255,255,255,.14); }
.sidebar-nav .nav-item.active{ background:rgba(255,255,255,.22); box-shadow:inset 0 0 0 1px rgba(255,255,255,.25); }
.nav-badge{ font-size:.7rem; padding:.25rem .5rem; border-radius:10px; background:rgba(255,255,255,.25); color:#fff; font-weight:600; }
.sidebar-footer{ margin-top:auto; padding-top:10px; }
.sidebar-sep{ height:1px; margin:.5rem 0; background:rgba(255,255,255,.25); border-radius:999px; }

/* Sidebar toggle (mobile) */
.sidebar-toggle{
  position:fixed; top:14px; left:14px; width:38px; height:34px; z-index:2000;
  border:0; background:transparent; border-radius:10px; display:flex; align-items:center; justify-content:center;
  color:#000; /* black icon color */
  transition:left .25s ease;
}
.sidebar-toggle .bars{ display:flex; flex-direction:column; align-items:center; justify-content:center; }
.sidebar-toggle .bars span{
  display:block; width:18px; height:2px; background:currentColor; margin:3px 0;
}
.sidebar-toggle .close-icon{ display:none; font-size:20px; font-weight:700; line-height:1; color:currentColor; }

/* Sidebar Overlay */
.sidebar-overlay{
  display:none; position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:1029; opacity:0; transition:opacity .3s;
}

@media (max-width: 992px){
  .with-sidebar{ padding-left:0; }
  .sidebar{ transform:translateX(-100%); transition:transform .25s ease; }
  body.menu-open .sidebar{ transform:none; }
  body.menu-open .sidebar-overlay{ display:block; opacity:1; }
  .sidebar-toggle{ display:flex; }
  /* Move toggle to follow the sidebar edge when open */
  body.menu-open .sidebar-toggle { left: calc(var(--sidebar-width) + 14px); }
  .container{ padding-top:30px; }
  .sidebar-nav .nav-item{ padding:.62rem .8rem; min-height:46px; }
  .nav-badge{ font-size:.75rem; padding:.375rem .625rem; }
}


/* ===== Sidebar iconized & active styles ===== */
.sidebar{ width:280px; }
.sidebar-nav .nav-item{ display:flex; align-items:center; gap:.4rem; }
.sidebar-nav .nav-item.active{ background:rgba(255,255,255,.22); box-shadow:inset 0 0 0 1px rgba(255,255,255,.25); }
.sidebar-sep{ height:1px; margin:.5rem 0; background:rgba(255,255,255,.25); border-radius:999px; }

/* Optional "topbar" feel via container spacing */
.page-header{
  position:sticky; top:0; z-index:10; background:transparent; padding:8px 0 2px;
}
.page-header h5{ font-weight:800; margin:0 0 8px 0; }


/* ===== Screenshots-Match Deep Tweaks ===== */

/* Background subtle pattern */
body{
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,.02) 1px, transparent 0);
  background-size: 22px 22px;
}

/* Sidebar nav alignment fixes: keep badge on same line aligned right */
.sidebar-nav .nav-item {
  justify-content: space-between;
  flex-wrap: nowrap;
}
.sidebar-nav .nav-item > .d-flex {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.sidebar-nav .nav-item > .d-flex span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-nav .nav-item .nav-badge {
  margin-left: auto;
  flex: 0 0 auto;
}

/* Typography scale */
h1{font-size:2rem; font-weight:900}
h2{font-size:1.6rem; font-weight:900}
h3{font-size:1.35rem; font-weight:800}
h4{font-size:1.1rem; font-weight:800}
h5{font-size:1rem; font-weight:800}
small, .small{font-size:.86rem}

/* Responsive typography */
@media (max-width: 576px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.2rem; }
  h4 { font-size: 1rem; }
  h5 { font-size: 0.95rem; }
}

/* Buttons */
.btn{ border-radius:12px; font-weight:800; letter-spacing:.2px; }
.btn-sm{ padding:.4rem .7rem; font-weight:800 }
.btn-primary{ padding:.6rem 1rem }
.btn-outline-light{ border-color:rgba(255,255,255,.6); color:#fff }
.btn-outline-light:hover{ background:#fff; color:#111827 }

/* Responsive buttons */
@media (max-width: 576px) {
  .btn {
    padding: .5rem .8rem;
    font-size: 0.9rem;
  }
  .btn-sm {
    padding: .3rem .6rem;
    font-size: 0.8rem;
  }
}

/* Sidebar refinements */
.sidebar{ padding:20px 16px }
.sidebar .brand-link{ font-size:1.05rem }
.sidebar .nav-item{ padding:.62rem .8rem; border:1px solid transparent }
.sidebar .nav-item.active{ border-color:rgba(255,255,255,.3) }
.sidebar-user{ margin-bottom:16px }
.sidebar-footer{ padding-top:10px }

/* Containers & cards */
.container{ max-width:1180px }
.card .card-body{ padding:18px 18px }
.card .card-body h6{ margin-bottom:.4rem }

/* Responsive containers and cards */
@media (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .card .card-body {
    padding: 15px;
  }
}

@media (max-width: 576px) {
  .card .card-body {
    padding: 12px;
  }
}

/* Tables */
.table{ --row-height:48px }
.table td, .table th{ padding:.66rem .8rem; }
.table tbody tr{ height:var(--row-height) }
.table thead th{ font-weight:800 }
.table .badge{ transform:translateY(-1px) }

/* Responsive tables */
@media (max-width: 768px) {
  .table-responsive {
    font-size: 0.85rem;
  }
  .table td, .table th {
    padding: .5rem .6rem;
  }
}

@media (max-width: 576px) {
  .table-responsive {
    font-size: 0.8rem;
  }
  .table td, .table th {
    padding: .4rem .5rem;
  }
}

/* Badges sizing */
.badge{ font-size:.78rem; padding:.45rem .65rem }

/* Responsive badges */
@media (max-width: 576px) {
  .badge {
    font-size: 0.7rem;
    padding: .35rem .55rem;
  }
}

/* Pricing checks using CSS */
.pricing .feature-list{ list-style:none; padding-left:0 }
.pricing .feature-list li{
  position:relative; padding-left:26px;
}
.pricing .feature-list li::before{
  content:"\f00c"; /* fa-check */
  font-family:"Font Awesome 6 Free"; font-weight:900;
  position:absolute; left:0; top:2px; width:18px; text-align:center;
  color:var(--success);
}

/* Responsive pricing */
@media (max-width: 768px) {
  .pricing .price {
    font-size: 32px;
  }
.pricing .feature-list li {
    padding-left: 22px;
    font-size: 0.9rem;
  }
}

/* Final toggle icon overrides to guarantee visibility and behavior */
.sidebar-toggle{ display:flex !important; z-index:2000 !important; }
.sidebar-toggle .bars{ display:flex !important; }
.sidebar-toggle .bars span{ width:18px; height:2px; background:currentColor; }
body.menu-open .sidebar-toggle .bars{ display:none !important; }
body.menu-open .sidebar-toggle .close-icon{ display:block !important; color:currentColor; }

/* ===== Admin Dashboard Overview Styles ===== */
.admin-dashboard .stats-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.admin-dashboard .stats-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.admin-dashboard .stats-card .card-body {
  padding: 24px;
}

.admin-dashboard .stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-dashboard .stat-value {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}

.admin-dashboard .stat-subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.8;
}

.admin-dashboard .icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.admin-dashboard .quick-actions .card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.admin-dashboard .quick-actions .card-header {
  border-radius: 16px 16px 0 0 !important;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 24px;
}

.admin-dashboard .quick-actions .btn {
  border-radius: 12px;
  font-weight: 600;
  padding: 12px 16px;
  transition: all 0.2s ease;
  border-width: 2px;
}

.admin-dashboard .quick-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.admin-dashboard .page-header {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

/* Responsive admin dashboard */
@media (max-width: 768px) {
  .admin-dashboard .stats-card .card-body {
    padding: 20px;
  }
  
  .admin-dashboard .stat-value {
    font-size: 1.75rem;
  }
  
  .admin-dashboard .icon-wrapper {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .admin-dashboard .page-header {
    padding: 16px 20px;
    margin-bottom: 20px;
  }
  
  .admin-dashboard .quick-actions .btn {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .admin-dashboard .stats-card .card-body {
    padding: 16px;
  }
  
  .admin-dashboard .stat-value {
    font-size: 1.5rem;
  }
  
  .admin-dashboard .stat-label {
    font-size: 0.8rem;
  }
  
  .admin-dashboard .icon-wrapper {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .admin-dashboard .page-header {
    padding: 14px 16px;
  }
  
  .admin-dashboard .page-header h5 {
    font-size: 1.1rem;
  }
  
  .admin-dashboard .quick-actions .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .pricing .price {
    font-size: 28px;
  }
  .pricing .feature-list li {
    padding-left: 20px;
    font-size: 0.85rem;
  }
}

/* Forms height */
.form-control, .form-select{ height:44px; padding:.5rem .75rem }

/* Responsive forms */
@media (max-width: 576px) {
  .form-control, .form-select {
    height: 40px;
    padding: .4rem .65rem;
    font-size: 0.9rem;
  }
  .form-label {
    font-size: 0.9rem;
  }
}

/* Page header spacing */
.page-header{ padding:10px 0 4px }
.page-header h5{ font-size:1.05rem; }

/* Responsive page header */
@media (max-width: 576px) {
  .page-header h5 {
    font-size: 1rem;
  }
}

/* Login spacing */
.login-title{ letter-spacing:.25px; }

/* ===== Enhanced Responsive Design ===== */

/* Mobile-first responsive utilities */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }
}

/* Enhanced mobile navigation */
@media (max-width: 992px) {
  .sidebar {
    width: 280px;
    padding: 15px 12px;
  }
  
  .sidebar-brand {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  
  .sidebar-user {
    padding: 10px;
    margin-bottom: 12px;
  }
  
  .sidebar-nav .nav-item {
    padding: .5rem .6rem;
    font-size: 0.9rem;
  }
  
  .sidebar-footer {
    padding-top: 8px;
  }
}

/* Mobile-specific adjustments */
@media (max-width: 576px) {
  .sidebar {
    width: 260px;
  }
  
  .sidebar-toggle {
    width: 34px;
    height: 30px;
    top: 12px;
    left: 12px;
  }
  
  .sidebar-toggle span {
    width: 16px;
    margin: 1.5px 0;
  }
  
  .with-sidebar {
    padding-top: 30px;
  }
}

/* Card responsive design */
@media (max-width: 768px) {
  .row.g-3, .row.g-4 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }
  
  .card.shadow-sm {
    margin-bottom: 1rem;
  }
}

/* Hero banner responsive */
@media (max-width: 768px) {
  .hero-gradient {
    padding: 15px;
  }
  
  .hero-gradient h5 {
    font-size: 1.1rem;
  }
  
  .hero-gradient p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero-gradient {
    padding: 12px;
  }
  
  .hero-gradient h5 {
    font-size: 1rem;
  }
  
  .hero-gradient .btn {
    font-size: 0.85rem;
    padding: .4rem .8rem;
  }
}

/* Table mobile optimization */
@media (max-width: 576px) {
  .table-responsive table {
    font-size: 0.75rem;
  }
  
  .table-responsive .btn-sm {
    font-size: 0.7rem;
    padding: .25rem .5rem;
  }
  
  .table-responsive .badge {
    font-size: 0.65rem;
    padding: .25rem .4rem;
  }
}

/* Pricing page mobile optimization */
@media (max-width: 768px) {
  .pricing .col-md-4 {
    margin-bottom: 1.5rem;
  }
  
  .pricing .card {
    margin-bottom: 0;
  }
  
  .pricing .ribbon {
    right: -48px;
    top: 14px;
    padding: 4px 52px;
    font-size: 0.75rem;
  }
}

/* Login/register form responsive */
@media (max-width: 576px) {
  .container.py-5[style*="max-width:520px"] {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .login-title {
    font-size: 1.3rem;
  }
}

/* Admin panel responsive adjustments */
@media (max-width: 768px) {
  .d-flex.justify-content-between.align-items-center {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }
  
  .d-flex.justify-content-between.align-items-center .btn {
    align-self: flex-end;
  }
}

/* Stats cards responsive */
@media (max-width: 576px) {
  .stat h3 {
    font-size: 1.4rem;
  }
  
  .stat h6 {
    font-size: 0.8rem;
  }
}

/* Footer responsive spacing */
@media (max-width: 576px) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Ensure consistent mobile top spacing when sidebar is present */
@media (max-width: 576px) {
  .with-sidebar {
    padding-top: 30px;
  }
}

/* Make images fluid across breakpoints */
img {
  max-width: 100%;
  height: auto;
}

/* Mobile table labels to improve readability */
.table-responsive td[data-label] {
  position: relative;
  padding-left: 48px;
}
.table-responsive td[data-label]::before {
  content: attr(data-label);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: #6b7280;
  text-transform: uppercase;
}

/* Landscape mobile adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .sidebar {
    overflow-y: auto;
    max-height: 100vh;
  }
  
  .sidebar-user {
    margin-bottom: 8px;
    padding: 8px;
  }
  
  .sidebar-nav {
    gap: 4px;
    margin-top: 4px;
  }
  
  .sidebar-nav .nav-item {
    padding: .4rem .6rem;
  }
}

/* High DPI screen adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .btn, .form-control, .form-select {
    border-width: 1.5px;
  }
  
  .card {
    box-shadow: 0 8px 20px rgba(2,6,23,.08);
  }
}

/* Print styles */
@media print {
  .sidebar, .sidebar-toggle, .btn {
    display: none !important;
  }
  
  .with-sidebar {
    padding-left: 0 !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #dee2e6 !important;
  }
}

:root {
  --sidebar-width: 280px;
}
@media (max-width: 576px) {
  :root {
    --sidebar-width: 260px;
  }
}
/* Sidebar toggle (mobile) */
.sidebar-toggle{
  position:fixed; top:14px; left:14px; width:38px; height:34px; z-index:2000;
  border:0; background:transparent; border-radius:10px; display:flex; align-items:center; justify-content:center;
  color:#000; /* black bars */
  transition:left .25s ease;
}
.sidebar-toggle .bars{ display:flex; flex-direction:column; align-items:center; justify-content:center; }
.sidebar-toggle .bars span{ display:block; width:18px; height:2px; background:currentColor; margin:3px 0; }
.sidebar-toggle .close-icon{ display:none; font-size:20px; font-weight:700; line-height:1; color:currentColor; }

@media (max-width: 992px){
  .with-sidebar{ padding-left:0; }
  .sidebar{ transform:translateX(-100%); transition:transform .25s ease; }
  body.menu-open .sidebar{ transform:none; }
  body.menu-open .sidebar-overlay{ display:block; opacity:1; }
  .sidebar-toggle{ display:flex; }
  /* Move toggle to follow the sidebar edge when open */
  body.menu-open .sidebar-toggle { left: calc(var(--sidebar-width) + 14px); }
}

/* Stable cross: show × without transforms */
body.menu-open .sidebar-toggle .bars{ display:none; }
body.menu-open .sidebar-toggle .close-icon{ display:block; }
  .container{ padding-top:64px; }
  .sidebar-nav .nav-item{ padding:.62rem .8rem; min-height:46px; }
  .nav-badge{ font-size:.75rem; padding:.375rem .625rem; }
  .sidebar-nav .nav-item .nav-badge{ display:inline-flex; align-items:center; white-space:nowrap; }



/* ===== Sidebar iconized & active styles ===== */
.sidebar{ width:280px; }
.sidebar-nav .nav-item{ display:flex; align-items:center; gap:.4rem; width:100%; justify-content:space-between; }
.sidebar-nav .nav-item.active{ background:rgba(255,255,255,.22); box-shadow:inset 0 0 0 1px rgba(255,255,255,.25); }
.sidebar-sep{ height:1px; margin:.5rem 0; background:rgba(255,255,255,.25); border-radius:999px; }

/* Optional "topbar" feel via container spacing */
.page-header{
  position:sticky; top:0; z-index:10; background:transparent; padding:8px 0 2px;
}
.page-header h5{ font-weight:800; margin:0 0 8px 0; }


/* ===== Screenshots-Match Deep Tweaks ===== */

/* Background subtle pattern */
body{
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,.02) 1px, transparent 0);
  background-size: 22px 22px;
}

/* Typography scale */
h1{font-size:2rem; font-weight:900}
h2{font-size:1.6rem; font-weight:900}
h3{font-size:1.35rem; font-weight:800}
h4{font-size:1.1rem; font-weight:800}
h5{font-size:1rem; font-weight:800}
small, .small{font-size:.86rem}

/* Responsive typography */
@media (max-width: 576px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.2rem; }
  h4 { font-size: 1rem; }
  h5 { font-size: 0.95rem; }
}

/* Buttons */
.btn{ border-radius:12px; font-weight:800; letter-spacing:.2px; }
.btn-sm{ padding:.4rem .7rem; font-weight:800 }
.btn-primary{ padding:.6rem 1rem }
.btn-outline-light{ border-color:rgba(255,255,255,.6); color:#fff }
.btn-outline-light:hover{ background:#fff; color:#111827 }

/* Responsive buttons */
@media (max-width: 576px) {
  .btn {
    padding: .5rem .8rem;
    font-size: 0.9rem;
  }
  .btn-sm {
    padding: .3rem .6rem;
    font-size: 0.8rem;
  }
}

/* Sidebar refinements */
.sidebar{ padding:20px 16px }
.sidebar .brand-link{ font-size:1.05rem }
.sidebar .nav-item{ padding:.62rem .8rem; border:1px solid transparent }
.sidebar .nav-item.active{ border-color:rgba(255,255,255,.3) }
.sidebar-user{ margin-bottom:16px }
.sidebar-footer{ padding-top:10px }

/* Containers & cards */
.container{ max-width:1180px }
.card .card-body{ padding:18px 18px }
.card .card-body h6{ margin-bottom:.4rem }

/* Responsive containers and cards */
@media (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .card .card-body {
    padding: 15px;
  }
}

@media (max-width: 576px) {
  .card .card-body {
    padding: 12px;
  }
}

/* Tables */
.table{ --row-height:48px }
.table td, .table th{ padding:.66rem .8rem; }
.table tbody tr{ height:var(--row-height) }
.table thead th{ font-weight:800 }
.table .badge{ transform:translateY(-1px) }

/* Responsive tables */
@media (max-width: 768px) {
  .table-responsive {
    font-size: 0.85rem;
  }
  .table td, .table th {
    padding: .5rem .6rem;
  }
}

@media (max-width: 576px) {
  .table-responsive {
    font-size: 0.8rem;
  }
  .table td, .table th {
    padding: .4rem .5rem;
  }
}

/* Badges sizing */
.badge{ font-size:.78rem; padding:.45rem .65rem }

/* Responsive badges */
@media (max-width: 576px) {
  .badge {
    font-size: 0.7rem;
    padding: .35rem .55rem;
  }
}

/* Pricing checks using CSS */
.pricing .feature-list{ list-style:none; padding-left:0 }
.pricing .feature-list li{
  position:relative; padding-left:26px;
}
.pricing .feature-list li::before{
  content:"\f00c"; /* fa-check */
  font-family:"Font Awesome 6 Free"; font-weight:900;
  position:absolute; left:0; top:2px; width:18px; text-align:center;
  color:var(--success);
}

/* Responsive pricing */
@media (max-width: 768px) {
  .pricing .price {
    font-size: 32px;
  }
  .pricing .feature-list li {
    padding-left: 22px;
    font-size: 0.9rem;
  }
}

/* ===== Admin Dashboard Overview Styles ===== */
.admin-dashboard .stats-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.admin-dashboard .stats-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.admin-dashboard .stats-card .card-body {
  padding: 24px;
}

.admin-dashboard .stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-dashboard .stat-value {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}

.admin-dashboard .stat-subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.8;
}

.admin-dashboard .icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.admin-dashboard .quick-actions .card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.admin-dashboard .quick-actions .card-header {
  border-radius: 16px 16px 0 0 !important;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 24px;
}

.admin-dashboard .quick-actions .btn {
  border-radius: 12px;
  font-weight: 600;
  padding: 12px 16px;
  transition: all 0.2s ease;
  border-width: 2px;
}

.admin-dashboard .quick-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.admin-dashboard .page-header {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

/* Responsive admin dashboard */
@media (max-width: 768px) {
  .admin-dashboard .stats-card .card-body {
    padding: 20px;
  }
  
  .admin-dashboard .stat-value {
    font-size: 1.75rem;
  }
  
  .admin-dashboard .icon-wrapper {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .admin-dashboard .page-header {
    padding: 16px 20px;
    margin-bottom: 20px;
  }
  
  .admin-dashboard .quick-actions .btn {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .admin-dashboard .stats-card .card-body {
    padding: 16px;
  }
  
  .admin-dashboard .stat-value {
    font-size: 1.5rem;
  }
  
  .admin-dashboard .stat-label {
    font-size: 0.8rem;
  }
  
  .admin-dashboard .icon-wrapper {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .admin-dashboard .page-header {
    padding: 14px 16px;
  }
  
  .admin-dashboard .page-header h5 {
    font-size: 1.1rem;
  }
  
  .admin-dashboard .quick-actions .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .pricing .price {
    font-size: 28px;
  }
  .pricing .feature-list li {
    padding-left: 20px;
    font-size: 0.85rem;
  }
}

/* Forms height */
.form-control, .form-select{ height:44px; padding:.5rem .75rem }

/* Responsive forms */
@media (max-width: 576px) {
  .form-control, .form-select {
    height: 40px;
    padding: .4rem .65rem;
    font-size: 0.9rem;
  }
  .form-label {
    font-size: 0.9rem;
  }
}

/* Page header spacing */
.page-header{ padding:10px 0 4px }
.page-header h5{ font-size:1.05rem; }

/* Responsive page header */
@media (max-width: 576px) {
  .page-header h5 {
    font-size: 1rem;
  }
}

/* Login spacing */
.login-title{ letter-spacing:.25px; }

/* ===== Enhanced Responsive Design ===== */

/* Mobile-first responsive utilities */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }
}

/* Enhanced mobile navigation */
@media (max-width: 992px) {
  .sidebar {
    width: 280px;
    padding: 15px 12px;
  }
  
  .sidebar-brand {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  
  .sidebar-user {
    padding: 10px;
    margin-bottom: 12px;
  }
  
  .sidebar-nav .nav-item {
    padding: .5rem .6rem;
    font-size: 0.9rem;
  }
  
  .sidebar-footer {
    padding-top: 8px;
  }
}

/* Mobile-specific adjustments */
@media (max-width: 576px) {
  .sidebar {
    width: 260px;
  }
  
  .sidebar-toggle {
    width: 34px;
    height: 30px;
    top: 12px;
    left: 12px;
  }
  
  .sidebar-toggle span {
    width: 16px;
    margin: 1.5px 0;
  }
  
  .with-sidebar {
    padding-top: 56px;
  }
}

/* Card responsive design */
@media (max-width: 768px) {
  .row.g-3, .row.g-4 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }
  
  .card.shadow-sm {
    margin-bottom: 1rem;
  }
}

/* Hero banner responsive */
@media (max-width: 768px) {
  .hero-gradient {
    padding: 15px;
  }
  
  .hero-gradient h5 {
    font-size: 1.1rem;
  }
  
  .hero-gradient p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero-gradient {
    padding: 12px;
  }
  
  .hero-gradient h5 {
    font-size: 1rem;
  }
  
  .hero-gradient .btn {
    font-size: 0.85rem;
    padding: .4rem .8rem;
  }
}

/* Table mobile optimization */
@media (max-width: 576px) {
  .table-responsive table {
    font-size: 0.75rem;
  }
  
  .table-responsive .btn-sm {
    font-size: 0.7rem;
    padding: .25rem .5rem;
  }
  
  .table-responsive .badge {
    font-size: 0.65rem;
    padding: .25rem .4rem;
  }
}

/* Pricing page mobile optimization */
@media (max-width: 768px) {
  .pricing .col-md-4 {
    margin-bottom: 1.5rem;
  }
  
  .pricing .card {
    margin-bottom: 0;
  }
  
  .pricing .ribbon {
    right: -48px;
    top: 14px;
    padding: 4px 52px;
    font-size: 0.75rem;
  }
}

/* Login/register form responsive */
@media (max-width: 576px) {
  .container.py-5[style*="max-width:520px"] {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .login-title {
    font-size: 1.3rem;
  }
}

/* Admin panel responsive adjustments */
@media (max-width: 768px) {
  .d-flex.justify-content-between.align-items-center {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }
  
  .d-flex.justify-content-between.align-items-center .btn {
    align-self: flex-end;
  }
}

/* Stats cards responsive */
@media (max-width: 576px) {
  .stat h3 {
    font-size: 1.4rem;
  }
  
  .stat h6 {
    font-size: 0.8rem;
  }
}

/* Footer responsive spacing */
@media (max-width: 576px) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Landscape mobile adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .sidebar {
    overflow-y: auto;
    max-height: 100vh;
  }
  
  .sidebar-user {
    margin-bottom: 8px;
    padding: 8px;
  }
  
  .sidebar-nav {
    gap: 4px;
    margin-top: 4px;
  }
  
  .sidebar-nav .nav-item {
    padding: .4rem .6rem;
  }
}

/* High DPI screen adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .btn, .form-control, .form-select {
    border-width: 1.5px;
  }
  
  .card {
    box-shadow: 0 8px 20px rgba(2,6,23,.08);
  }
}

/* Print styles */
@media print {
  .sidebar, .sidebar-toggle, .btn {
    display: none !important;
  }
  
  .with-sidebar {
    padding-left: 0 !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #dee2e6 !important;
  }
}
