@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600;1,700&family=Hind+Siliguri:wght@400;500;600;700&family=Noto+Sans+Bengali:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================
   Biswas IT Firm - Dashboard System Styles
   Scoped to /dashboard/* pages
   ============================================================ */

/* === Variables === */
:root {
  --dash-font: 'Poppins', 'Hind Siliguri', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --dash-font-bengali: 'Hind Siliguri', 'Noto Sans Bengali', 'Poppins', sans-serif;
  --dash-primary: #1d5eff;
  --dash-primary-dark: #0f3bbd;
  --dash-accent: #06d6a0;
  --dash-danger: #ef4444;
  --dash-warning: #f59e0b;
  --dash-bg: #f1f5f9;
  --dash-surface: rgba(255, 255, 255, 0.75);
  --dash-surface-solid: #ffffff;
  --dash-text: #0a1628;
  --dash-text-muted: rgba(10, 22, 40, 0.60);
  --dash-border: rgba(10, 22, 40, 0.08);
  --dash-radius: 16px;
  --dash-radius-sm: 10px;
  --dash-radius-pill: 9999px;
  --dash-shadow: 0 4px 24px rgba(0,0,0,0.06);
  --dash-shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --dash-transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

html.dark,
body.dark {
  --dash-bg: #050a18;
  --dash-surface: rgba(12, 26, 53, 0.75);
  --dash-surface-solid: #0c1a35;
  --dash-text: #ffffff;
  --dash-text-muted: rgba(255, 255, 255, 0.68);
  --dash-border: rgba(255, 255, 255, 0.12);
}

/* === Global Root Styling & Color Inheritance === */
html,
body,
body.dashboard-body,
.dashboard-container,
.dashboard-nav,
.dash-modal {
  font-family: 'Poppins', 'Hind Siliguri', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
  color: var(--dash-text);
  background-color: var(--dash-bg);
  -webkit-font-smoothing: antialiased;
}

button, input, optgroup, select, textarea {
  font-family: 'Poppins', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
}

.dash-bengali-text,
.bengali-text,
[lang="bn"] {
  font-family: var(--dash-font-bengali);
  line-height: 1.65;
  word-break: break-word;
  overflow-wrap: break-word;
  font-feature-settings: "liga" 1, "calt" 1;
}

.dash-spinner-inline {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: dashSpin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes dashSpin {
  to { transform: rotate(360deg); }
}

.dash-layout,
.dash-main,
.dash-content,
.dash-card,
.dash-modal,
.dash-login-wrapper,
.dash-login-card {
  color: var(--dash-text);
}

.dash-layout h1,
.dash-layout h2,
.dash-layout h3,
.dash-layout h4,
.dash-layout h5,
.dash-layout h6,
.dash-layout p,
.dash-layout span,
.dash-layout strong,
.dash-layout b,
.dash-layout label,
.dash-layout td,
.dash-layout th {
  color: inherit;
}

/* === Utility Helper === */
.hidden {
  display: none !important;
}

/* === Dashboard Layout === */
.dash-layout {
  display: flex;
  min-height: 100vh;
  background: var(--dash-bg);
  position: relative;
}

.dash-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  background: var(--dash-surface-solid);
  border-right: 1px solid var(--dash-border);
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: transform var(--dash-transition);
  overflow-y: auto;
  box-sizing: border-box;
}

.dash-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--dash-border);
}

.dash-sidebar-nav {
  padding: 12px;
  flex: 1;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--dash-radius-sm);
  color: var(--dash-text-muted);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--dash-transition);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.dash-nav-item:hover {
  background: var(--dash-primary);
  color: #fff;
}

.dash-nav-item.active {
  background: var(--dash-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(29,94,255,0.3);
}

.dash-nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.dash-nav-section {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dash-text-muted);
  padding: 20px 14px 6px;
}

.dash-main {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
}

/* === Dashboard Top Bar === */
.dash-topbar,
header.dash-topbar {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  z-index: 40 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 28px !important;
  background: var(--dash-surface) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--dash-border) !important;
}

.dash-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-page-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dash-text);
}

.dash-breadcrumb {
  font-size: 12px;
  color: var(--dash-text-muted);
}

/* === Dashboard Content Area === */
.dash-content {
  padding: 28px;
  max-width: 1400px;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
}

/* === Cards === */
.dash-card {
  background: var(--dash-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  padding: 24px;
  transition: all var(--dash-transition);
}

.dash-card:hover {
  box-shadow: var(--dash-shadow);
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dash-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dash-text);
}

.dash-card-subtitle {
  font-size: 12px;
  color: var(--dash-text-muted);
  margin-top: 2px;
}

/* === KPI Stat Cards === */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.dash-kpi {
  background: var(--dash-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  padding: 20px;
  transition: all var(--dash-transition);
}

.dash-kpi:hover {
  transform: translateY(-2px);
  box-shadow: var(--dash-shadow);
}

.dash-kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--dash-text-muted);
}

.dash-kpi-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--dash-text);
  margin-top: 8px;
  font-family: 'Poppins', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif !important;
}

.dash-kpi-change {
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
}

.dash-kpi-change.positive { color: #10b981; }
.dash-kpi-change.negative { color: var(--dash-danger); }

/* === Data Tables === */
.dash-table-wrap {
  overflow-x: auto;
  border-radius: var(--dash-radius);
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.dash-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dash-text-muted);
  border-bottom: 2px solid var(--dash-border);
  white-space: nowrap;
}

.dash-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--dash-border);
  color: var(--dash-text);
  vertical-align: middle;
}

.dash-table tbody tr {
  transition: background var(--dash-transition);
}

.dash-table tbody tr:hover {
  background: rgba(29,94,255,0.04);
}

/* === Badges/Tags === */
.dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--dash-radius-pill);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.dash-badge-blue { background: rgba(29,94,255,0.12); color: #1d5eff; }
.dash-badge-green { background: rgba(16,185,129,0.12); color: #059669; }
.dash-badge-yellow { background: rgba(245,158,11,0.12); color: #d97706; }
.dash-badge-red { background: rgba(239,68,68,0.12); color: #dc2626; }
.dash-badge-purple { background: rgba(139,92,246,0.12); color: #7c3aed; }
.dash-badge-gray { background: rgba(10,22,40,0.08); color: var(--dash-text-muted); }

/* Badges in Dark Mode */
html.dark .dash-badge-blue,
body.dark .dash-badge-blue { background: rgba(29, 94, 255, 0.22); color: #60a5fa; }
html.dark .dash-badge-green,
body.dark .dash-badge-green { background: rgba(16, 185, 129, 0.22); color: #34d399; }
html.dark .dash-badge-yellow,
body.dark .dash-badge-yellow { background: rgba(245, 158, 11, 0.22); color: #fbbf24; }
html.dark .dash-badge-red,
body.dark .dash-badge-red { background: rgba(239, 68, 68, 0.22); color: #f87171; }
html.dark .dash-badge-purple,
body.dark .dash-badge-purple { background: rgba(139, 92, 246, 0.22); color: #c084fc; }
html.dark .dash-badge-gray,
body.dark .dash-badge-gray { background: rgba(255, 255, 255, 0.10); color: var(--dash-text-muted); }

/* === Buttons === */
.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--dash-radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--dash-transition);
  text-decoration: none;
  white-space: nowrap;
}

.dash-btn:active { transform: scale(0.97); }

.dash-btn-primary {
  background: linear-gradient(135deg, var(--dash-primary), var(--dash-primary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(29,94,255,0.3);
}
.dash-btn-primary:hover { box-shadow: 0 6px 20px rgba(29,94,255,0.4); transform: translateY(-1px); }

.dash-btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.dash-btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.dash-btn-outline {
  background: transparent;
  color: var(--dash-text);
  border: 1px solid var(--dash-border);
}
.dash-btn-outline:hover { background: var(--dash-surface); border-color: var(--dash-primary); color: var(--dash-primary); }

.dash-btn-sm { padding: 6px 14px; font-size: 12px; }
.dash-btn-xs { padding: 4px 10px; font-size: 11px; }
.dash-btn-pill { border-radius: var(--dash-radius-pill); }

.dash-btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--dash-radius-sm);
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  color: var(--dash-text-muted);
}
.dash-btn-icon:hover { color: var(--dash-primary); border-color: var(--dash-primary); }

/* === Forms === */
.dash-form-group {
  margin-bottom: 18px;
}

.dash-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--dash-text);
  margin-bottom: 6px;
}

.dash-input, .dash-select, .dash-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--dash-surface-solid);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-sm);
  font-size: 13.5px;
  color: var(--dash-text);
  transition: border-color var(--dash-transition), box-shadow var(--dash-transition);
  font-family: inherit;
  outline: none;
}

.dash-input::placeholder,
.dash-textarea::placeholder {
  color: var(--dash-text-muted);
  opacity: 0.8;
}

.dash-select option {
  background-color: var(--dash-surface-solid);
  color: var(--dash-text);
}

.dash-input:focus, .dash-select:focus, .dash-textarea:focus {
  border-color: var(--dash-primary);
  box-shadow: 0 0 0 3px rgba(29,94,255,0.12);
}

.dash-textarea {
  min-height: 100px;
  resize: vertical;
}

.dash-input-error {
  border-color: var(--dash-danger) !important;
}

.dash-error-text {
  font-size: 11px;
  color: var(--dash-danger);
  margin-top: 4px;
}

/* === Modal === */
.dash-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dash-transition);
}

.dash-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.dash-modal {
  background: var(--dash-surface-solid);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--dash-shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--dash-transition);
  color: var(--dash-text);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

html:not(.dark) .dash-modal {
  scrollbar-color: rgba(10, 22, 40, 0.2) transparent;
}

.dash-modal::-webkit-scrollbar {
  width: 6px;
}
.dash-modal::-webkit-scrollbar-track {
  background: transparent;
}
.dash-modal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}
html:not(.dark) .dash-modal::-webkit-scrollbar-thumb {
  background: rgba(10, 22, 40, 0.18);
}
.dash-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

.dash-modal-overlay.active .dash-modal {
  transform: translateY(0) scale(1);
}

.dash-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--dash-border);
  color: var(--dash-text);
}

.dash-modal-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--dash-text);
}

.dash-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dash-border);
  background: var(--dash-surface);
  color: var(--dash-text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: all var(--dash-transition);
}
.dash-modal-close:hover { background: var(--dash-border); color: var(--dash-text); }

.dash-modal-body {
  padding: 22px 24px;
  color: var(--dash-text);
}

.dash-modal-body h1,
.dash-modal-body h2,
.dash-modal-body h3,
.dash-modal-body h4,
.dash-modal-body h5,
.dash-modal-body h6,
.dash-modal-body p,
.dash-modal-body span,
.dash-modal-body strong,
.dash-modal-body b,
.dash-modal-body div,
.dash-modal-body label {
  color: inherit;
}

.dash-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--dash-border);
}

/* === Progress Bar === */
.dash-progress {
  width: 100%;
  height: 8px;
  background: var(--dash-border);
  border-radius: var(--dash-radius-pill);
  overflow: hidden;
}

.dash-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--dash-primary), #06d6a0);
  border-radius: var(--dash-radius-pill);
  transition: width 0.6s ease;
}

/* === File Upload Dropzone === */
.dash-dropzone {
  border: 2px dashed var(--dash-border);
  border-radius: var(--dash-radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--dash-transition);
}

.dash-dropzone:hover, .dash-dropzone.dragover {
  border-color: var(--dash-primary);
  background: rgba(29,94,255,0.04);
}

.dash-dropzone-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--dash-text-muted);
}

.dash-dropzone-text {
  font-size: 13px;
  color: var(--dash-text-muted);
}

.dash-dropzone-text strong {
  color: var(--dash-primary);
}

/* === Toast Notifications === */
.dash-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--dash-radius-sm);
  background: var(--dash-surface-solid);
  border: 1px solid var(--dash-border);
  box-shadow: var(--dash-shadow-lg);
  font-size: 13px;
  color: var(--dash-text);
  animation: dashToastIn 0.3s ease;
  max-width: 380px;
}

.dash-toast.success { border-left: 4px solid #10b981; }
.dash-toast.error { border-left: 4px solid var(--dash-danger); }
.dash-toast.warning { border-left: 4px solid var(--dash-warning); }
.dash-toast.info { border-left: 4px solid var(--dash-primary); }

@keyframes dashToastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* === Empty States === */
.dash-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--dash-text-muted);
}

.dash-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  opacity: 0.4;
}

.dash-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--dash-text);
  margin-bottom: 6px;
}

.dash-empty-desc {
  font-size: 13px;
}

/* === Loading Spinner === */
.dash-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--dash-border);
  border-top-color: var(--dash-primary);
  border-radius: 50%;
  animation: dashSpin 0.7s linear infinite;
}

@keyframes dashSpin {
  to { transform: rotate(360deg); }
}

.dash-loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

/* === Avatar === */
.dash-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--dash-radius-sm);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--dash-primary), var(--dash-primary-dark));
  flex-shrink: 0;
}

.dash-avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.dash-avatar-md { width: 44px; height: 44px; font-size: 16px; }
.dash-avatar-lg { width: 56px; height: 56px; font-size: 20px; }

/* === Responsive === */
.dash-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--dash-surface);
  border-radius: var(--dash-radius-sm);
  color: var(--dash-text);
  cursor: pointer;
  border: 1px solid var(--dash-border);
}

/* Sidebar Backdrop Overlay on Mobile */
.dash-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 24, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-sidebar-close {
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--dash-border);
  background: var(--dash-surface);
  color: var(--dash-text-muted);
  border-radius: var(--dash-radius-sm);
  cursor: pointer;
  transition: all var(--dash-transition);
}

.dash-sidebar-close:hover {
  color: var(--dash-text);
  background: var(--dash-surface-hover);
  border-color: var(--dash-border-hover);
}

@media (max-width: 1024px) {
  .dash-sidebar {
    transform: translateX(-100%);
    z-index: 50;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .dash-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--dash-shadow-lg), 0 0 0 100vmax rgba(0,0,0,0.1);
  }
  .dash-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .dash-sidebar-close {
    display: flex !important;
  }
  .dash-sidebar-backdrop {
    display: block;
  }
  .dash-sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }
  body.dash-sidebar-locked {
    overflow: hidden;
  }
  .dash-main {
    margin-left: 0;
  }
  .dash-sidebar-toggle {
    display: flex;
  }
  .dash-content {
    padding: 20px 16px;
  }
}

@media (max-width: 640px) {
  .dash-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-kpi-value {
    font-size: 22px;
  }
  .dash-topbar {
    padding: 10px 16px;
  }
  .dash-modal {
    max-width: 100%;
    margin: 10px;
  }
}

/* === Login Page === */
.dash-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dash-bg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.dash-login-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(29,94,255,0.15), transparent 70%);
  pointer-events: none;
}

.dash-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--dash-surface-solid);
  border: 1px solid var(--dash-border);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: var(--dash-shadow-lg);
  position: relative;
  z-index: 1;
}

.dash-login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.dash-login-logo img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
}

.dash-login-logo h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--dash-text);
  margin-top: 12px;
}

.dash-login-logo p {
  font-size: 13px;
  color: var(--dash-text-muted);
  margin-top: 4px;
}

.dash-login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  font-size: 11px;
  color: var(--dash-text-muted);
}

.dash-login-divider::before,
.dash-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--dash-border);
}

.dash-login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--dash-text-muted);
}

.dash-login-footer a {
  color: var(--dash-primary);
  font-weight: 600;
  text-decoration: none;
}
.dash-login-footer a:hover {
  text-decoration: underline;
}

/* === Notification Dot === */
.dash-notif-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--dash-danger);
  border-radius: 50%;
  border: 2px solid var(--dash-surface-solid);
}

/* === Sidebar User Info === */
.dash-sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid var(--dash-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.dash-sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dash-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-sidebar-user-role {
  font-size: 11px;
  color: var(--dash-text-muted);
  text-transform: capitalize;
}

/* === Grid Helpers === */
.dash-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dash-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

@media (max-width: 768px) {
  .dash-grid-2, .dash-grid-3 { grid-template-columns: 1fr; }
}

/* === Tabs === */
.dash-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-sm);
  overflow-x: auto;
}

.dash-tab {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dash-text-muted);
  cursor: pointer;
  border: none;
  background: none;
  white-space: nowrap;
  transition: all var(--dash-transition);
}

.dash-tab:hover { color: var(--dash-text); background: var(--dash-border); }
.dash-tab.active { background: var(--dash-primary); color: #fff; box-shadow: 0 2px 8px rgba(29,94,255,0.3); }

/* === Chart Bars === */
.dash-chart-bar-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  height: 200px;
  padding-top: 24px;
  border-bottom: 1px solid var(--dash-border);
}

.dash-chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.dash-chart-bar-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--dash-primary);
}

.dash-chart-bar {
  width: 100%;
  max-width: 36px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(to top, var(--dash-primary-dark), #06d6a0);
  transition: height 0.6s ease;
  min-height: 4px;
}

.dash-chart-bar:hover {
  opacity: 0.85;
}

.dash-chart-bar-month {
  font-size: 12px;
  font-weight: 600;
  color: var(--dash-text-muted);
}

/* === Portfolio Management System === */
.dash-portfolio-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .dash-portfolio-grid-layout {
    grid-template-columns: 1fr;
  }
}

.dash-dropzone {
  border: 2px dashed var(--dash-border);
  border-radius: var(--dash-radius-sm);
  padding: 20px 16px;
  text-align: center;
  background: var(--dash-surface);
  transition: all var(--dash-transition);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.dash-dropzone:hover,
.dash-dropzone.dragover {
  border-color: var(--dash-primary);
  background: rgba(29, 94, 255, 0.05);
}

.dash-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.dash-preview-container {
  position: sticky;
  top: 90px;
}

.dash-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.dash-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dash-primary);
  background: rgba(29, 94, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--dash-radius-pill);
}

.dash-showcase-card {
  background: var(--dash-surface-solid);
  border: 1px solid var(--dash-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--dash-shadow-lg);
  transition: all var(--dash-transition);
  position: relative;
}

.dash-showcase-card:hover {
  border-color: rgba(29, 94, 255, 0.4);
  transform: translateY(-2px);
}

.dash-showcase-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-showcase-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.dash-showcase-card:hover .dash-showcase-thumb-wrap img {
  transform: scale(1.03);
}

.dash-showcase-body {
  padding: 18px;
}

.dash-pill-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(29, 94, 255, 0.08);
  color: var(--dash-primary);
  margin: 2px 3px 2px 0;
}

.dash-category-sync-card {
  background: var(--dash-surface-solid);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  padding: 20px;
  transition: all var(--dash-transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dash-category-sync-card:hover {
  border-color: var(--dash-primary);
  transform: translateY(-2px);
  box-shadow: var(--dash-shadow);
}

/* ==========================================================================
   Universal Poppins Typography Enforcement for Dashboard (All tabs, modals, cards)
   ========================================================================== */
*,
*::before,
*::after {
  font-family: 'Poppins', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

code, kbd, samp, pre, .font-mono, [class*="mono"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}


