/* ═══════════════════════════════════════════════════════
   Namma Dost Admin — Bootstrap 5 Corporate Theme
   Brand: #1A237E (navy) + #FF4B2B (red-orange gradient)
   ═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --nd-navy:       #1A237E;
  --nd-navy-dark:  #111860;
  --nd-navy-light: #283593;
  --nd-red:        #FF4B2B;
  --nd-red2:       #FF416C;
  --nd-gradient:   linear-gradient(135deg,#FF416C 0%,#FF4B2B 100%);
  --nd-gradient-nav: linear-gradient(180deg,#1A237E 0%,#111860 100%);
  --sidebar-w:     260px;
  --header-h:      60px;
  --bs-font-sans-serif: 'Inter', system-ui, sans-serif;
  --bs-body-bg:    #f0f2f8;
  --bs-body-color: #1e2a45;
}

* { font-family: 'Inter', system-ui, sans-serif; }
body { background: var(--bs-body-bg); }

/* ── SIDEBAR ─────────────────────────────────────── */
.nd-sidebar {
  width: var(--sidebar-w);
  background: var(--nd-gradient-nav);
  position: fixed; top:0; left:0; height:100vh;
  display:flex; flex-direction:column;
  z-index:1040; overflow-y:auto;
  box-shadow: 4px 0 20px rgba(0,0,0,.18);
  transition: transform .25s ease;
}
.nd-sidebar-brand {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display:flex; align-items:center; gap:12px;
}
.nd-sidebar-brand img { width:38px; height:38px; filter:drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
.nd-brand-text .name    { font-size:15px; font-weight:800; color:#fff; letter-spacing:.3px; }
.nd-brand-text .tagline { font-size:10px; color:rgba(255,255,255,.5); margin-top:1px; }
.nd-nav-section {
  font-size:9px; font-weight:700; letter-spacing:1.4px; text-transform:uppercase;
  color:rgba(255,255,255,.35); padding:18px 18px 6px;
}
.nd-nav-link {
  display:flex; align-items:center; gap:11px;
  padding:10px 18px; color:rgba(255,255,255,.65);
  font-size:13px; font-weight:500;
  border-radius:0; text-decoration:none;
  transition:all .2s; position:relative;
  margin:1px 10px; border-radius:8px;
}
.nd-nav-link:hover { background:rgba(255,255,255,.08); color:#fff; }
.nd-nav-link.active {
  background: linear-gradient(135deg,rgba(255,75,43,.25) 0%,rgba(255,65,108,.15) 100%);
  color:#fff; font-weight:600;
  box-shadow:inset 3px 0 0 var(--nd-red);
}
.nd-nav-link .nav-icon { width:20px; text-align:center; font-size:15px; flex-shrink:0; }
.nd-nav-badge {
  margin-left:auto; background:var(--nd-red);
  color:#fff; font-size:10px; font-weight:700;
  padding:2px 7px; border-radius:20px;
}
.nd-sidebar-footer {
  margin-top:auto; padding:14px 12px;
  border-top:1px solid rgba(255,255,255,.08);
}
.nd-user-card {
  display:flex; align-items:center; gap:10px;
  background:rgba(255,255,255,.06); border-radius:10px;
  padding:10px 12px;
}
.nd-avatar {
  width:34px; height:34px; border-radius:50%;
  background:var(--nd-gradient); display:flex;
  align-items:center; justify-content:center;
  font-weight:800; font-size:14px; color:#fff; flex-shrink:0;
}
.nd-user-name  { font-size:13px; font-weight:600; color:#fff; }
.nd-user-role  { font-size:10px; color:rgba(255,255,255,.45); }

/* ── TOPBAR ──────────────────────────────────────── */
.nd-topbar {
  height: var(--header-h); margin-left:var(--sidebar-w);
  background:#fff; border-bottom:1px solid #e2e8f0;
  display:flex; align-items:center; padding:0 24px;
  position:sticky; top:0; z-index:1030;
  box-shadow:0 1px 8px rgba(0,0,0,.06);
}
.nd-topbar-title   { font-size:17px; font-weight:700; color:var(--nd-navy); }
.nd-topbar-sub     { font-size:11px; color:#94a3b8; margin-top:1px; }
.nd-topbar-actions { margin-left:auto; display:flex; align-items:center; gap:10px; }

/* ── PAGE CONTENT ────────────────────────────────── */
.nd-content { margin-left:var(--sidebar-w); padding:24px; min-height:calc(100vh - var(--header-h)); }

/* ── STAT CARDS ──────────────────────────────────── */
.nd-stat-card {
  background:#fff; border-radius:14px; padding:20px 22px;
  border:1px solid #e8edf5; transition:all .2s;
  box-shadow:0 2px 12px rgba(26,35,126,.05);
}
.nd-stat-card:hover { transform:translateY(-3px); box-shadow:0 8px 28px rgba(26,35,126,.1); }
.nd-stat-icon {
  width:46px; height:46px; border-radius:12px;
  display:flex; align-items:center; justify-content:center; font-size:20px;
}
.nd-stat-value { font-size:30px; font-weight:800; color:var(--nd-navy); line-height:1.1; }
.nd-stat-label { font-size:12px; color:#64748b; font-weight:500; margin-top:2px; }
.nd-stat-sub   { font-size:11px; color:#94a3b8; margin-top:6px; }

/* ── CARDS ───────────────────────────────────────── */
.nd-card {
  background:#fff; border-radius:14px;
  border:1px solid #e8edf5;
  box-shadow:0 2px 12px rgba(26,35,126,.05);
  overflow:hidden;
}
.nd-card-header {
  padding:16px 20px; background:#fff;
  border-bottom:1px solid #f1f5f9;
  display:flex; align-items:center; justify-content:space-between;
}
.nd-card-title { font-size:14px; font-weight:700; color:var(--nd-navy); }
.nd-card-sub   { font-size:11px; color:#94a3b8; margin-top:2px; }
.nd-card-body  { padding:20px; }

/* ── TABLES ──────────────────────────────────────── */
.nd-table { width:100%; border-collapse:collapse; font-size:13px; }
.nd-table thead th {
  background:#f8faff; color:#475569; font-size:11px;
  font-weight:700; letter-spacing:.7px; text-transform:uppercase;
  padding:11px 16px; border-bottom:2px solid #e8edf5; white-space:nowrap;
}
.nd-table tbody td {
  padding:13px 16px; color:#334155; border-bottom:1px solid #f1f5f9;
  vertical-align:middle;
}
.nd-table tbody tr:last-child td { border-bottom:none; }
.nd-table tbody tr:hover td { background:#f8faff; }
.td-bold { font-weight:600; color:var(--nd-navy) !important; }

/* ── BADGES ──────────────────────────────────────── */
.nd-badge {
  display:inline-flex; align-items:center; gap:5px;
  padding:3px 10px; border-radius:20px;
  font-size:11px; font-weight:600;
}
.nd-badge-success { background:#dcfce7; color:#15803d; }
.nd-badge-danger  { background:#fee2e2; color:#dc2626; }
.nd-badge-warning { background:#fef3c7; color:#d97706; }
.nd-badge-primary { background:#ede9fe; color:#5b21b6; }
.nd-badge-info    { background:#dbeafe; color:#1d4ed8; }
.nd-badge-gray    { background:#f1f5f9; color:#64748b; }
.nd-badge-navy    { background:rgba(26,35,126,.1); color:var(--nd-navy); }

/* ── BUTTONS ─────────────────────────────────────── */
.btn-nd-primary {
  background:var(--nd-gradient); border:none; color:#fff;
  font-weight:600; font-size:13px; padding:9px 18px; border-radius:9px;
  transition:all .2s; display:inline-flex; align-items:center; gap:7px;
}
.btn-nd-primary:hover { transform:translateY(-1px); box-shadow:0 6px 20px rgba(255,75,43,.35); color:#fff; }
.btn-nd-navy {
  background:var(--nd-navy); border:none; color:#fff;
  font-weight:600; font-size:13px; padding:9px 18px; border-radius:9px;
  transition:all .2s; display:inline-flex; align-items:center; gap:7px;
}
.btn-nd-navy:hover { background:var(--nd-navy-light); color:#fff; transform:translateY(-1px); }
.btn-nd-outline {
  background:#fff; border:1.5px solid #e2e8f0; color:#475569;
  font-weight:500; font-size:13px; padding:8px 16px; border-radius:9px;
  transition:all .2s; display:inline-flex; align-items:center; gap:7px;
}
.btn-nd-outline:hover { border-color:var(--nd-navy); color:var(--nd-navy); background:#f8faff; }
.btn-nd-danger {
  background:#fee2e2; border:1.5px solid #fca5a5; color:#dc2626;
  font-weight:600; font-size:13px; padding:8px 16px; border-radius:9px;
  transition:all .2s; display:inline-flex; align-items:center; gap:7px;
}
.btn-nd-danger:hover { background:#fecaca; }
.btn-sm-icon { padding:6px 10px !important; font-size:12px !important; }

/* ── FORMS ───────────────────────────────────────── */
.nd-form-label { font-size:11px; font-weight:700; color:#475569; text-transform:uppercase; letter-spacing:.6px; margin-bottom:6px; }
.nd-form-control {
  background:#f8faff; border:1.5px solid #e2e8f0; border-radius:9px;
  padding:10px 13px; font-size:13.5px; color:#1e2a45; width:100%;
  transition:all .2s; outline:none; font-family:'Inter',sans-serif;
}
.nd-form-control:focus { border-color:var(--nd-navy); background:#fff; box-shadow:0 0 0 3px rgba(26,35,126,.08); }
.nd-form-control::placeholder { color:#94a3b8; }
select.nd-form-control { cursor:pointer; }

/* ── SEARCH BAR ──────────────────────────────────── */
.nd-search-wrap { position:relative; }
.nd-search-icon { position:absolute; left:12px; top:50%; transform:translateY(-50%); color:#94a3b8; font-size:14px; pointer-events:none; }
.nd-search-input {
  padding-left:36px !important;
  background:#f8faff; border:1.5px solid #e2e8f0; border-radius:9px;
  padding:9px 12px; font-size:13px; width:100%; outline:none;
  transition:border-color .2s; font-family:'Inter',sans-serif; color:#1e2a45;
}
.nd-search-input:focus { border-color:var(--nd-navy); }

/* ── MODALS ──────────────────────────────────────── */
.modal-content   { border:none; border-radius:18px; box-shadow:0 20px 60px rgba(0,0,0,.15); }
.modal-header    { border-bottom:1px solid #f1f5f9; padding:18px 22px; }
.modal-title     { font-size:15px; font-weight:700; color:var(--nd-navy); }
.modal-body      { padding:22px; }
.modal-footer    { border-top:1px solid #f1f5f9; padding:14px 22px; }
.btn-close:focus { box-shadow:none; }

/* ── TOOLBAR ─────────────────────────────────────── */
.nd-toolbar {
  padding:14px 20px; background:#fff;
  border-bottom:1px solid #f1f5f9;
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}

/* ── CHART BARS ──────────────────────────────────── */
.chart-area { height:160px; display:flex; align-items:flex-end; gap:5px; padding-bottom:20px; }
.cbar { flex:1; border-radius:5px 5px 0 0; position:relative; min-width:20px; cursor:pointer; transition:opacity .2s; }
.cbar:hover { opacity:.75; }
.cbar-tip { position:absolute; top:-26px; left:50%; transform:translateX(-50%); background:#1e2a45; color:#fff; font-size:9px; font-weight:600; padding:2px 6px; border-radius:5px; white-space:nowrap; opacity:0; transition:.15s; pointer-events:none; }
.cbar:hover .cbar-tip { opacity:1; }
.cbar-lbl { position:absolute; bottom:-18px; left:50%; transform:translateX(-50%); font-size:9px; color:#94a3b8; white-space:nowrap; }

/* ── ACTIVITY ────────────────────────────────────── */
.nd-activity-item { display:flex; gap:12px; padding:11px 0; border-bottom:1px solid #f8faff; }
.nd-activity-item:last-child { border-bottom:none; }
.nd-act-icon { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; }
.nd-act-title { font-size:13px; font-weight:500; color:#1e2a45; }
.nd-act-meta  { font-size:11px; color:#94a3b8; margin-top:2px; }

/* ── TOAST ───────────────────────────────────────── */
.nd-toast-wrap { position:fixed; bottom:24px; right:24px; z-index:9999; display:flex; flex-direction:column; gap:8px; }
.nd-toast { display:flex; align-items:center; gap:10px; padding:13px 18px; background:#fff; border-radius:12px; box-shadow:0 8px 30px rgba(0,0,0,.12); font-size:13px; color:#1e2a45; min-width:260px; animation:toastIn .3s ease; }
.nd-toast.success { border-left:4px solid #22c55e; }
.nd-toast.error   { border-left:4px solid #ef4444; }
.nd-toast.info    { border-left:4px solid var(--nd-navy); }
.nd-toast.warning { border-left:4px solid #f59e0b; }
@keyframes toastIn { from{opacity:0;transform:translateX(30px)} to{opacity:1;transform:translateX(0)} }

/* ── STATUS DOTS ─────────────────────────────────── */
.nd-dot { width:7px; height:7px; border-radius:50%; display:inline-block; }
.nd-dot-green  { background:#22c55e; box-shadow:0 0 5px #22c55e; }
.nd-dot-red    { background:#ef4444; }
.nd-dot-amber  { background:#f59e0b; }
.nd-dot-gray   { background:#cbd5e1; }

/* ── LOGIN PAGE ──────────────────────────────────── */
.nd-login-page { min-height:100vh; background:linear-gradient(135deg,#1A237E 0%,#111860 40%,#0d1240 100%); display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.nd-login-blob { position:absolute; border-radius:50%; filter:blur(80px); pointer-events:none; }
.nd-login-card { background:#fff; border-radius:20px; padding:40px 36px; width:100%; max-width:440px; box-shadow:0 32px 80px rgba(0,0,0,.35); position:relative; z-index:1; }

/* ── PAGINATION ──────────────────────────────────── */
.nd-pagination { padding:14px 20px; border-top:1px solid #f1f5f9; display:flex; align-items:center; justify-content:space-between; }
.nd-page-info  { font-size:12px; color:#94a3b8; }
.nd-page-btn { width:32px; height:32px; border-radius:8px; border:1.5px solid #e2e8f0; background:#fff; color:#475569; font-size:13px; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all .2s; }
.nd-page-btn:hover, .nd-page-btn.active { background:var(--nd-navy); border-color:var(--nd-navy); color:#fff; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width:768px) {
  .nd-sidebar { transform:translateX(-100%); }
  .nd-sidebar.open { transform:translateX(0); }
  .nd-topbar, .nd-content { margin-left:0; }
}
.pulse-dot { animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
