/* ==========================================================================
   THEME.CSS
   ডার্ক + ব্লু + গ্লো থিম - মেইন স্টাইলশিট
   এই ফাইলটি সব পেইজে কমন। এখানে কালার ভ্যারিয়েবল, সাইডবার, নেভবার,
   কার্ড, বাটন, ফর্ম, টেবিল ইত্যাদির সাধারণ স্টাইল রাখা হয়েছে।
   এই ফাইলটি কোনো পরিবর্তন না করলেও PHP ইন্টিগ্রেশনে কোনো সমস্যা হবে না,
   কারণ এটি শুধুমাত্র ভিজুয়াল স্টাইলিং এর জন্য, কোনো ডাটা লজিক নেই।
   ========================================================================== */

/* --------------------------------------------------------------------------
   ১. রুট কালার ভ্যারিয়েবল (CSS Custom Properties)
   --------------------------------------------------------------------------
   পুরো থিমের সব কালার এখানে ডিফাইন করা। কালার পরিবর্তন করতে চাইলে
   শুধু এই সেকশনে পরিবর্তন করলেই পুরো প্যানেলের কালার বদলে যাবে।
-------------------------------------------------------------------------- */
:root {
  /* --------------------------------------------------------------------
     "OCEAN MIDNIGHT + SLATE NAVY" — Madrasa ERP ডিজাইন সিস্টেম
     --------------------------------------------------------------------
     পূর্বের নিউট্রাল চারকোল/সাইবার-ব্লু থিম থেকে বদলে একটি calmer,
     এন্টারপ্রাইজ-গ্রেড নেভি/স্লেট প্যালেটে নেওয়া হলো। প্রতিটি ব্যাকগ্রাউন্ড
     লেয়ার এখন সামান্য নীলাভ স্লেট টোন বহন করে (pure grey/black নয়),
     যা দীর্ঘ সময় স্ক্রিনে কাজ করার জন্য আরামদায়ক এবং পেশাদার/একাডেমিক
     পরিবেশের সাথে সামঞ্জস্যপূর্ণ। গ্লো-ভিত্তিক সাইবার-লুক সরিয়ে সলিড
     সারফেস + সফট শ্যাডো-ভিত্তিক "elevation" সিস্টেমে আনা হয়েছে। */
  --bg-deepest: #0F172A;
  --bg-base: #111827;
  --bg-surface: #1E293B;
  --bg-elevated: #334155;
  --bg-elevated-2: #475569;

  /* বর্ডার এবং ডিভাইডার - Slate Navy স্কেলের সাথে সামঞ্জস্যপূর্ণ, যথেষ্ট
     স্পষ্ট কন্ট্রাস্ট রেখে কার্ড/ইনপুট/টেবিলের সীমারেখা আলাদা করে */
  --border-subtle: #334155;
  --border-default: #475569;
  --border-strong: #64748B;

  /* টপবার/হেডারের আধা-স্বচ্ছ ব্যাকগ্রাউন্ড - খুবই হালকা ব্লার, "glassmorphism"
     এর বদলে প্রায় সলিড সারফেসের কাছাকাছি (আগের ভার্শনের চেয়ে কম স্বচ্ছ),
     যাতে রিডেবিলিটি কমে না এবং এন্টারপ্রাইজ-গ্রেড পরিষ্কার অনুভূতি থাকে */
  --topbar-bg: rgba(17, 24, 39, 0.94);
  --overlay-bg: rgba(2, 6, 16, 0.65);

  /* --------------------------------------------------------------------
     প্রাইমারি ইসলামিক অ্যাক্সেন্ট — গ্রিন। আগের সাইবার-ব্লু সরিয়ে এখন
     একাডেমিক/ইসলামিক প্রফেশনালিজমের প্রতীক গ্রিনকে মূল অ্যাক্সেন্ট করা
     হয়েছে। ব্যবহার ইচ্ছাকৃতভাবে সীমিত: active sidebar item, primary
     বাটন, প্রধান success/অগ্রগতি ইন্ডিকেটর — যেখানেই গ্রিন দেখা যাবে,
     তার অর্থ "এটি গুরুত্বপূর্ণ বা সক্রিয়"। */
  --accent-primary: #16A34A;
  --accent-primary-hover: #15803D;
  --accent-primary-soft: rgba(22, 163, 74, 0.15);

  /* সেকেন্ডারি অ্যাক্সেন্ট — গোল্ড। বিরল ও অর্থপূর্ণ ব্যবহারের জন্য:
     প্রিমিয়াম ব্যাজ, Hifz/Quran Competition অর্জন, awards, VIP/বিশেষ
     স্ট্যাটাস হাইলাইট। সাধারণ UI hover/focus এ ব্যবহার করা হবে না। */
  --accent-gold: #D4AF37;
  --accent-gold-soft: rgba(212, 175, 55, 0.14);

  /* তথ্যভিত্তিক অ্যাক্সেন্ট (info ব্যাজ, লিংক হাইলাইট ইত্যাদির জন্য) */
  --accent-info: #0EA5E9;
  --accent-info-soft: rgba(14, 165, 233, 0.13);

  /* ব্যাকওয়ার্ড-কম্প্যাটিবিলিটি এলিয়াস — পুরনো সিলেক্টরে accent-blue-*
     রেফারেন্স থাকা সত্ত্বেও যেন পুরো ফাইল না বদলে নতুন প্যালেটে চলে যায়,
     তার জন্য এই ভ্যারিয়েবলগুলো নতুন গ্রিন/ইনফো সিস্টেমের দিকে পয়েন্ট
     করে রাখা হলো (legacy bridge, নতুন কোডে সরাসরি --accent-primary ব্যবহার করুন) */
  --accent-blue: var(--accent-primary);
  --accent-blue-bright: #22C55E;
  --accent-blue-dim: var(--accent-primary-hover);
  --accent-cyan: var(--accent-info);
  --accent-glow: var(--accent-primary-soft);
  --accent-glow-soft: rgba(22, 163, 74, 0.10);

  /* নিউট্রাল হোভার/ফোকাস কালার - hover এ এখনো নিউট্রাল হোয়াইট/গ্রে,
     যাতে অতিরিক্ত জায়গায় অ্যাক্সেন্ট কালার ছড়িয়ে না পড়ে */
  --neutral-hover: #F1F5F9;

  /* স্ট্যাটাস কালার - মিউটেড কিন্তু স্পষ্ট, ডাটা-নির্দেশক ব্যাজের জন্য */
  --color-success: #22C55E;
  --color-success-bg: rgba(34, 197, 94, 0.13);
  --color-warning: #F59E0B;
  --color-warning-bg: rgba(245, 158, 11, 0.13);
  --color-danger: #EF4444;
  --color-danger-bg: rgba(239, 68, 68, 0.13);
  --color-info: #0EA5E9;
  --color-info-bg: rgba(14, 165, 233, 0.13);

  /* টেক্সট কালার - উন্নত কন্ট্রাস্ট, WCAG AA পাস করে
     (প্রাইমারি 14:1+, সেকেন্ডারি 7:1+, মিউটেড 4.5:1+ bg-base এর সাথে) */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-disabled: #64748B;

  /* টাইপোগ্রাফি */
  --font-display: "Sora", "Inter", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  /* --------------------------------------------------------------------
     শ্যাডো / এলিভেশন — গ্লো ইফেক্ট বাদ দিয়ে ক্লিন, প্রফেশনাল এলিভেশন
     শ্যাডো ব্যবহার করা হলো (soft, neutral dark shadow, কোনো রঙিন
     গ্লো/নিয়ন নেই)। ভ্যারিয়েবলের নাম legacy compatibility এর জন্য
     "shadow-glow-*" রাখা হলো, কিন্তু মান এখন রঙহীন/সাবটল এলিভেশন শ্যাডো। */
  --shadow-glow-sm: 0 1px 3px rgba(2, 6, 16, 0.45);
  --shadow-glow-md: 0 4px 10px rgba(2, 6, 16, 0.35), 0 1px 3px rgba(2, 6, 16, 0.3);
  --shadow-elevate: 0 12px 28px rgba(2, 6, 16, 0.45), 0 2px 6px rgba(2, 6, 16, 0.3);
  --shadow-card: 0 1px 2px rgba(2, 6, 16, 0.3), 0 1px 0 rgba(255,255,255,0.02) inset;
  --shadow-card-hover: 0 6px 16px rgba(2, 6, 16, 0.35);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --sidebar-width: 272px;
  --sidebar-width-collapsed: 80px;
  --topbar-height: 68px;
}

/* --------------------------------------------------------------------------
   ১.১ লাইট থিম ওভাররাইড
   --------------------------------------------------------------------------
   <html> ট্যাগে data-theme="light" অ্যাট্রিবিউট থাকলে এই ব্লকের ভ্যারিয়েবল
   মান উপরের ডার্ক ডিফল্ট মানগুলোকে override করে। থিম টগল বাটন (theme-
   toggle.js) শুধু এই একটি অ্যাট্রিবিউট পরিবর্তন করে, এবং পুরো UI এর সব
   কালার (সাইডবার, কার্ড, টেবিল, বাটন, ফর্ম ইত্যাদি) automatically বদলে
   যায় - কারণ পুরো থিমটাই CSS variable এর উপর ভিত্তি করে বানানো।
   কোনো জায়গায় hardcoded hex color ব্যবহার করা হয়নি (যেখানে ব্যবহার
   হয়েছে, যেমন badge border rgba(), সেগুলো ইচ্ছাকৃতভাবে status color এর
   ভ্যারিয়েন্ট, থিমের সাথে সরাসরি জড়িত নয়)।
-------------------------------------------------------------------------- */
html[data-theme="light"] {
  /* ব্যাকগ্রাউন্ড লেয়ার - সাদা/অফ-হোয়াইট, একদম pure white না করে
     হালকা গ্রে টিন্ট রাখা হলো যাতে কার্ড/সারফেস আলাদা বোঝা যায় */
  --bg-deepest: #c8d2e0;
  --bg-base: #d6dde8;
  --bg-surface: #eef1f6;
  --bg-elevated: #e2e8f0;
  --bg-elevated-2: #cdd5e0;

  /* বর্ডার - লাইট থিমে shadow দিয়ে কার্ড আলাদা করা হয়, বর্ডার গৌণ */
  --border-subtle: #d0d7e3;
  --border-default: #bec7d6;
  --border-strong: #a5b0c2;
  --card-shadow: 0 2px 8px rgba(15, 23, 42, 0.10), 0 1px 2px rgba(15, 23, 42, 0.06);
  --card-shadow-hover: 0 6px 20px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.08);

  --topbar-bg: rgba(220, 228, 238, 0.96);
  --overlay-bg: rgba(15, 23, 42, 0.45);

  /* প্রাইমারি/সেকেন্ডারি অ্যাক্সেন্ট - লাইট ব্যাকগ্রাউন্ডে স্পষ্ট দেখানোর
     জন্য সামান্য গাঢ় শেড, কারণ হালকা গ্রিন সাদা ব্যাকগ্রাউন্ডে দুর্বল দেখায় */
  --accent-primary: #15803D;
  --accent-primary-hover: #166534;
  --accent-primary-soft: rgba(21, 128, 61, 0.12);
  --accent-gold: #A8791F;
  --accent-gold-soft: rgba(168, 121, 31, 0.12);
  --accent-info: #0284C7;
  --accent-info-soft: rgba(2, 132, 199, 0.10);

  --accent-blue: var(--accent-primary);
  --accent-blue-bright: var(--accent-primary);
  --accent-blue-dim: var(--accent-primary-hover);
  --accent-cyan: var(--accent-info);
  --accent-glow: rgba(21, 128, 61, 0.16);
  --accent-glow-soft: rgba(21, 128, 61, 0.08);

  --neutral-hover: #0F172A;

  /* স্ট্যাটাস কালার - লাইট ব্যাকগ্রাউন্ডে স্পষ্ট দেখানোর জন্য সামান্য
     গাঢ় শেড ব্যবহার করা হলো (হালকা পেস্টেল সাদার উপর দুর্বল দেখাত) */
  --color-success: #15803D;
  --color-success-bg: rgba(21, 128, 61, 0.10);
  --color-warning: #B45309;
  --color-warning-bg: rgba(180, 83, 9, 0.10);
  --color-danger: #DC2626;
  --color-danger-bg: rgba(220, 38, 38, 0.10);
  --color-info: #0284C7;
  --color-info-bg: rgba(2, 132, 199, 0.10);

  /* টেক্সট কালার - গাঢ় স্লেট নেভি থেকে গ্রে, pure black না (pure black
     সাদার উপর অতিরিক্ত হার্ড কন্ট্রাস্ট তৈরি করে, চোখে চাপ দেয়) */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-disabled: #94A3B8;

  /* ক্লিন এলিভেশন শ্যাডো - লাইট মোডেও কোনো রঙিন গ্লো নেই, শুধু সফট
     নিউট্রাল শ্যাডো দিয়ে depth বোঝানো হয় */
  --shadow-glow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-glow-md: 0 4px 10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-elevate: 0 12px 28px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-card-hover: 0 6px 16px rgba(15, 23, 42, 0.10);
}

/* লাইট থিমে সাইডবারের গ্রেডিয়েন্ট এবং কিছু hardcoded ডার্ক-নির্দিষ্ট
   রঙ আলাদাভাবে override করা প্রয়োজন, কারণ এগুলো linear-gradient এর
   ভিতরে সরাসরি bg-deepest/bg-surface ভ্যারিয়েবল ব্যবহার করলেও দিক
   (direction) এবং আনুপাতিক কন্ট্রাস্ট আলাদা লাগবে লাইট মোডে। */
html[data-theme="light"] .app-sidebar {
  background: linear-gradient(180deg, #f8fafc 0%, #e8edf5 100%);
  border-right: 1px solid var(--border-default);
  box-shadow: 2px 0 12px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .sidebar-section-label {
  color: #8898aa;
  border-bottom-color: var(--border-subtle);
}
html[data-theme="light"] .sidebar-nav .nav-link {
  color: #4a5568;
}
html[data-theme="light"] .sidebar-nav .nav-link i.nav-icon {
  color: #718096;
}
html[data-theme="light"] .sidebar-nav .nav-link:hover {
  background: rgba(21, 128, 61, 0.08);
  color: #1a202c;
}
html[data-theme="light"] .sidebar-nav .nav-link:hover i.nav-icon {
  color: var(--accent-primary);
}
html[data-theme="light"] .sidebar-nav .nav-link.active {
  background: rgba(21, 128, 61, 0.10);
  color: #166534;
}
html[data-theme="light"] .sidebar-submenu {
  border-left-color: #cbd5e0;
}
html[data-theme="light"] .sidebar-submenu .nav-link {
  color: #718096;
}
html[data-theme="light"] .sidebar-footer {
  color: #a0aec0;
  border-top-color: var(--border-subtle);
}
html[data-theme="light"] .sidebar-overlay { background: var(--overlay-bg); }
html[data-theme="light"] .btn-close { filter: none; }
html[data-theme="light"] .icon-btn .ping-dot { border-color: var(--bg-base); }

/* লাইট থিমে বর্ডারের বদলে shadow দিয়ে কার্ড আলাদা করা হয় */
html[data-theme="light"] .card,
html[data-theme="light"] .dash-card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .glow-card,
html[data-theme="light"] .section-card,
html[data-theme="light"] .sidebar-card,
html[data-theme="light"] .group-card,
html[data-theme="light"] .form-section-card,
html[data-theme="light"] .showcase-card {
  border-color: transparent;
  box-shadow: var(--card-shadow);
}
html[data-theme="light"] .card:hover,
html[data-theme="light"] .dash-card:hover,
html[data-theme="light"] .stat-card:hover,
html[data-theme="light"] .glow-card:hover,
html[data-theme="light"] .section-card:hover,
html[data-theme="light"] .sidebar-card:hover,
html[data-theme="light"] .group-card:hover,
html[data-theme="light"] .form-section-card:hover,
html[data-theme="light"] .showcase-card:hover {
  box-shadow: var(--card-shadow-hover);
  transition: box-shadow 0.2s ease;
}

/* --------------------------------------------------------------------------
   ২. বেসিক রিসেট ও বডি স্টাইল
-------------------------------------------------------------------------- */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }

html, body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  /* আগে 14.5px ছিল (ব্রাউজার ডিফল্ট 16px এর চেয়ে কম), যার ফলে পুরো সাইটের
     সব rem-ভিত্তিক টেক্সট প্রায় ৯% ছোট দেখাচ্ছিল - এটা দীর্ঘসময় ডেটা টেবিল
     পড়ার ক্ষেত্রে চোখে চাপ ফেলত। 16px হলো ব্রাউজারের স্ট্যান্ডার্ড বেস,
     readability-র জন্য এটাই সবচেয়ে নিরাপদ মান। */
  font-size: 16px;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

body {
  /* Ocean Midnight থিমে কোনো রঙিন গ্লো গ্রেডিয়েন্ট ব্যাকগ্রাউন্ডে রাখা হয়নি -
     ব্যাকগ্রাউন্ড সম্পূর্ণ flat/matte slate-navy, যা দীর্ঘ সময় ডাটা-হেভি
     স্ক্রিন দেখার জন্য আরামদায়ক এবং পেশাদার/একাডেমিক অনুভূতি বজায় রাখে। */
  background-color: var(--bg-base);
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { color: var(--accent-blue-bright); text-decoration: none; }
a:hover { color: var(--neutral-hover); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ফোকাস রিং - এক্সেসিবিলিটি জন্য সব ইন্টারেক্টিভ এলিমেন্টে দৃশ্যমান ফোকাস */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, .form-check-input:focus-visible {
  outline: 2px solid var(--accent-blue-bright);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   ৩. লেআউট স্ট্রাকচার - সাইডবার + টপবার + মেইন কনটেন্ট
-------------------------------------------------------------------------- */
.app-wrapper { display: flex; min-height: 100vh; }

/* ---- সাইডবার ---- */
.app-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-deepest) 100%);
  border-right: 1px solid var(--border-subtle);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: width 0.25s ease, transform 0.25s ease;
}

.app-sidebar.collapsed { width: var(--sidebar-width-collapsed); }

.sidebar-brand {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-brand .brand-mark {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-hover) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow-sm);
  flex-shrink: 0;
}
.sidebar-brand .brand-mark i { color: #F0FDF4; font-size: 1rem; }
.sidebar-brand .brand-mark img { border-radius: 4px; }

.sidebar-brand .brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  line-height: 1.2;
}
.sidebar-brand .brand-sub {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  display: block;
}

.app-sidebar.collapsed .brand-text,
.app-sidebar.collapsed .sidebar-section-label,
.app-sidebar.collapsed .nav-link-text,
.app-sidebar.collapsed .nav-chevron,
.app-sidebar.collapsed .nav-badge { display: none !important; }

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.75rem 1.5rem;
}

.sidebar-section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-disabled);
  font-weight: 700;
  margin: 1.25rem 0.5rem 0.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}
.sidebar-section-label:first-child { margin-top: 0.25rem; }

.sidebar-nav { list-style: none; padding: 0; margin: 0 0 0.25rem; }

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  min-height: 42px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
  position: relative;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

.sidebar-nav .nav-link i.nav-icon {
  width: 18px;
  text-align: center;
  font-size: 0.98rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.sidebar-nav .nav-link:hover {
  background: color-mix(in srgb, var(--accent-primary) 7%, var(--bg-elevated));
  color: var(--text-primary);
  border-left-color: color-mix(in srgb, var(--accent-primary) 40%, transparent);
}
.sidebar-nav .nav-link:hover i.nav-icon { color: var(--accent-primary); }

.sidebar-nav .nav-link.active {
  background: var(--accent-primary-soft);
  color: var(--text-primary);
  border-left-color: var(--accent-primary);
  font-weight: 600;
}
.sidebar-nav .nav-link.active i.nav-icon { color: var(--accent-primary); }

.nav-chevron {
  margin-left: auto;
  font-size: 0.68rem;
  transition: transform 0.2s ease;
  color: var(--text-disabled);
  flex-shrink: 0;
}
.nav-link[aria-expanded="true"] .nav-chevron { transform: rotate(90deg); color: var(--accent-primary); }

.nav-badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-primary-soft);
  color: var(--accent-blue-bright);
  border: 1px solid color-mix(in srgb, var(--accent-primary) 35%, transparent);
}

/* সাবমেনু */
.sidebar-submenu {
  list-style: none;
  padding: 0.1rem 0 0.25rem 0;
  margin: 0 0 0.1rem 0;
  border-left: 2px solid var(--border-subtle);
  margin-left: 1.55rem;
}
.sidebar-submenu .nav-link {
  padding: 0.45rem 0.75rem 0.45rem 1rem;
  font-size: 0.835rem;
  font-weight: 400;
  min-height: 36px;
  border-left: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  margin-bottom: 0.05rem;
}
.sidebar-submenu .nav-link:hover {
  background: color-mix(in srgb, var(--accent-primary) 7%, var(--bg-elevated));
  color: var(--text-primary);
  border-left: none;
}
.sidebar-submenu .nav-link.active {
  background: var(--accent-primary-soft);
  color: var(--accent-primary);
  font-weight: 600;
  border-left: none;
}

.sidebar-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  color: var(--text-disabled);
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---- মেইন কনটেন্ট এরিয়া ---- */
.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left 0.25s ease;
}
.app-main.sidebar-collapsed { margin-left: var(--sidebar-width-collapsed); }

/* ---- টপবার ---- */
.app-topbar {
  height: var(--topbar-height);
  background: var(--topbar-bg);
  /* "soft background blur (very minimal)" — আগের 10px থেকে কমিয়ে 6px
     করা হলো এবং ব্যাকগ্রাউন্ড অপাসিটি বাড়ানো হলো (topbar-bg ভ্যারিয়েবলে),
     যাতে গ্লাসমরফিজমের বদলে প্রায়-সলিড, ক্লিন এন্টারপ্রাইজ টপবার লাগে। */
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.4rem;
  position: sticky;
  top: 0;
  z-index: 1030;
  gap: 1rem;
}

.topbar-toggle {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  /* 38px থেকে 44px করা হলো - Apple/Material এর ন্যূনতম টাচ-টার্গেট স্ট্যান্ডার্ড */
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.topbar-toggle:hover { color: var(--text-primary); border-color: var(--border-strong); background: var(--bg-elevated-2); }

/* সাইডবার টগল ও সার্চের মধ্যে একটি সাবটল ভার্টিকাল ডিভাইডার যোগ করা হলো,
   যাতে টপবারের বাম অংশে স্পষ্ট গ্রুপিং বোঝা যায় (clean enterprise look) */
.app-topbar .d-flex.align-items-center.gap-2 {
  position: relative;
  padding-left: 0;
}

.topbar-search {
  position: relative;
  max-width: 360px;
  width: 100%;
}
.topbar-search input {
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.9rem 0.5rem 2.3rem;
  font-size: 0.85rem;
  width: 100%;
}
.topbar-search input::placeholder { color: var(--text-disabled); }
.topbar-search input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-soft);
  outline: none;
  background: var(--bg-elevated);
}
.topbar-search i {
  position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
  color: var(--text-disabled); font-size: 0.85rem;
}

.topbar-actions { display: flex; align-items: center; gap: 0.6rem; }

.icon-btn {
  /* 38px থেকে 44px করা হলো - টাচ-টার্গেট স্ট্যান্ডার্ড মেনে */
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: all 0.15s ease;
}
.icon-btn:hover { color: var(--text-primary); border-color: var(--border-strong); }
.icon-btn .ping-dot {
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px;
  background: var(--color-danger);
  border-radius: 50%;
  border: 2px solid var(--bg-base);
}

/* ইউজার প্রোফাইল ড্রপডাউন বাটন */
.user-chip {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 0.8rem 0.4rem 0.32rem;
  /* পুরো চিপটার ক্লিকযোগ্য height কমপক্ষে 44px রাখার জন্য */
  min-height: 44px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  transition: all 0.15s ease;
}
.user-chip:hover { border-color: var(--border-strong); }
.user-chip img, .user-chip .avatar-fallback {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-strong);
}
.user-chip .avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: #061018; font-weight: 700; font-size: 0.8rem;
}
.user-chip .user-meta { text-align: left; line-height: 1.15; }
.user-chip .user-meta .uname { font-size: 0.82rem; font-weight: 600; display:block; }
.user-chip .user-meta .urole { font-size: 0.76rem; color: var(--text-muted); display:block; }

/* ড্রপডাউন/ড্রপআপ মেনু কমন স্টাইল */
.dropdown-menu {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevate), 0 0 0 1px color-mix(in srgb, var(--accent-blue) 6%, transparent);
  padding: 0.45rem;
  min-width: 220px;
}
.dropdown-menu .dropdown-item {
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
  display: flex; align-items: center; gap: 0.6rem;
  transition: all 0.12s ease;
}
.dropdown-menu .dropdown-item i { width: 16px; color: var(--text-muted); }
.dropdown-menu .dropdown-item:hover, .dropdown-menu .dropdown-item:focus {
  background: var(--accent-glow-soft);
  color: var(--text-primary);
}
.dropdown-menu .dropdown-item:hover i { color: var(--text-primary); }
.dropdown-menu .dropdown-item.text-danger:hover { background: var(--color-danger-bg); color: var(--color-danger) !important; }
.dropdown-menu .dropdown-item.text-danger:hover i { color: var(--color-danger); }
.dropdown-divider { border-color: var(--border-subtle); margin: 0.4rem 0; }
.dropdown-header { color: var(--text-disabled); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.4rem 0.7rem; }

/* মোবাইল ওভারলে (সাইডবার ওপেন থাকলে) */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: var(--overlay-bg);
  z-index: 1035;
}
.sidebar-overlay.show { display: block; }

/* ---- পেইজ কনটেন্ট কন্টেইনার ---- */
/* Outer wrapper — সব পেইজে consistent padding */
.page-content { padding: 1.5rem; flex: 1; }

/* container-fluid যেসব পেইজে আছে সেখানে page-content padding-এর সাথে double না হয় */
.page-content .container-fluid {
  padding-left:  0 !important;
  padding-right: 0 !important;
  padding-top:   0 !important;
  padding-bottom: 0 !important;
}
/* কার্ড গ্যাপ — g-4 (1.5rem) → 1.25rem */
.page-content .g-4 { --bs-gutter-x: 1.25rem; --bs-gutter-y: 1.25rem; }
/* section margin — mb-4 (1.5rem) → 1.25rem */
.page-content .mb-4 { margin-bottom: 1.25rem !important; }
.page-content .mb-3 { margin-bottom: 1rem !important; }

.page-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 0.8rem;
  margin-bottom: 1.4rem;
}
.page-header h1 { font-size: 1.4rem; margin: 0; }
.breadcrumb-trail {
  font-size: 0.78rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 0.4rem; margin-top: 0.25rem;
}
.breadcrumb-trail i { font-size: 0.6rem; }
.breadcrumb-trail .current { color: var(--accent-blue-bright); }

/* --------------------------------------------------------------------------
   ৪. কার্ড
-------------------------------------------------------------------------- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
}
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
  font-weight: 600;
}
.card-body { padding: 1.25rem; }

.glow-card { border-color: var(--border-default); }
.glow-card:hover { border-color: var(--border-strong); transition: border-color 0.2s ease; }

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute; top: -40%; right: -20%;
  width: 140px; height: 140px;
  background: radial-gradient(circle, var(--accent-glow-soft), transparent 70%);
}
.stat-card .stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}
.stat-card .stat-value { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; }
.stat-card .stat-label { color: var(--text-muted); font-size: 0.78rem; }
.stat-card .stat-trend { font-size: 0.8rem; font-weight: 600; }

/* --------------------------------------------------------------------------
   ৫. বাটন
-------------------------------------------------------------------------- */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.86rem;
  /* সব বাটনের (Print/CSV/Export/Clear Filters সহ) ন্যূনতম height 44px করা
     হলো, যাতে .btn-sm ব্যবহার করলেও টাচ-টার্গেট ছোট না পড়ে */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dim) 100%);
  border: none;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent-blue) 30%, transparent);
}
.btn-primary:hover { box-shadow: 0 0 12px var(--accent-glow); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-outline-light {
  border-color: var(--border-strong);
  color: var(--text-secondary);
}
.btn-outline-light:hover { background: var(--bg-elevated); border-color: var(--border-strong); color: var(--text-primary); }

.btn-glow { box-shadow: var(--shadow-glow-sm); }

.btn-icon-sq {
  /* 34px থেকে 44px - এটাই সবচেয়ে ব্যবহৃত row-action বাটন, তাই touch-target
     এর জন্য সবচেয়ে গুরুত্বপূর্ণ ফিক্স */
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
}

/* --------------------------------------------------------------------------
   ৬. ফর্ম এলিমেন্ট
-------------------------------------------------------------------------- */
.form-control, .form-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  /* গ্লোবাল সার্চ, তারিখ ইনপুট, রো-পার-পেজ সিলেক্ট - সবগুলোর height
     কমপক্ষে 44px রাখা হলো */
  min-height: 44px;
  padding: 0.5rem 0.85rem;
}
.form-control::placeholder { color: var(--text-disabled); }
.form-control:disabled, .form-control[readonly], .form-select:disabled {
  background: var(--bg-surface);
  color: var(--text-secondary);
  opacity: 1;
}

/* নাম্বার ইনপুটের নেটিভ আপ/ডাউন স্পিনার ব্রাউজারের নিজস্ব রঙে আঁকা হয় - dark theme এর সাথে মানায় না
   এবং CSS দিয়ে রঙ বদলানো যায় না, তাই সম্পূর্ণ লুকিয়ে ফেলা হলো (overlap সমস্যাও এতে দূর হয়) */
input[type="number"].form-control { -moz-appearance: textfield; }
input[type="number"].form-control::-webkit-outer-spin-button,
input[type="number"].form-control::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.form-control:focus, .form-select:focus {
  background: var(--bg-elevated-2);
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-glow-soft);
  color: var(--text-primary);
}
.form-select {
  /* Bootstrap ৫ ডিফল্টভাবে --bs-form-select-bg-img ভ্যারিয়েবল দিয়ে এরো
     আইকন বসায়। আগে সরাসরি background-image override করায় Bootstrap এর
     নিজস্ব ভ্যারিয়েবলও background শর্টহ্যান্ডে যুক্ত হয়ে একাধিক এরো
     (৩টা) দেখাচ্ছিল। তাই এখন Bootstrap এর ভ্যারিয়েবলকেই নতুন SVG দিয়ে
     override করা হলো, যা একমাত্র সঠিক সমাধান এবং future-proof। */
  --bs-form-select-bg-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238fa0bd'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-image: var(--bs-form-select-bg-img);
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px 14px;
}
.form-label { color: var(--text-secondary); font-size: 0.82rem; font-weight: 500; margin-bottom: 0.4rem; }
.form-text { color: var(--text-muted); font-size: 0.8rem; }

/* চেকবক্স/রেডিও/সুইচ - এই পেজে এখনো ব্যবহার নেই, কিন্তু থিম শেয়ার্ড হওয়ায়
   ভবিষ্যতে অন্য পেজে যোগ করলে যেন ডিফল্ট Bootstrap সাইজ (~14px) এর বদলে
   একটু বড় ও টাচ-ফ্রেন্ডলি হয় */
.form-check { display: flex; align-items: center; min-height: 1.6em; padding-left: 1.9em; }
.form-check-input {
  width: 1.15em; height: 1.15em; margin-top: 0; flex-shrink: 0;
  background-color: var(--bg-elevated); border-color: var(--border-strong);
}
.form-check-input:checked { background-color: var(--accent-blue); border-color: var(--accent-blue); }
.form-check-input:focus { box-shadow: 0 0 0 3px var(--accent-glow-soft); }
.form-check-label { color: var(--text-secondary); font-size: 0.86rem; }

.form-switch .form-check-input { width: 2.8em; height: 1.4em; }

.input-group-text { background: var(--bg-elevated-2); border-color: var(--border-default); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   ৭. টেবিল
-------------------------------------------------------------------------- */
.table {
  color: var(--text-secondary);
  margin-bottom: 0;
  /* Bootstrap ৫ টেবিলের কালার ভ্যারিয়েবলগুলো এখানে override করা হলো,
     কারণ Bootstrap ডিফল্টভাবে --bs-table-color কে কালো/ডার্ক ধরে রাখে,
     ফলে td এর ভিতরের টেক্সট (span, div ইত্যাদি) inherit করার সময়
     কালো রঙ পেয়ে যায় এবং ডার্ক ব্যাকগ্রাউন্ডে লেখা দেখা যায় না। */
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-secondary);
  --bs-table-striped-color: var(--text-secondary);
  --bs-table-hover-color: var(--text-primary);
  --bs-table-active-color: var(--text-primary);
}
.table > :not(caption) > * > * { background: transparent; border-bottom-color: var(--border-subtle); color: inherit; }

/* td এর ভিতরের সব চাইল্ড এলিমেন্ট (span, div, a, small ইত্যাদি) যাতে
   কালো রঙ না পেয়ে টেবিলের টেক্সট কালার ইনহেরিট করে - এটি গুরুত্বপূর্ণ
   কারণ ভবিষ্যতে PHP দিয়ে নতুন td/span বসালেও কালার সমস্যা হবে না */
.table td, .table th { color: inherit; }
.table td *:not(.badge):not(.btn):not(i):not(input):not(select):not(textarea) { color: inherit; }
.table thead th {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
  vertical-align: top;
  background: var(--bg-surface);
}
.table tbody tr { transition: background 0.12s ease; }
.table-hover tbody tr:hover { background: color-mix(in srgb, var(--accent-blue) 6%, transparent) !important; }
.table td { vertical-align: middle; font-size: 0.89rem; }

.badge { font-weight: 600; font-size: 0.78rem; padding: 0.35em 0.65em; border-radius: 999px; }
/* badge এর বর্ডার কালার color-mix() দিয়ে স্ট্যাটাস ভ্যারিয়েবল থেকে ডায়নামিকভাবে
   তৈরি করা হলো (২২% কালার + ৭৮% transparent), যাতে থিম টগল করলে (লাইট/ডার্ক)
   বর্ডার কালার ভ্যারিয়েবলের সাথে সবসময় ম্যাচ করে - আগে rgba() hardcode করা
   থাকলে ডার্ক থিমের রঙ লাইট থিমেও থেকে যেত, যা ছিল অসামঞ্জস্যপূর্ণ। */
.badge.bg-success-soft { background: var(--color-success-bg); color: var(--color-success); border: 1px solid color-mix(in srgb, var(--color-success) 35%, transparent); }
.badge.bg-warning-soft { background: var(--color-warning-bg); color: var(--color-warning); border: 1px solid color-mix(in srgb, var(--color-warning) 35%, transparent); }
.badge.bg-danger-soft { background: var(--color-danger-bg); color: var(--color-danger); border: 1px solid color-mix(in srgb, var(--color-danger) 35%, transparent); }
.badge.bg-info-soft { background: var(--color-info-bg); color: var(--color-info); border: 1px solid color-mix(in srgb, var(--color-info) 35%, transparent); }
.badge.bg-muted-soft { background: var(--bg-elevated-2); color: var(--text-muted); border: 1px solid var(--border-default); }

/* Bootstrap এর ডিফল্ট .text-success/.text-info/.text-warning/.text-danger
   ক্লাসগুলো hardcoded hex রঙ ব্যবহার করে, যা আমাদের থিম ভ্যারিয়েবলের
   সাথে সামঞ্জস্যপূর্ণ না এবং লাইট/ডার্ক থিম টগলে বদলাবে না। তাই এখানে
   override করে আমাদের কাস্টম স্ট্যাটাস ভ্যারিয়েবল বসানো হলো - এই ক্লাস
   কোনো badge/icon এ ব্যবহার করলে (যেমন data-table.js এর সামারি কার্ডে)
   তা থিম টগলের সাথে ঠিকভাবে বদলাবে। */
.text-success { color: var(--color-success) !important; }
.text-info { color: var(--color-info) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-danger { color: var(--color-danger) !important; }

/* --------------------------------------------------------------------------
   ৮. পেজিনেশন
-------------------------------------------------------------------------- */
.pagination .page-link {
  background: var(--bg-elevated);
  border-color: var(--border-default);
  color: var(--text-secondary);
  font-size: 0.84rem;
  /* আগে কোনো explicit size ছিল না, Bootstrap এর ডিফল্ট padding দিয়ে height
     ~30px পড়ছিল - এখন 44px টাচ-টার্গেট নিশ্চিত করা হলো */
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pagination .page-link:hover { background: var(--bg-elevated-2); color: var(--text-primary); }
.pagination .page-item.active .page-link {
  background: var(--accent-blue); border-color: var(--accent-blue); color: #fff;
  box-shadow: var(--shadow-glow-sm);
}
.pagination .page-item.disabled .page-link { background: var(--bg-surface); color: var(--text-disabled); }

/* --------------------------------------------------------------------------
   ৯. মোডাল
-------------------------------------------------------------------------- */
.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevate);
}
.modal-header, .modal-footer { border-color: var(--border-subtle); }
.modal-backdrop.show { opacity: 0.7; }
.btn-close { filter: invert(1) grayscale(1) brightness(2); }

/* --------------------------------------------------------------------------
   ১০. টুলটিপ ইউটিলিটি ক্লাস
-------------------------------------------------------------------------- */
.text-muted-soft { color: var(--text-muted) !important; }
.text-muted { color: var(--text-muted) !important; }
.page-heading { color: var(--text-primary); }
.divider-line { border-top: 1px solid var(--border-subtle); }
.section-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }

/* স্ক্রিন-রিডার ওনলি কন্টেন্ট (এক্সেসিবিলিটি) */
.sr-only-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   ১১. রেসপন্সিভ (মোবাইল ব্রেকপয়েন্ট)
-------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); }
  .app-sidebar.mobile-open { transform: translateX(0); box-shadow: 8px 0 30px rgba(0,0,0,0.5); }
  .app-main { margin-left: 0 !important; }
  .topbar-search { display: none; }
}

@media (max-width: 575.98px) {
  .page-content { padding: 0.75rem; }

  /* Calendar — মোবাইল */
  .cal-full th { padding: 5px 1px; font-size: 0.7rem; }
  .cal-full td { height: 52px; padding: 3px 1px 2px; }
  .cal-day-num { width: 24px; height: 24px; font-size: 0.82rem; }
  .cal-dot { width: 5px; height: 5px; }
  .cal-event-dots { gap: 1px; }
  #calEventPanel { padding: 0.6rem 0.75rem; font-size: 0.82rem; }
}

/* মোশন রেস্পেক্ট - এক্সেসিবিলিটি */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================================
   ১২. পেইজ-নির্দিষ্ট স্টাইল — page-4-login.html (লগইন পেইজ)
   ==========================================================================
   এই সেকশনের স্টাইল আগে page-4-login.html এর ভিতরে <style> ট্যাগে ছিল,
   এখন শেয়ারড theme.css এ একত্রিত করা হলো। page-4-login.html থেকে
   <style>...</style> ব্লকটি বাদ দিলেই এই স্টাইল কাজ করবে (যেহেতু পেইজটি
   ইতিমধ্যে assets/css/theme.css লিংক করে রেখেছে)।

   ⚠️ গুরুত্বপূর্ণ: page-4-login.html এর <body> ট্যাগে class="auth-body"
   যোগ করতে হবে, কারণ নিচের বডি-স্টাইলগুলো এখন শুধু "body" এর বদলে
   "body.auth-body" সিলেক্টর ব্যবহার করছে — এটা ইচ্ছাকৃত, যাতে অন্য
   পেইজের <body> (সাইডবার লেআউট সহ) এর সাথে স্টাইল সংঘর্ষ না হয়।
   মানে: <body> → <body class="auth-body">
-------------------------------------------------------------------------- */
html, body { height: 100%; }
body.auth-body {
  min-height: 100vh;
  background: var(--bg-deepest);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow-x: hidden;
}
/* ব্যাকগ্রাউন্ড গ্লো ডেকোরেশন */
body.auth-body::before, body.auth-body::after {
  content: "";
  position: fixed;
  width: 480px; height: 480px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}
body.auth-body::before { background: var(--accent-blue); top: -180px; left: -160px; }
body.auth-body::after { background: var(--accent-cyan); bottom: -200px; right: -160px; opacity: 0.22; }

.auth-theme-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
}

.auth-wrap { position: relative; z-index: 1; width: 100%; max-width: 430px; }

.auth-brand {
  display: flex; align-items: center; justify-content: center;
  gap: 0.65rem; margin-bottom: 1.75rem;
}
.auth-brand .brand-mark {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow-sm);
  flex-shrink: 0;
}
.auth-brand .brand-mark i { color: #061018; font-size: 1.25rem; }
.auth-brand .brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--text-primary); }
.auth-brand .brand-text span { color: var(--accent-blue-bright); }

.auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevate);
  padding: 2rem 1.85rem;
}
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}
.auth-card .auth-subtitle { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.6rem; }

/* পাসওয়ার্ড ইনপুটের ভিতরে শো/হাইড আইকন বাটন */
.password-field { position: relative; }
.password-field .form-control { padding-right: 3rem; }
.password-toggle-btn {
  position: absolute;
  top: 50%; right: 0.4rem;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.password-toggle-btn:hover { color: var(--text-primary); background: var(--bg-elevated-2); }

.auth-divider {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1.4rem 0; color: var(--text-disabled); font-size: 0.78rem;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border-default);
}

.btn-social {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  min-height: 44px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-social:hover { background: var(--bg-elevated-2); border-color: var(--border-strong); color: var(--text-primary); }
.btn-social i { font-size: 1rem; }
.btn-social.google i { color: #e0744f; }
.btn-social.github i { color: var(--text-primary); }

.auth-footer-text { text-align: center; font-size: 0.86rem; color: var(--text-muted); margin-top: 1.5rem; }
.auth-footer-text a { color: var(--accent-blue-bright); font-weight: 600; text-decoration: none; }
.auth-footer-text a:hover { text-decoration: underline; }

.alert-danger-soft {
  background: var(--color-danger-bg);
  border: 1px solid color-mix(in srgb, var(--color-danger) 35%, transparent);
  color: var(--color-danger);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  padding: 0.7rem 0.9rem;
  display: flex; align-items: center; gap: 0.5rem;
}

.auth-page-footer { position: relative; z-index: 1; text-align: center; margin-top: 1.5rem; color: var(--text-disabled); font-size: 0.78rem; }

@media (max-width: 380px) {
  .auth-card { padding: 1.5rem 1.25rem; }
}

/* ==========================================================================
   ১৩. পেইজ-নির্দিষ্ট স্টাইল — page-1-forms.html (ফর্ম এলিমেন্ট পেইজ)
   ==========================================================================
   page-1-forms.html এর ভিতরের <style> ব্লক থেকে একত্রিত করা হলো।
-------------------------------------------------------------------------- */
.form-section-card { margin-bottom: 1.25rem; }
.form-section-card .card-header i { color: var(--accent-blue-bright); }
.form-hint { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.3rem; }

/* রেঞ্জ স্লাইডার - থিম কালার */
.form-range::-webkit-slider-thumb { background: var(--accent-blue); }
.form-range::-moz-range-thumb { background: var(--accent-blue); }
.form-range::-webkit-slider-runnable-track { background: var(--bg-elevated-2); }
.form-range::-moz-range-track { background: var(--bg-elevated-2); }

/* কালার সোয়াচ প্রিভিউ */
.color-swatch-row { display: flex; align-items: center; gap: 0.6rem; }
.color-swatch-preview { width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--border-default); flex-shrink: 0; }

/* ফাইল আপলোড ড্রপজোন */
.file-dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  padding: 1.6rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.file-dropzone:hover, .file-dropzone.dragover { border-color: var(--accent-blue); background: var(--bg-elevated-2); }
.file-dropzone i { font-size: 1.8rem; color: var(--text-muted); margin-bottom: 0.4rem; display: block; }
.file-dropzone .dz-title { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.file-dropzone .dz-sub { color: var(--text-disabled); font-size: 0.78rem; margin-top: 0.2rem; }
.file-dropzone input[type="file"] { display: none; }
.file-preview-list { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.4rem; }
.file-preview-item {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg-elevated); border: 1px solid var(--border-default);
  border-radius: var(--radius-sm); padding: 0.45rem 0.7rem; font-size: 0.82rem;
  color: var(--text-secondary);
}
.file-preview-item i { color: var(--accent-blue-bright); }
.file-preview-item .remove-file { margin-left: auto; color: var(--text-muted); cursor: pointer; }
.file-preview-item .remove-file:hover { color: var(--color-danger); }

/* প্রিভিউ পিল (লাইভ ক্যারেক্টার কাউন্ট, ইত্যাদি) */
.field-counter { font-size: 0.76rem; color: var(--text-disabled); text-align: right; margin-top: 0.25rem; }

/* বাটন শোকেস র‍্যাপ */
.btn-showcase-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* অ্যাঙ্কর জাম্পের সময় স্টিকি টপবারের নিচে হেডিং চাপা পড়া এড়াতে */
.anchor-offset { scroll-margin-top: calc(var(--topbar-height) + 1rem); }

/* ==========================================================================
   ১৪. পেইজ-নির্দিষ্ট স্টাইল — page-9-buttons-icons.html (বাটন ও আইকন পেইজ)
   ==========================================================================
   page-9-buttons-icons.html এর ভিতরের <style> ব্লক থেকে একত্রিত করা হলো।
-------------------------------------------------------------------------- */
.showcase-card { margin-bottom: 1.25rem; }
.showcase-card .card-header i { color: var(--accent-blue-bright); }
.showcase-row { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; }
.showcase-label { color: var(--text-muted); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.6rem; display: block; }

/* সফট/মিউটেড বাটন ভ্যারিয়েন্ট */
.btn-soft-primary {
  background: var(--accent-glow-soft);
  border: 1px solid color-mix(in srgb, var(--accent-blue) 35%, transparent);
  color: var(--accent-blue-bright);
  border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.86rem;
  min-height: 44px;
}
.btn-soft-primary:hover { background: color-mix(in srgb, var(--accent-blue) 18%, transparent); color: var(--accent-blue-bright); }
.btn-soft-success { background: var(--color-success-bg); border: 1px solid color-mix(in srgb, var(--color-success) 35%, transparent); color: var(--color-success); border-radius: var(--radius-sm); font-weight: 500; font-size: 0.86rem; min-height: 44px; }
.btn-soft-success:hover { background: color-mix(in srgb, var(--color-success) 18%, transparent); color: var(--color-success); }
.btn-soft-danger { background: var(--color-danger-bg); border: 1px solid color-mix(in srgb, var(--color-danger) 35%, transparent); color: var(--color-danger); border-radius: var(--radius-sm); font-weight: 500; font-size: 0.86rem; min-height: 44px; }
.btn-soft-danger:hover { background: color-mix(in srgb, var(--color-danger) 18%, transparent); color: var(--color-danger); }
.btn-soft-warning { background: var(--color-warning-bg); border: 1px solid color-mix(in srgb, var(--color-warning) 35%, transparent); color: var(--color-warning); border-radius: var(--radius-sm); font-weight: 500; font-size: 0.86rem; min-height: 44px; }
.btn-soft-warning:hover { background: color-mix(in srgb, var(--color-warning) 18%, transparent); color: var(--color-warning); }

.btn-link-themed { color: var(--accent-blue-bright); font-weight: 500; font-size: 0.86rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.btn-link-themed:hover { text-decoration: underline; }

/* আইকন বাটন - সার্কেল ভ্যারিয়েন্ট */
.btn-icon-circle { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.btn-icon-circle.btn-sm-icon { width: 36px; height: 36px; font-size: 0.85rem; }

/* বাটন উপর কাউন্টার ব্যাজ (নোটিফিকেশন স্টাইল) */
.btn-with-counter { position: relative; }
.btn-with-counter .counter-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--color-danger);
  color: #fff;
  font-size: 0.68rem; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-surface);
}

/* টগল বাটন গ্রুপ (চেকবক্স/রেডিও স্টাইল বাটন) */
.btn-check + .btn-outline-light { transition: all 0.15s ease; }
.btn-check:checked + .btn-outline-light {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* আইকন গ্রিড */
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 0.5rem; }
.icon-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.4rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}
.icon-tile:hover { border-color: var(--accent-blue); background: var(--bg-elevated-2); transform: translateY(-1px); }
.icon-tile:active { transform: translateY(0); }
.icon-tile i { font-size: 1.25rem; color: var(--text-secondary); }
.icon-tile:hover i { color: var(--accent-blue-bright); }
.icon-tile .icon-name { font-size: 0.65rem; color: var(--text-disabled); word-break: break-all; line-height: 1.2; }
.icon-tile.copied { border-color: var(--color-success); background: var(--color-success-bg); }
.icon-tile.copied i { color: var(--color-success); }

.icon-toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated-2); border: 1px solid var(--border-strong);
  color: var(--text-primary); padding: 0.7rem 1.2rem; border-radius: var(--radius-md);
  font-size: 0.85rem; box-shadow: var(--shadow-elevate);
  display: flex; align-items: center; gap: 0.5rem;
  opacity: 0; pointer-events: none; transition: all 0.2s ease;
  z-index: 1080;
}
.icon-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.icon-toast i { color: var(--color-success); }

.icon-search-bar { margin-bottom: 1rem; }
.icon-count-label { color: var(--text-muted); font-size: 0.78rem; }

.swatch-mini { width: 14px; height: 14px; border-radius: 4px; display: inline-block; margin-right: 0.4rem; vertical-align: -2px; }

/* ==========================================================================
   ১৫. পেইজ-নির্দিষ্ট স্টাইল — page-2-data-table.html (এডভান্স ডাটা টেবিল)
   ==========================================================================
   page-2-data-table.html এর ভিতরের <style> ব্লক থেকে একত্রিত করা হলো।
-------------------------------------------------------------------------- */
.filter-toolbar { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.filter-row th { background: var(--bg-elevated); padding: 0.55rem 0.6rem; }
.filter-row .form-control, .filter-row .form-select { font-size: 0.85rem; padding: 0.5rem 0.6rem; }
th[data-sortable="true"] { user-select: none; }
th .th-inner { display: flex; align-items: center; gap: 0.35rem; }
.sort-icon { font-size: 0.7rem; opacity: 0.55; }
.table-toolbar-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.totals-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.totals-pill { background: var(--bg-elevated); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 0.6rem 1.1rem; display: flex; align-items: center; gap: 0.6rem; }
.totals-pill .totals-icon { width: 34px; height: 34px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.totals-pill .totals-label { font-size: 0.78rem; color: var(--text-muted); display: block; }
.totals-pill .totals-value { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.table-responsive-wrap { overflow-x: auto; }
#proDataTable { min-width: 1320px; }
.avatar-xs { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
