body { font-family: 'Segoe UI', sans-serif; }
.hero { background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%); }
.card { border: none; box-shadow: 0 2px 8px rgba(0,0,0,.08); border-radius: 12px; }
.navbar-brand { font-weight: 700; letter-spacing: .5px; }

/* Admin stat cards */
.stat-card { border-top: 3px solid #0d6efd !important; }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; line-height: 1.2; color: #212529; }
.stat-card .stat-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #6c757d; }

/* ==============================================
   Admin Layout
   ============================================== */
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: 48px;
}

.admin-content {
  min-height: 100vh;
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

/* ==============================================
   Sidebar Nav Links
   ============================================== */
.admin-nav-link {
  border-radius: 8px !important;
  padding: .45rem .75rem !important;
  font-size: .9rem;
  transition: background .15s;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, .12) !important;
}

.admin-nav-link.active {
  background: rgba(255, 255, 255, .18) !important;
  font-weight: 600;
}

/* ==============================================
   Page Header
   ============================================== */
.page-header {
  margin-bottom: 1.5rem;
}

.page-header h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: .2rem;
}

.page-subtitle {
  color: #6c757d;
  font-size: .85rem;
}

/* ==============================================
   Filter Card
   ============================================== */
.filter-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.filter-card .form-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6c757d;
  margin-bottom: .3rem;
}

/* ==============================================
   Badges
   ============================================== */
.badge {
  font-size: .7rem;
  font-weight: 600;
  padding: .35em .65em;
  border-radius: 6px;
  letter-spacing: .02em;
}

/* ==============================================
   Empty State
   ============================================== */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: #6c757d;
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.4rem;
  color: #adb5bd;
  line-height: 1;
}

.empty-state p {
  margin: 0;
  font-size: .9rem;
}

/* ==============================================
   Tables
   ============================================== */
.table thead th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6c757d;
  border-bottom-width: 1px;
  padding-top: .85rem;
  padding-bottom: .85rem;
  background: #f8f9fa;
}

.table td {
  vertical-align: middle;
}

.table-footer-note {
  border-top: 1px solid #dee2e6;
  padding: .5rem 1rem;
  font-size: .8rem;
  color: #6c757d;
}

/* ==============================================
   Mobile
   ============================================== */
@media (max-width: 767.98px) {
  .admin-content {
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .page-header {
    margin-bottom: 1rem;
  }

  .filter-card {
    padding: .875rem 1rem;
  }

  .table thead th,
  .table td {
    font-size: .8rem;
    padding: .5rem .6rem;
  }
}

/* =========================================================
   KUMOTECH APPBASE — STRONG ADMIN UI PATCH
   ========================================================= */

body {
  background: #f4f6fb;
  color: #111827;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-content {
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 32rem),
    #f4f6fb !important;
}

.page-header {
  background: linear-gradient(135deg, #111827, #1d4ed8);
  color: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.page-header h4 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-subtitle {
  color: rgba(255,255,255,0.78) !important;
  margin-top: 6px;
  font-size: 0.95rem;
}

.filter-card {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.filter-card .form-label {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}

.filter-card .form-control,
.filter-card .form-select {
  border-radius: 10px;
  border-color: #dbe3ef;
  min-height: 36px;
}

.btn {
  border-radius: 10px;
  font-weight: 700;
}

.card {
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.table {
  margin-bottom: 0;
  background: #fff;
}

.table thead th {
  background: #f8fafc !important;
  color: #64748b;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #e2e8f0;
  padding: 13px 14px;
  white-space: nowrap;
}

.table tbody td {
  padding: 14px;
  vertical-align: middle;
  border-color: #eef2f7;
}

.badge {
  border-radius: 999px;
  padding: 0.42rem 0.62rem;
  font-weight: 800;
}

.empty-state {
  text-align: center;
  padding: 54px 22px;
  background: #fff;
}

.empty-state-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 900;
  margin-bottom: 12px;
}

.empty-state p {
  color: #64748b;
  margin: 0;
}

.table-footer-note {
  padding: 12px 16px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.85rem;
  border-top: 1px solid #e2e8f0;
}

/* Mobile SaaS layout */
@media (max-width: 767.98px) {
  body {
    background: #f4f6fb;
    font-size: 15px;
  }

  .admin-topbar {
    display: flex !important;
    height: 58px;
    position: sticky;
    top: 0;
    z-index: 1050;
    background: #111827 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.24);
  }

  .admin-content {
    padding: 14px 12px calc(24px + env(safe-area-inset-bottom)) !important;
  }

  .page-header {
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 14px;
  }

  .page-header h4 {
    font-size: 1.2rem;
  }

  .page-subtitle {
    font-size: 0.9rem;
  }

  .filter-card {
    border-radius: 16px;
    padding: 14px;
  }

  .filter-card form {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 12px !important;
  }

  .filter-card .col-auto,
  .filter-card [class*="col-"] {
    width: 100%;
  }

  .filter-card .btn,
  .filter-card a.btn {
    width: 100%;
    margin-left: 0 !important;
    margin-top: 6px;
  }

  .table-responsive {
    border-radius: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    min-width: 680px;
  }

  .card {
    border-radius: 16px !important;
  }
}
