/* ========================================================
   ShohojKagoj.com - Core Design System & Layout
   Ultra-fast, zero-framework CSS tailored for desktop + mobile app view
   ======================================================== */

/* ========================================================
   বাংলাদেশ সরকার অনুমোদিত প্রমিত ইউনিকোড ফন্টসমূহ (Govt. Standard Fonts)
   ১. নিকোশ ব্যান (NikoshBAN / Nikosh) - মন্ত্রিপরিষদ বিভাগ ও জনপ্রশাসন মন্ত্রণালয় নির্দেশিত
   ২. সোলায়মান লিপি (SolaimanLipi) - বাংলাদেশ জাতীয় তথ্য বাতায়ন (bangladesh.gov.bd)
   ৩. কালপুরুষ (Kalpurush) - প্রমিত প্রকাশনা ও লিগ্যাল ড্রাফট
   ======================================================== */
@font-face {
  font-family: 'NikoshBAN';
  src: url('fonts/NikoshBAN.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nikosh';
  src: url('fonts/Nikosh.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SolaimanLipi';
  src: url('fonts/SolaimanLipi.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kalpurush';
  src: url('fonts/Kalpurush.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #006a4e;        /* বাংলাদেশ গ্রিন */
  --primary-dark: #004d38;
  --primary-light: #e6f3ef;
  --primary-soft: #f0fdf4;
  --accent-red: #f42a41;     /* বাংলাদেশ রেড */
  --accent-bkash: #e2136e;   /* বিকাশ পিঙ্ক */
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-sidebar: #ffffff;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-focus: #006a4e;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --sidebar-width: 280px;
  --sidebar-width-collapsed: 74px;
  --header-height: 64px;
  --bottom-nav-height: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* ইউআই এবং অ্যাপের সার্বিক ফন্ট: সোলায়মান লিপি ও নিকোশ */
  --font-family: 'SolaimanLipi', 'NikoshBAN', 'Nikosh', 'Kalpurush', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif;
  
  /* অফিসিয়াল সরকারি আবেদন, স্ট্যাম্প চুক্তিপত্র ও কোর্টের কাগজের ফন্ট: নিকোশ ব্যান */
  --font-doc: 'NikoshBAN', 'Nikosh', 'SolaimanLipi', 'Kalpurush', 'Noto Serif Bengali', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-family);
}

html, body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  font-size: 15px;
}

/* App Wrapper */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ========================================================
   Desktop Sidebar
   ======================================================== */
.app-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 40;
  padding: 18px 14px;
  box-shadow: var(--shadow-sm);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 14px;
  position: relative;
  height: 48px;
  box-sizing: content-box;
  padding-right: 34px;
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-info-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  transition: gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 4px 8px rgba(0, 106, 78, 0.25);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand-logo-icon:hover {
  transform: scale(1.05);
}

.brand-text {
  max-width: 175px;
  opacity: 1;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
}

.brand-text h1 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.brand-text span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* সাইডবার ছোট/বড় টগল বাটন */
.sidebar-toggle-btn {
  position: absolute;
  top: 9px;
  right: 0px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card, #ffffff);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-radius 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s ease,
              background 0.2s, border-color 0.2s, color 0.2s,
              transform 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  z-index: 50;
}

.sidebar-toggle-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
}

.sidebar-toggle-btn .toggle-arrow-icon {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .sidebar-toggle-btn {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

[data-theme="dark"] .sidebar-toggle-btn:hover {
  background: #064e3b;
  color: #34d399;
  border-color: #10b981;
}

/* ========================================================
   Sidebar Collapsed (Compact Mode / ছোট সাইডবার স্টেট)
   ======================================================== */
body.sidebar-collapsed {
  --sidebar-width: var(--sidebar-width-collapsed, 74px);
}

body.sidebar-collapsed .app-sidebar {
  width: var(--sidebar-width-collapsed, 74px);
  padding: 18px 12px;
}

body.sidebar-collapsed .app-viewport {
  margin-left: var(--sidebar-width-collapsed, 74px);
}

body.sidebar-collapsed .brand-header {
  padding-right: 0;
}

body.sidebar-collapsed .brand-info-wrap {
  justify-content: center;
  gap: 0;
}

body.sidebar-collapsed .brand-text {
  opacity: 0;
  max-width: 0;
  transform: translateX(-10px);
  pointer-events: none;
}

body.sidebar-collapsed .sidebar-toggle-btn {
  right: -13px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.16);
}

body.sidebar-collapsed .sidebar-toggle-btn .toggle-arrow-icon {
  transform: rotate(180deg);
}

body.sidebar-collapsed .sidebar-toggle-btn:hover {
  transform: scale(1.15);
}

body.sidebar-collapsed .nav-heading {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

body.sidebar-collapsed .sidebar-nav {
  padding-right: 0;
  gap: 6px;
  overflow-x: hidden;
}

body.sidebar-collapsed .nav-link {
  padding: 8px 0;
  justify-content: center;
  gap: 0;
}

body.sidebar-collapsed .nav-link .nav-icon {
  width: 48px;
  height: 42px;
}

body.sidebar-collapsed .nav-link span:not(.nav-icon):not(.nav-badge) {
  max-width: 0;
  opacity: 0;
  pointer-events: none;
}

body.sidebar-collapsed .nav-badge {
  max-width: 0;
  opacity: 0;
  padding: 0;
  margin: 0;
  pointer-events: none;
}

body.sidebar-collapsed .sidebar-sub-menu {
  max-height: 0 !important;
  opacity: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}

body.sidebar-collapsed .sidebar-subscription-card {
  padding: 10px 4px;
  max-height: 52px;
  text-align: center;
  border-radius: 12px;
  cursor: pointer;
}

body.sidebar-collapsed .sidebar-subscription-card .sub-header,
body.sidebar-collapsed .sidebar-subscription-card .sub-info,
body.sidebar-collapsed .sidebar-subscription-card .sub-btn {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

body.sidebar-collapsed .sidebar-subscription-card .sub-price {
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* ========================================================
   Floating Tooltip for Collapsed Sidebar (প্রিমিয়াম মাউসওভার)
   ======================================================== */
.sidebar-floating-tooltip {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(-6px);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.18s;
  background: #0f172a;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.35),
              0 4px 6px -2px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.sidebar-floating-tooltip::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 6px solid #0f172a;
}

.sidebar-floating-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.sidebar-floating-tooltip .tip-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 700;
}

.sidebar-floating-tooltip .tip-badge.badge-new {
  background: #dc2626;
  color: #ffffff;
}

[data-theme="dark"] .sidebar-floating-tooltip {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

[data-theme="dark"] .sidebar-floating-tooltip::before {
  border-right-color: #1e293b;
}

.app-sidebar a {
  text-decoration: none !important;
  color: inherit;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.nav-heading {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 10px 10px 4px;
  white-space: nowrap;
  overflow: hidden;
  max-height: 32px;
  opacity: 1;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s,
              color 0.15s,
              padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.nav-link span:not(.nav-icon):not(.nav-badge) {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
  opacity: 1;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link .nav-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin: 0;
  transition: transform 0.2s ease;
}

.nav-link:hover {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none !important;
}

.nav-link.active {
  background: var(--primary);
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 106, 78, 0.2);
  text-decoration: none !important;
}

.nav-link.active span {
  color: #ffffff !important;
}

.nav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  line-height: 1.4;
  flex-shrink: 0;
  max-width: 60px;
  opacity: 1;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link.active .nav-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.nav-badge.badge-new {
  background: #fee2e2;
  color: #dc2626;
}

.nav-link.active .nav-badge.badge-new {
  background: #dc2626;
  color: #ffffff;
}

.sidebar-subscription-card {
  background: linear-gradient(135deg, #006a4e 0%, #004d38 100%);
  color: white;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-top: auto;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  max-height: 220px;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-radius 0.3s ease;
}

.sub-header,
.sub-info,
.sub-btn {
  max-height: 80px;
  opacity: 1;
  overflow: hidden;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              margin 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.sub-header span {
  font-size: 12px;
  opacity: 0.9;
}

.sub-status-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.sub-price {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.sub-info {
  font-size: 11px;
  opacity: 0.85;
  margin-bottom: 12px;
}

.sub-btn {
  width: 100%;
  padding: 8px;
  background: white;
  color: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.sub-btn:hover {
  opacity: 0.95;
}

/* ========================================================
   Main Viewport
   ======================================================== */
.app-viewport {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop Topbar */
.app-topbar {
  height: var(--header-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.search-box-wrapper {
  position: relative;
  width: 380px;
}

.search-input {
  width: 100%;
  padding: 9px 16px 9px 38px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: var(--bg-main);
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s;
}

.search-input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.1);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-light);
  pointer-events: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 106, 78, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 106, 78, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 106, 78, 0); }
}

/* Main Content Area */
.app-content {
  padding: 24px 28px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Category Filter Tabs Bar */
.category-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  scrollbar-width: none;
}

.category-filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 106, 78, 0.2);
}

/* Dynamic View Sections */
.app-view {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.app-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section Header */
.section-header {
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

/* ========================================================
   Mobile App Header & Bottom Nav (App View Mode)
   ======================================================== */
.mobile-app-header {
  display: none;
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  .app-sidebar {
    display: none;
  }

  .app-viewport {
    margin-left: 0;
  }

  .app-topbar {
    display: none;
  }

  /* Mobile App Header */
  .mobile-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-brand .logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 18px;
    font-weight: 800;
  }

  .mobile-brand .title {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
  }

  .mobile-badge {
    background: var(--accent-bkash);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    cursor: pointer;
  }

  .app-content {
    padding: 16px;
    padding-bottom: 85px; /* space for mobile bottom nav */
  }

  /* Mobile Bottom Navigation */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    z-index: 50;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }

  .bottom-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s;
    padding: 4px 0;
    text-decoration: none !important;
  }

  .bottom-tab .tab-icon {
    font-size: 20px;
    margin-bottom: 2px;
  }

  .bottom-tab.active {
    color: var(--primary);
    font-weight: 700;
  }
}

/* ========================================================
   ডার্ক ও লাইট মোড ভ্যারিয়েবলস (Dark Theme Support)
   ======================================================== */
[data-theme="dark"] {
  --bg-main: #090d16;
  --bg-card: #131c2e;
  --bg-sidebar: #0f172a;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border-color: #1e293b;
  --primary-light: #064e3b;
  --primary-soft: #064e3b;
}

[data-theme="dark"] .app-sidebar,
[data-theme="dark"] .app-topbar,
[data-theme="dark"] .mobile-app-header,
[data-theme="dark"] .mobile-bottom-nav {
  background: #0f172a !important;
  border-color: #1e293b !important;
}

/* ন্যাভিগেশন লিংক ও সাইডবার আইটেম */
[data-theme="dark"] .nav-link {
  color: #94a3b8;
}
[data-theme="dark"] .nav-link:hover {
  background: rgba(0, 106, 78, 0.25);
  color: #34d399;
}
[data-theme="dark"] .nav-link.active {
  background: #006a4e;
  color: #ffffff !important;
}

/* টপবার ইনপুট ও বাটনসমূহ */
[data-theme="dark"] .search-input {
  background: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .search-input:focus {
  background: #131c2e !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}
[data-theme="dark"] .search-icon {
  color: #94a3b8;
}
[data-theme="dark"] .theme-toggle-btn {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}
[data-theme="dark"] .theme-toggle-btn:hover {
  background: #334155 !important;
  border-color: #10b981 !important;
}
[data-theme="dark"] .topbar-actions .btn-secondary {
  background: #064e3b !important;
  color: #6ee7b7 !important;
  border-color: #059669 !important;
}
[data-theme="dark"] .user-nav-btn {
  background: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .user-nav-btn:hover {
  background: #334155 !important;
  border-color: #10b981 !important;
}

/* ইনপুট, টেক্সটএরিয়া ও সিলেক্ট */
[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .form-control {
  background: #131c2e;
  color: #f1f5f9;
  border-color: #1e293b;
}
[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] .form-control:focus {
  background: #1a253c;
  border-color: #10b981;
  color: #ffffff;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder,
[data-theme="dark"] .form-control::placeholder {
  color: #64748b;
}
[data-theme="dark"] select option {
  background: #131c2e;
  color: #f1f5f9;
}

/* কার্ড ও কনটেইনার */
[data-theme="dark"] .service-card,
[data-theme="dark"] .tool-form-card,
[data-theme="dark"] .hub-card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .policy-card,
[data-theme="dark"] .business-card,
[data-theme="dark"] .business-kpi-card,
[data-theme="dark"] .resizer-box,
[data-theme="dark"] .meta-stats-box,
[data-theme="dark"] .receipt-stack-layout,
[data-theme="dark"] .receipt-side-layout,
[data-theme="dark"] .receipt-dual-layout,
[data-theme="dark"] .receipt-single-layout,
[data-theme="dark"] .standee-preview-card,
[data-theme="dark"] .preview-notice-bar {
  background: #131c2e;
  border-color: #1e293b;
}
/* ডার্ক মোডে কার্ড ও হাব হোভার ইফেক্ট */
[data-theme="dark"] .hub-card:hover {
  background: #1a253c !important;
  border-color: #10b981 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .hub-card:hover .hub-card-text h4 {
  color: #34d399 !important;
}
[data-theme="dark"] .hub-card:hover .hub-card-badge {
  background: #006a4e !important;
  color: #ffffff !important;
}

[data-theme="dark"] .service-card:hover {
  background: #162032 !important;
  border-color: #10b981 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .service-card:hover .service-title {
  color: #34d399 !important;
}

[data-theme="dark"] .contact-card:hover {
  background: #162032 !important;
  border-color: #10b981 !important;
}

[data-theme="dark"] .hub-card-badge {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
}

[data-theme="dark"] .service-card-tag {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #34d399 !important;
}

[data-theme="dark"] .service-icon-box {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
}

/* ফিল্টার চিপস */
[data-theme="dark"] .filter-chip {
  background: #131c2e;
  color: #94a3b8;
  border-color: #1e293b;
}
[data-theme="dark"] .filter-chip:hover {
  color: #34d399;
  border-color: #10b981;
}
[data-theme="dark"] .filter-chip.active {
  background: #006a4e;
  color: #ffffff;
  border-color: #006a4e;
}

/* টেবিলসমূহ */
[data-theme="dark"] .data-table,
[data-theme="dark"] .business-table {
  color: #f1f5f9;
}
[data-theme="dark"] .data-table th,
[data-theme="dark"] .business-table th {
  background: #0b1120 !important;
  color: #94a3b8 !important;
  border-color: #1e293b !important;
}
[data-theme="dark"] .data-table td,
[data-theme="dark"] .business-table td {
  border-color: #1e293b !important;
  color: #e2e8f0 !important;
}
[data-theme="dark"] .data-table tr:hover td,
[data-theme="dark"] .business-table tr:hover td {
  background: #1e293b !important;
}

/* হেডার্স ও লিংক */
[data-theme="dark"] .section-header h2,
[data-theme="dark"] .section-header h3,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
  color: #f1f5f9;
}
[data-theme="dark"] .section-header p {
  color: #94a3b8;
}
[data-theme="dark"] .back-link {
  color: #34d399;
}
[data-theme="dark"] .back-link:hover {
  color: #6ee7b7;
}

/* ডিরেক্টরি কল বাটন ও ব্যাজ */
[data-theme="dark"] .contact-call-btn {
  background: rgba(0, 106, 78, 0.25);
  color: #34d399;
}
[data-theme="dark"] .contact-call-btn:hover {
  background: #006a4e;
  color: #ffffff;
}

/* মডাল ব্যাকড্রপ ও ডায়লগ */
[data-theme="dark"] .modal-dialog,
[data-theme="dark"] .tagada-modal-card {
  background: #131c2e !important;
  color: #f1f5f9 !important;
  border: 1px solid #1e293b;
}

/* ডকুমেন্ট প্রিভিউ সবসময় সাদা থাকবে যাতে প্রিন্টে কালার নষ্ট না হয় */
[data-theme="dark"] .paper-sheet,
[data-theme="dark"] .a4-page-preview,
[data-theme="dark"] .stamp-page-preview,
[data-theme="dark"] .rent-receipt-slip,
[data-theme="dark"] .to-let-poster-card,
[data-theme="dark"] .poster-inner-frame,
[data-theme="dark"] .standee-sheet,
[data-theme="dark"] .cv-paper-sheet,
[data-theme="dark"] .cv-paper-container {
  background: #ffffff !important;
  color: #000000 !important;
}

/* ========================================================
   বাংলা ভয়েস টাইপিং মাইক্রোফোন বাটন (🎙️)
   ======================================================== */
.voice-input-container {
  position: relative;
  display: block;
  width: 100%;
}
.voice-input-container > input.form-control,
.voice-input-container > input {
  padding-right: 40px !important;
}
.voice-input-container > textarea.form-control,
.voice-input-container > textarea {
  padding-right: 40px !important;
}

.voice-mic-btn {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.voice-input-container.textarea-container > .voice-mic-btn {
  top: 10px;
  transform: none;
}
.voice-mic-btn:hover {
  background: #e6f3ef;
  border-color: #006a4e;
  transform: translateY(-50%) scale(1.1);
}
.voice-input-container.textarea-container > .voice-mic-btn:hover {
  transform: scale(1.1);
}
.voice-mic-btn.recording {
  background: #ef4444 !important;
  color: white !important;
  border-color: #dc2626 !important;
  animation: pulseVoice 1.2s infinite;
}
@keyframes pulseVoice {
  0% { transform: translateY(-50%) scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: translateY(-50%) scale(1.12); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: translateY(-50%) scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.voice-input-container.textarea-container > .voice-mic-btn.recording {
  animation: pulseVoiceTextarea 1.2s infinite;
}
@keyframes pulseVoiceTextarea {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ফ্লোটিং ভয়েস স্ট্যাটাস ব্যাজ */
.voice-status-badge {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 99999;
  border: 1.5px solid #ef4444;
  animation: fadeInVoiceBadge 0.3s ease;
}
@keyframes fadeInVoiceBadge {
  from { opacity: 0; transform: translate(-50%, 15px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.voice-pulse-dot {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulseDot 1s infinite;
}
@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

[data-theme="dark"] .voice-mic-btn {
  background: #1e293b;
  border-color: #475569;
  color: #f8fafc;
}
[data-theme="dark"] .voice-mic-btn:hover {
  background: #334155;
  border-color: #10b981;
}

/* ডার্ক মোড টগল বাটন */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.theme-toggle-btn:hover {
  border-color: var(--primary);
}


/* ========================================================
   Print Media Rules - Global fallback to guarantee clean documents
   ======================================================== */
@media print {
  #layout-header,
  #layout-sidebar,
  #layout-topbar,
  #layout-footer,
  #layout-modals,
  #trendingNoticeStrip,
  .trending-notice-strip,
  .trending-notice-pill,
  #superAdminNoticeBanner,
  .superadmin-banner,
  .app-sidebar,
  .app-topbar,
  .mobile-app-header,
  .mobile-bottom-nav,
  .tool-form-card,
  .app-footer,
  .no-print {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}


/* ========================================================
   Compact Live Visitor Counter (Google-Style Realtime BD)
   ======================================================== */
.visitor-compact-strip {
  margin-bottom: 16px;
  background: #ffffff;
  border: 1.5px solid #ef4444; /* Clean crisp red border requested by user */
  border-radius: 10px;
  padding: 8px 16px;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.visitor-compact-strip:hover {
  border-color: #dc2626;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.15);
}

.vcs-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.vcs-pulse-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: vcs-pulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes vcs-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70%  { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.vcs-tag-live {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #dc2626;
  background: #fee2e2;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  line-height: 1.4;
  flex-shrink: 0;
}

.vcs-flag {
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.vcs-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.vcs-count {
  font-size: 17px;
  font-weight: 800;
  color: #dc2626;
  font-family: 'Hind Siliguri', var(--font-bangla, sans-serif);
  letter-spacing: 0.5px;
  line-height: 1;
  display: inline-block;
  min-width: 14px;
}

.vcs-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vcs-divider {
  color: #cbd5e1;
  font-weight: 300;
  font-size: 14px;
  margin: 0 4px;
  user-select: none;
}

.vcs-pulse-dot.live-green {
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: vcs-pulse-green 1.8s infinite;
}

@keyframes vcs-pulse-green {
  0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70%  { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.vcs-count.live-num {
  color: #16a34a;
}

.vcs-unit {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.vcs-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
}

.vcs-meta-tag {
  background: #fef2f2;
  color: #b91c1c;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #fecaca;
}

.vcs-sub {
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 640px) {
  .visitor-compact-strip {
    padding: 7px 12px;
    gap: 8px;
  }
  .vcs-right {
    display: none;
  }
  .vcs-label {
    font-size: 12px;
  }
  .vcs-count {
    font-size: 15px;
  }
  .vcs-unit {
    font-size: 12px;
  }
}

/* ========================================================
   Account & Profile Full Page Dashboard
   ======================================================== */
.account-hero-card {
  background: linear-gradient(135deg, #006a4e 0%, #004d38 100%);
  border-radius: 12px;
  padding: 22px 24px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(0, 106, 78, 0.2);
  flex-wrap: wrap;
}

.account-hero-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 280px;
}

.account-avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 2.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #ffffff;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.account-hero-info h2 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.account-hero-contacts {
  font-size: 13.5px;
  color: #bbf7d0;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.account-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-pill-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.account-hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Quick Metrics Strip */
.account-metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.account-metric-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.account-metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.account-metric-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-metric-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: #dcfce7;
  color: #166534;
}

/* 2-Column Dashboard Layout */
.account-content-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .account-content-grid {
    grid-template-columns: 1fr;
  }
}

.account-card-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
}

.account-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.account-card-header h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: #006a4e;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-info-callout {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #166534;
  line-height: 1.5;
  margin-bottom: 16px;
}

.account-field-divider {
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  border-top: 1px dashed #cbd5e1;
  padding-top: 14px;
  margin: 16px 0 12px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

