/* ============================================================
   Super Admin Panel — BillSmart
   ============================================================ */
.sa-wrapper { display:flex; min-height:100vh; background:#f1f5f9; }

/* Sidebar */
.sa-sidebar {
  width:240px; background:linear-gradient(180deg,#1a1f4b 0%,#253287 100%);
  display:flex; flex-direction:column; position:fixed; top:0; left:0; bottom:0;
  z-index:100; box-shadow:4px 0 20px rgba(0,0,0,.15);
}
.sa-brand {
  display:flex; align-items:center; gap:12px; padding:20px 16px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.sa-brand-icon {
  width:40px; height:40px; background:linear-gradient(135deg,#FAA84F,#f77f00);
  border-radius:10px; display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:16px; flex-shrink:0;
}
.sa-brand-name { color:#fff; font-weight:700; font-size:15px; line-height:1.2; }
.sa-brand-sub  { color:rgba(255,255,255,.5); font-size:11px; }

.sa-nav { flex:1; padding:12px 8px; overflow-y:auto; }
.sa-nav-link {
  display:flex; align-items:center; gap:12px; padding:11px 12px;
  color:rgba(255,255,255,.65); border-radius:10px; font-size:13.5px;
  font-weight:500; transition:.2s; text-decoration:none; margin-bottom:2px;
}
.sa-nav-link i { width:20px; text-align:center; font-size:14px; }
.sa-nav-link:hover { background:rgba(255,255,255,.1); color:#fff; }
.sa-nav-link.active { background:rgba(250,168,79,.2); color:#FAA84F; }

.sa-sidebar-footer { padding:16px; border-top:1px solid rgba(255,255,255,.1); }
.sa-logout-btn {
  display:flex; align-items:center; gap:10px; color:rgba(255,255,255,.6);
  font-size:13px; padding:10px 12px; border-radius:10px; cursor:pointer;
  transition:.2s; text-decoration:none;
}
.sa-logout-btn:hover { background:rgba(239,68,68,.15); color:#f87171; }

/* Main */
.sa-main { margin-left:240px; flex:1; display:flex; flex-direction:column; }

.sa-topbar {
  background:#fff; border-bottom:1px solid #e2e8f0;
  padding:0 24px; height:64px; display:flex; align-items:center;
  justify-content:space-between; position:sticky; top:0; z-index:50;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
}
.sa-page-title { font-size:18px; font-weight:700; color:#1e293b; margin:0; }
.sa-admin-badge {
  background:#f0f4ff; color:#253287; padding:7px 14px; border-radius:20px;
  font-size:13px; font-weight:600; border:1px solid #c7d2fe;
}

.sa-content { padding:24px; }

/* Stats Cards */
.sa-stat-card {
  background:#fff; border-radius:16px; padding:20px 24px;
  box-shadow:0 1px 6px rgba(0,0,0,.06); border:1px solid #f1f5f9;
  display:flex; align-items:center; gap:16px;
}
.sa-stat-icon {
  width:52px; height:52px; border-radius:14px;
  display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0;
}
.sa-stat-value { font-size:24px; font-weight:800; color:#1e293b; line-height:1; }
.sa-stat-label { font-size:12px; color:#64748b; margin-top:4px; }
.sa-stat-change { font-size:12px; font-weight:600; margin-top:6px; }

/* Tables */
.sa-table-card {
  background:#fff; border-radius:16px; box-shadow:0 1px 6px rgba(0,0,0,.06);
  border:1px solid #f1f5f9; overflow:hidden;
}
.sa-table-header {
  padding:16px 20px; border-bottom:1px solid #f1f5f9;
  display:flex; align-items:center; justify-content:space-between;
}
.sa-table-title { font-size:15px; font-weight:700; color:#1e293b; }
.sa-table { width:100%; border-collapse:collapse; }
.sa-table th {
  background:#f8fafc; padding:11px 16px; font-size:12px; font-weight:600;
  color:#64748b; text-transform:uppercase; letter-spacing:.05em;
  border-bottom:1px solid #e2e8f0; white-space:nowrap;
}
.sa-table td { padding:13px 16px; font-size:13.5px; color:#374151; border-bottom:1px solid #f8fafc; vertical-align:middle; }
.sa-table tr:last-child td { border-bottom:none; }
.sa-table tr:hover td { background:#fafbff; }

/* Badges */
.badge-active    { background:#dcfce7; color:#166534; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; }
.badge-trial     { background:#fef9c3; color:#854d0e; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; }
.badge-suspended { background:#fee2e2; color:#991b1b; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; }
.badge-pending   { background:#e0f2fe; color:#075985; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; }

/* Buttons */
.sa-btn { padding:8px 16px; border-radius:8px; font-size:13px; font-weight:600; border:none; cursor:pointer; transition:.2s; text-decoration:none; display:inline-flex; align-items:center; gap:7px; }
.sa-btn-primary { background:#253287; color:#fff; }
.sa-btn-primary:hover { background:#1a2460; color:#fff; }
.sa-btn-warning { background:#FAA84F; color:#fff; }
.sa-btn-warning:hover { background:#e8963d; color:#fff; }
.sa-btn-danger  { background:#ef4444; color:#fff; }
.sa-btn-danger:hover  { background:#dc2626; color:#fff; }
.sa-btn-success { background:#10b981; color:#fff; }
.sa-btn-success:hover { background:#059669; color:#fff; }
.sa-btn-outline { background:#fff; color:#253287; border:1.5px solid #253287; }
.sa-btn-outline:hover { background:#253287; color:#fff; }
.sa-btn-sm { padding:5px 12px; font-size:12px; }

/* Search / Filters */
.sa-search-box {
  display:flex; align-items:center; background:#f8fafc; border:1.5px solid #e2e8f0;
  border-radius:10px; padding:0 12px; gap:8px;
}
.sa-search-box input { border:none; background:none; outline:none; padding:9px 0; font-size:13px; width:220px; font-family:inherit; }
.sa-search-box i { color:#94a3b8; font-size:13px; }

/* Section heading */
.sa-section-title { font-size:16px; font-weight:700; color:#1e293b; margin-bottom:16px; }

/* Company avatar */
.co-avatar {
  width:36px; height:36px; border-radius:10px; background:linear-gradient(135deg,#253287,#3d4fc4);
  color:#fff; display:inline-flex; align-items:center; justify-content:center;
  font-weight:700; font-size:14px; flex-shrink:0;
}

/* Action btn group */
.action-btns { display:flex; gap:6px; align-items:center; }

/* Form styles */
.sa-form-group { margin-bottom:18px; }
.sa-label { font-size:13px; font-weight:600; color:#374151; margin-bottom:6px; display:block; }
.sa-input {
  width:100%; padding:10px 14px; border:1.5px solid #e2e8f0; border-radius:10px;
  font-size:13.5px; font-family:inherit; outline:none; transition:.2s; background:#fff;
}
.sa-input:focus { border-color:#253287; box-shadow:0 0 0 3px rgba(37,50,135,.1); }

/* Login page */
.sa-login-page {
  min-height:100vh; background:linear-gradient(135deg,#1a1f4b 0%,#253287 60%,#3d4fc4 100%);
  display:flex; align-items:center; justify-content:center; padding:24px;
}
.sa-login-card {
  background:#fff; border-radius:20px; padding:40px; width:100%; max-width:420px;
  box-shadow:0 25px 50px rgba(0,0,0,.25);
}
.sa-login-title { font-size:22px; font-weight:800; color:#1e293b; text-align:center; margin-bottom:6px; }
.sa-login-sub   { font-size:13px; color:#64748b; text-align:center; margin-bottom:28px; }

@media(max-width:768px) {
  .sa-sidebar { transform:translateX(-100%); }
  .sa-main { margin-left:0; }
}
