@import url("fonts.css");
/* =========================================================
   DIPR Uttarakhand ERP — Internal theme (admin-dashboard style)
   Primary: Sky Blue | Accent: Orange
   Layout: full-height white sidebar · white topbar with search ·
           soft rounded cards on a light sky-tinted canvas
   ========================================================= */
:root{
  /* Theme palette */
  --sky-50:#f0f9ff;
  --sky-100:#e0f2fe;
  --sky-200:#bae6fd;
  --sky-300:#7dd3fc;
  --sky-500:#0ea5e9;
  --sky-600:#0284c7;
  --sky-700:#0369a1;
  --sky-900:#0c4a6e;
  --orange-500:#f97316;
  --orange-600:#ea580c;
  --orange-100:#fff1e6;

  /* Legacy aliases — older component rules still reference the navy tokens */
  --navy-900:#1e2a3b;
  --navy-800:var(--sky-700);
  --navy-700:var(--sky-600);
  --navy-600:var(--sky-500);
  --navy-100:var(--sky-100);

  --canvas:#f3f8fc;
  --gray-50:#f7fafc;
  --gray-100:#eef3f7;
  --gray-200:#e3eaf0;
  --gray-500:#6b7a8c;
  --gray-700:#3d4a5c;
  --ink:#1e2a3b;
  --success:#16a34a;
  --success-bg:#e7f7ed;
  --warning:#b7791f;
  --warning-bg:#fdf3dc;
  --danger:#dc2626;
  --danger-bg:#fdecec;
  --info:var(--sky-600);
  --info-bg:var(--sky-100);

  --radius:10px;
  --radius-lg:15px;
  --shadow-sm:0 4px 24px rgba(12,74,110,.06);
  --shadow-md:0 10px 30px rgba(12,74,110,.12);
  --header-h:76px;
  --sidebar-w:280px;
  --sidebar-w-collapsed:84px;

  /* Bootstrap overrides so .text-primary, .btn-primary, links etc. follow the theme */
  --bs-primary:#0284c7;
  --bs-primary-rgb:2,132,199;
  --bs-link-color:#0284c7;
  --bs-link-color-rgb:2,132,199;
  --bs-link-hover-color:#ea580c;
  --bs-link-hover-color-rgb:234,88,12;
  --bs-border-radius:.5rem;
  --bs-body-color:#1e2a3b;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  font-family:var(--font-base);
  background:var(--canvas);
  color:var(--ink);
  font-size:14.5px;
}
a{color:var(--sky-600); text-decoration:none}
a:hover{color:var(--orange-600)}

/* ---------- Layout shell ---------- */
#app-shell{min-height:100vh; display:flex; flex-direction:column}

/* ----- Sidebar (full height, logo on top) ----- */
#app-sidebar{
  position:fixed; top:0; bottom:0; left:0; z-index:1035;
  width:var(--sidebar-w); background:#fff;
  box-shadow:0 0 21px rgba(12,74,110,.06);
  display:flex; flex-direction:column;
  transition:width .2s ease, transform .2s ease;
}
.sidebar-logo{
  height:var(--header-h); flex:0 0 auto;
  display:flex; align-items:center; gap:12px; padding:0 24px;
  border-bottom:1px solid var(--gray-100);
}
.sidebar-logo a{display:flex; align-items:center; gap:12px; min-width:0; color:var(--ink)}
.sidebar-logo img{width:44px; height:44px; border-radius:10px; object-fit:contain; background:#fff; box-shadow:0 0 0 1px var(--gray-200); padding:2px; flex:0 0 auto}
.sidebar-logo .logo-text{display:flex; flex-direction:column; line-height:1.2; min-width:0}
.sidebar-logo .logo-text strong{font-size:16px; font-weight:700; color:var(--sky-600); white-space:nowrap}
.sidebar-logo .logo-text small{font-size:11.5px; color:var(--gray-500); white-space:nowrap}
.sidebar-close{display:none; margin-left:auto; border:0; background:var(--sky-50); color:var(--sky-600); width:34px; height:34px; border-radius:8px}

.sidebar-scroll{flex:1 1 auto; overflow-y:auto; overflow-x:hidden; padding:14px 0 20px}
.sidebar-scroll::-webkit-scrollbar{width:5px}
.sidebar-scroll::-webkit-scrollbar-thumb{background:var(--gray-200); border-radius:5px}

.nav-tree{list-style:none; margin:0; padding:0}
.nav-section{
  font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.07em; color:var(--gray-500);
  padding:18px 32px 8px; white-space:nowrap;
}
.nav-tree .nav-link-item{
  display:flex; align-items:center; gap:14px;
  margin:2px 16px; padding:11px 16px; border-radius:10px;
  color:var(--gray-700); font-size:14.2px; font-weight:500;
  cursor:pointer; white-space:nowrap; transition:background .15s, color .15s;
}
.nav-tree .nav-link-item > i:first-child{font-size:18px; width:20px; text-align:center; flex:0 0 auto}
.nav-tree .nav-link-item:hover{background:var(--sky-50); color:var(--sky-600)}
.nav-tree .nav-link-item.active{background:var(--sky-50); color:var(--sky-600); font-weight:600; position:relative}
.nav-tree .nav-link-item.active::after{content:""; position:absolute; right:12px; top:50%; width:6px; height:6px; margin-top:-3px; border-radius:50%; background:var(--orange-500)}
.nav-tree .nav-label{white-space:normal; line-height:1.3}

/* "All Modules" back link + current module header */
.nav-back-link{
  display:flex; align-items:center; gap:12px; margin:0 16px 6px; padding:11px 16px;
  border-radius:10px; border:1px dashed var(--sky-200); color:var(--sky-700); font-size:14px; font-weight:600;
  transition:background .15s, color .15s, border-color .15s;
}
.nav-back-link i{font-size:17px}
.nav-back-link:hover{background:var(--sky-600); border-color:var(--sky-600); color:#fff}
.sidebar-module-header{
  display:flex; align-items:center; gap:12px; margin:10px 16px 2px; padding:14px;
  border-radius:12px; background:linear-gradient(135deg, var(--sky-50), var(--orange-100));
}
.sidebar-module-header .smh-icon{
  width:40px; height:40px; border-radius:10px; flex:0 0 auto; font-size:19px;
  display:flex; align-items:center; justify-content:center; background:#fff; color:var(--sky-600);
  box-shadow:0 4px 10px rgba(12,74,110,.08);
}
.sidebar-module-header .nav-label{display:flex; flex-direction:column; line-height:1.3; min-width:0}
.sidebar-module-header strong{font-size:15px; font-weight:700; color:var(--navy-900)}
.sidebar-module-header small{font-size:12px; color:var(--gray-500)}

/* Sidebar help card */
.sidebar-help{
  margin:22px 22px 6px; padding:22px 18px 18px; border-radius:15px; text-align:center; color:#fff;
  background:linear-gradient(150deg, var(--sky-500), var(--sky-600));
  position:relative; overflow:hidden;
}
.sidebar-help::after{
  content:""; position:absolute; right:-30px; top:-30px; width:110px; height:110px; border-radius:50%;
  background:rgba(255,255,255,.12);
}
.sidebar-help .help-ico{
  width:48px; height:48px; border-radius:50%; margin:0 auto 10px; font-size:22px;
  display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.2);
}
.sidebar-help h6{font-size:16px; font-weight:700; margin:0 0 4px}
.sidebar-help p{font-size:12.5px; margin:0 0 12px; color:rgba(255,255,255,.85)}
.sidebar-help a{
  display:inline-block; padding:7px 16px; border-radius:6px; font-size:13px; font-weight:600;
  background:var(--orange-500); color:#fff;
}
.sidebar-help a:hover{background:var(--orange-600); color:#fff}

/* Collapsed (desktop): icon-only rail */
body.sidebar-collapsed #app-sidebar{width:var(--sidebar-w-collapsed)}
body.sidebar-collapsed .sidebar-logo{padding:0 20px}
body.sidebar-collapsed .sidebar-logo .logo-text,
body.sidebar-collapsed .nav-section,
body.sidebar-collapsed .nav-tree .nav-label,
body.sidebar-collapsed .nav-back-link .nav-label,
body.sidebar-collapsed .sidebar-module-header .nav-label,
body.sidebar-collapsed .sidebar-help{display:none}
body.sidebar-collapsed .nav-tree .nav-link-item{justify-content:center; margin:2px 14px; padding:12px 0}
body.sidebar-collapsed .nav-tree .nav-link-item.active::after{display:none}
body.sidebar-collapsed .nav-back-link{justify-content:center; margin:0 14px 6px; padding:11px 0}
body.sidebar-collapsed .sidebar-module-header{justify-content:center; margin:10px 14px 2px; padding:10px 0}

/* Module-selection page: no sidebar, full-width content */
body.no-sidebar #app-sidebar{display:none}
body.no-sidebar #app-header{left:0 !important}
body.no-sidebar #app-main, body.no-sidebar #app-footer{margin-left:0 !important}
body.no-sidebar #sidebar-toggle-btn{display:none}
body.no-sidebar .header-mobile-brand{display:block}
body.no-sidebar #app-main{max-width:1560px; width:100%; margin-left:auto !important; margin-right:auto}

/* ----- Header (white topbar, right of sidebar) ----- */
#app-header{
  height:var(--header-h);
  position:fixed; top:0; right:0; left:var(--sidebar-w); z-index:1030;
  background:#fff; color:var(--ink);
  display:flex; align-items:center; gap:14px; padding:0 28px;
  box-shadow:0 4px 24px rgba(12,74,110,.05);
  transition:left .2s ease;
}
body.sidebar-collapsed #app-header{left:var(--sidebar-w-collapsed)}
#sidebar-toggle-btn{
  width:42px; height:42px; flex:0 0 auto; border:0; border-radius:10px;
  background:var(--sky-50); color:var(--sky-600); font-size:19px;
  display:flex; align-items:center; justify-content:center;
}
#sidebar-toggle-btn:hover{background:var(--sky-100)}
.header-mobile-brand{display:none}
.header-mobile-brand img{width:38px; height:38px; border-radius:8px; object-fit:contain; box-shadow:0 0 0 1px var(--gray-200)}

.header-search{position:relative; flex:0 1 460px; min-width:0}
.header-search > i{position:absolute; left:18px; top:50%; transform:translateY(-50%); color:var(--gray-500); font-size:16px; pointer-events:none}
.header-search input{
  width:100%; height:46px; padding:0 18px 0 46px;
  border:1px solid var(--gray-200); border-radius:23px; background:#fff;
  font-size:14.5px; color:var(--ink); outline:none; transition:border-color .15s, box-shadow .15s;
}
.header-search input::placeholder{color:#94a3b8}
.header-search input:focus{border-color:var(--sky-300); box-shadow:0 0 0 4px rgba(14,165,233,.12)}
.search-results{
  position:absolute; top:calc(100% + 8px); left:0; right:0; z-index:1040;
  background:#fff; border-radius:12px; box-shadow:var(--shadow-md); padding:6px; display:none;
  max-height:360px; overflow-y:auto;
}
.search-results.show{display:block}
.search-results a{display:flex; align-items:center; gap:12px; padding:9px 12px; border-radius:8px; color:var(--ink); font-size:14px}
.search-results a i{width:32px; height:32px; border-radius:8px; background:var(--sky-50); color:var(--sky-600); display:flex; align-items:center; justify-content:center; flex:0 0 auto}
.search-results a small{display:block; font-size:12px; color:var(--gray-500)}
.search-results a:hover, .search-results a.focus{background:var(--sky-50); color:var(--sky-600)}
.search-results .no-result{padding:14px; text-align:center; color:var(--gray-500); font-size:13.5px}

.gov-header-right{margin-left:auto; display:flex; align-items:center; gap:6px}
.header-icon-btn{
  position:relative; width:42px; height:42px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  color:var(--gray-700); background:transparent; border:none; font-size:19px;
}
.header-icon-btn:hover{background:var(--sky-50); color:var(--sky-600)}
.header-icon-btn .badge-dot{
  position:absolute; top:5px; right:5px; background:var(--orange-500);
  color:#fff; font-size:10px; font-weight:600; min-width:17px; height:17px; border-radius:9px;
  display:flex; align-items:center; justify-content:center; padding:0 4px;
  border:2px solid #fff;
}
.header-profile-btn{
  display:flex; align-items:center; gap:10px; color:var(--ink); background:transparent;
  border:none; padding:5px 10px 5px 5px; border-radius:12px; margin-left:6px;
}
.header-profile-btn:hover{background:var(--sky-50)}
.header-avatar{
  width:40px; height:40px; border-radius:50%;
  background:linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-weight:600; font-size:14px; flex:0 0 auto;
}
.header-profile-btn .prof-meta{text-align:left; line-height:1.25; display:none}
.header-profile-btn .prof-meta div{font-size:14.5px; font-weight:600}
.header-profile-btn .prof-meta small{color:var(--gray-500); font-size:12px}
.header-profile-btn .bi-chevron-down{font-size:11px; color:var(--gray-500)}
@media(min-width:1200px){.header-profile-btn .prof-meta{display:block}}

/* ----- Content ----- */
#app-main{
  margin-left:var(--sidebar-w); margin-top:var(--header-h);
  padding:28px 28px 40px;
  flex:1; transition:margin-left .2s ease; min-width:0;
}
body.sidebar-collapsed #app-main{margin-left:var(--sidebar-w-collapsed)}

/* ----- Footer ----- */
#app-footer{
  margin-left:var(--sidebar-w); background:#fff;
  color:var(--gray-500); font-size:13px; padding:16px 28px; display:flex;
  justify-content:space-between; flex-wrap:wrap; gap:6px; transition:margin-left .2s ease;
  box-shadow:0 -4px 24px rgba(12,74,110,.04);
}
body.sidebar-collapsed #app-footer{margin-left:var(--sidebar-w-collapsed)}
#app-footer a{color:var(--sky-600)}

@media(max-width:991px){
  #app-sidebar{transform:translateX(-100%); width:var(--sidebar-w) !important}
  body.sidebar-open #app-sidebar{transform:translateX(0); box-shadow:var(--shadow-md)}
  .sidebar-close{display:flex; align-items:center; justify-content:center}
  #app-header{left:0 !important; padding:0 16px}
  .header-mobile-brand{display:block}
  #app-main, #app-footer{margin-left:0 !important}
  body.sidebar-collapsed .sidebar-logo .logo-text,
  body.sidebar-collapsed .nav-section,
  body.sidebar-collapsed .nav-tree .nav-label,
  body.sidebar-collapsed .nav-back-link .nav-label,
  body.sidebar-collapsed .sidebar-help{display:revert}
  body.sidebar-collapsed .nav-tree .nav-link-item{justify-content:flex-start; margin:2px 16px; padding:11px 16px}
  body.sidebar-collapsed .nav-back-link{justify-content:flex-start; margin:0 16px 6px; padding:11px 16px}
  body.sidebar-collapsed .sidebar-module-header{justify-content:flex-start; margin:10px 16px 2px; padding:14px}
  body.sidebar-collapsed .sidebar-module-header .nav-label{display:flex}
}

/* ---------- Page head: title on top, breadcrumb below, actions right ---------- */
.page-head{margin-bottom:24px; align-items:center !important}
.page-head > div:first-child:not(.gov-breadcrumb),
.page-head:not(.d-flex){display:flex; flex-direction:column; gap:4px}
.page-head:not(.d-flex){align-items:flex-start !important}
.page-head h1{order:-1}
.page-head h1{font-size:24px; font-weight:700; color:var(--navy-900); margin:0; letter-spacing:.2px}
.gov-breadcrumb{font-size:13.5px; color:var(--gray-500); display:flex; align-items:center; flex-wrap:wrap}
.gov-breadcrumb a{color:var(--sky-600); font-weight:500}
.gov-breadcrumb a:hover{color:var(--orange-600)}
.gov-breadcrumb .bi-house-door{font-size:15px}
.gov-breadcrumb .sep{margin:0 8px; color:#a0aec0}
.page-head-actions{display:flex; gap:8px; flex-wrap:wrap}

/* ---------- Cards ---------- */
.gov-card{background:#fff; border:0; border-radius:var(--radius-lg); box-shadow:var(--shadow-sm)}
.gov-card .gov-card-header{
  padding:22px 26px 6px; display:flex; align-items:center;
  justify-content:space-between; gap:10px; flex-wrap:wrap;
}
.gov-card .gov-card-header h2{font-size:18px; font-weight:600; margin:0; color:var(--navy-900); letter-spacing:.2px}
.gov-card .gov-card-body{padding:20px 26px 24px}
.gov-card .gov-card-header + .gov-card-body{padding-top:16px}
.gov-card.h-100{display:flex; flex-direction:column}

/* ---------- KPI widgets ---------- */
.kpi-card{
  background:#fff; border:0; border-radius:var(--radius-lg); padding:20px 22px;
  box-shadow:var(--shadow-sm); height:100%; position:relative; overflow:hidden;
}
.kpi-card::after{
  content:""; position:absolute; right:-26px; bottom:-26px; width:90px; height:90px; border-radius:50%;
  background:var(--sky-50); z-index:0;
}
.kpi-card > *{position:relative; z-index:1}
.kpi-card .kpi-label{font-size:13px; font-weight:500; color:var(--gray-500)}
.kpi-card .kpi-value{font-size:28px; font-weight:700; color:var(--navy-900); line-height:1.35; margin-top:4px}
.kpi-card .kpi-icon{
  width:46px; height:46px; border-radius:12px; background:var(--sky-100); color:var(--sky-600);
  display:flex; align-items:center; justify-content:center; font-size:21px; flex:0 0 auto;
}
.kpi-card.accent-orange .kpi-icon{background:var(--orange-100); color:var(--orange-600)}
.kpi-card.accent-orange::after{background:#fff7f0}
.kpi-card.accent-success .kpi-icon{background:var(--success-bg); color:var(--success)}
.kpi-card.accent-success::after{background:#f3fbf6}
.kpi-card.accent-danger .kpi-icon{background:var(--danger-bg); color:var(--danger)}
.kpi-card.accent-danger::after{background:#fef6f6}
.kpi-card .kpi-trend{font-size:12.5px; font-weight:500}
.kpi-card .kpi-trend.up{color:var(--success)}
.kpi-card .kpi-trend.down{color:var(--danger)}

/* ---------- Dashboard: welcome banner + summary card ---------- */
.welcome-banner{
  position:relative; overflow:hidden; height:100%; min-height:230px;
  border-radius:var(--radius-lg); padding:32px 34px; color:#fff;
  background:linear-gradient(135deg, var(--sky-500) 0%, var(--sky-600) 100%);
  box-shadow:0 12px 30px -12px rgba(2,132,199,.55);
}
.welcome-banner::before{
  content:""; position:absolute; right:-60px; top:-80px; width:260px; height:260px; border-radius:50%;
  background:rgba(255,255,255,.08);
}
.welcome-banner .wb-text{position:relative; z-index:1; max-width:340px}
.welcome-banner h2{font-size:28px; font-weight:700; margin:0 0 10px; color:#fff}
.welcome-banner p{font-size:15px; margin:0 0 22px; color:rgba(255,255,255,.85); line-height:1.6}
.welcome-banner .wb-btn{
  display:inline-flex; align-items:center; gap:8px; padding:10px 18px; border-radius:8px;
  border:1px solid rgba(255,255,255,.7); color:#fff; font-weight:600; font-size:14px;
}
.welcome-banner .wb-btn:hover{background:#fff; color:var(--sky-600)}
.welcome-banner .wb-art{position:absolute; right:18px; bottom:0; height:92%; max-width:52%; z-index:1; pointer-events:none}

.summary-card{text-align:center; overflow:hidden; position:relative}
.summary-card .sc-top{height:84px; background:linear-gradient(180deg, var(--sky-50), #fff)}
.summary-card .sc-icon{
  width:64px; height:64px; margin:-52px auto 10px; border-radius:50%; position:relative;
  background:#fff; box-shadow:0 6px 18px rgba(12,74,110,.12); color:var(--orange-500); font-size:28px;
  display:flex; align-items:center; justify-content:center;
}
.summary-card h3{font-size:19px; font-weight:600; margin:0; color:var(--navy-900)}
.summary-card .sc-sub{font-size:13px; color:var(--gray-500)}
.summary-card .sc-value{font-size:22px; font-weight:700; color:var(--sky-600); margin:4px 0 0}
.summary-card svg{display:block; width:100%; height:90px; margin-top:6px}

/* ---------- Module dashboard: hero strip ---------- */
.md-title-en{font-size:15px; font-weight:400; color:var(--gray-500)}
.module-hero{
  position:relative; overflow:hidden; isolation:isolate;
  display:flex; align-items:center; gap:22px; margin-bottom:24px; padding:26px 30px;
  border-radius:var(--radius-lg); color:#fff;
  background:linear-gradient(120deg, var(--sky-500) 0%, var(--sky-600) 60%, var(--sky-700) 100%);
  box-shadow:0 12px 30px -14px rgba(2,132,199,.6);
}
.module-hero::before{content:""; position:absolute; right:-40px; top:-70px; width:240px; height:240px; border-radius:50%; background:rgba(255,255,255,.08); z-index:-1}
.module-hero::after{content:""; position:absolute; right:160px; bottom:-90px; width:180px; height:180px; border-radius:50%; background:rgba(249,115,22,.25); filter:blur(30px); z-index:-1}
.mh-icon{width:64px; height:64px; border-radius:16px; flex:0 0 auto; display:flex; align-items:center; justify-content:center; font-size:30px; background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.3)}
.mh-text{min-width:0; flex:1}
.mh-tag{font-size:11.5px; letter-spacing:.3em; text-transform:uppercase; color:rgba(255,255,255,.75)}
.mh-text h2{font-size:22px; font-weight:700; margin:4px 0 4px; color:#fff}
.mh-text p{margin:0; font-size:14.5px; color:rgba(255,255,255,.88)}
.mh-stat{flex:0 0 auto; text-align:center; padding:12px 22px; border-radius:12px; background:#fff; color:var(--navy-900); box-shadow:0 8px 20px -10px rgba(0,0,0,.3)}
.mh-stat strong{display:block; font-size:24px; font-weight:700; color:var(--orange-600); line-height:1.1}
.mh-stat span{font-size:12px; color:var(--gray-500)}
@media(max-width:575px){
  .module-hero{flex-wrap:wrap; padding:20px}
  .mh-stat{width:100%}
}

/* ---------- Module launcher cards (dashboard) ----------
   White card · thin rule + spaced caption at top · soft iridescent glow in
   the corners (sky / orange / pastel) · gradient icon · pill CTA button. */
.module-section-title{
  font-size:18px; font-weight:600; color:var(--navy-900); margin:34px 0 16px;
  display:flex; align-items:baseline; flex-wrap:wrap; gap:2px 6px;
}
.module-section-title::before{content:""; width:4px; height:18px; border-radius:2px; background:var(--orange-500); align-self:center; margin-right:4px}
.module-section-title:first-child{margin-top:4px}
.module-section-title span{font-size:13px; font-weight:400; color:var(--gray-500)}

.module-card{
  position:relative; isolation:isolate; overflow:hidden;
  display:flex; flex-direction:column; height:100%; min-height:330px;
  padding:0 30px 30px; border-radius:16px; background:#fff; color:var(--ink);
  box-shadow:0 1px 2px rgba(12,74,110,.04), 0 12px 32px -14px rgba(12,74,110,.18);
  transition:transform .2s ease, box-shadow .2s ease;
}
.module-card:hover{transform:translateY(-4px); box-shadow:0 2px 4px rgba(12,74,110,.05), 0 22px 44px -16px rgba(12,74,110,.28)}
/* Soft glow layer — each glow-N variant places the colour blobs differently */
.module-card::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  filter:blur(26px) saturate(1.25); transition:filter .2s;
}
.module-card:hover::before{filter:blur(22px) saturate(1.45)}
.module-card.glow-1::before{background:
  radial-gradient(40% 32% at 2% 78%, rgba(254,240,138,.95), transparent 70%),
  radial-gradient(38% 28% at 45% 102%, rgba(125,211,252,.9), transparent 70%),
  radial-gradient(34% 30% at 100% 100%, rgba(253,186,116,.95), transparent 70%)}
.module-card.glow-2::before{background:
  radial-gradient(40% 26% at 30% -4%, rgba(186,230,253,.95), transparent 70%),
  radial-gradient(34% 34% at 102% 24%, rgba(253,186,116,.8), transparent 70%),
  radial-gradient(36% 26% at 0% 102%, rgba(125,211,252,.8), transparent 70%)}
.module-card.glow-3::before{background:
  radial-gradient(44% 24% at 20% -4%, rgba(125,211,252,.8), transparent 70%),
  radial-gradient(30% 34% at 104% 70%, rgba(254,215,170,.95), transparent 70%),
  radial-gradient(34% 26% at 96% 104%, rgba(56,189,248,.7), transparent 70%)}
.module-card.glow-4::before{background:
  radial-gradient(28% 50% at 104% 40%, rgba(254,240,138,.9), transparent 70%),
  radial-gradient(26% 30% at 100% 6%, rgba(186,230,253,.95), transparent 70%),
  radial-gradient(40% 26% at 88% 104%, rgba(253,186,116,.85), transparent 70%)}
.module-card.glow-5::before{background:
  radial-gradient(50% 26% at 36% -6%, rgba(56,189,248,.7), transparent 70%),
  radial-gradient(30% 30% at 104% 96%, rgba(251,146,60,.7), transparent 70%),
  radial-gradient(30% 22% at 2% 10%, rgba(254,215,170,.85), transparent 70%)}
.module-card.glow-6::before{background:
  radial-gradient(30% 40% at 104% 30%, rgba(186,230,253,.95), transparent 70%),
  radial-gradient(40% 30% at 60% 50%, rgba(254,240,138,.55), transparent 70%),
  radial-gradient(38% 26% at 100% 104%, rgba(253,186,116,.9), transparent 70%)}

/* Top rule + spaced caption */
.mc-tag{display:flex; align-items:center; gap:22px; margin:0 -30px; padding:28px 30px 0 0}
.mc-tag::before{content:""; flex:1; height:1px; background:linear-gradient(90deg, var(--sky-500), rgba(14,165,233,.15) 70%, transparent)}
.mc-tag span{font-size:12px; font-weight:500; letter-spacing:.34em; text-transform:uppercase; color:var(--navy-900); white-space:nowrap}

/* Gradient icon */
.mc-icon{margin:34px 0 12px; line-height:1}
.mc-icon i{
  font-size:38px; display:inline-block;
  background:linear-gradient(140deg, var(--sky-300) 0%, var(--sky-600) 55%, var(--orange-500) 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:var(--sky-600);
}
.module-card h3{font-size:25px; font-weight:700; color:var(--navy-900); margin:0 0 10px; line-height:1.3}
.mc-lead{font-size:15.5px; line-height:1.55; color:var(--gray-700); margin:0 0 14px; max-width:36ch}
.mc-note{font-size:13px; color:var(--gray-500); margin:0 0 22px}
.mc-note strong{color:var(--orange-600); font-weight:600}

.mc-foot{margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:12px}
.mc-more{
  border:0; background:none; padding:4px 0; display:inline-flex; align-items:center; gap:7px;
  font-size:14.5px; font-weight:600; letter-spacing:.04em; color:var(--navy-900);
}
.mc-more i{font-size:13px; color:var(--gray-500)}
.mc-more:hover, .mc-more:hover i{color:var(--sky-600)}
.mc-cta{
  display:inline-flex; align-items:center; justify-content:center; min-width:150px;
  padding:14px 26px; border-radius:40px; white-space:nowrap;
  font-size:14px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:#fff;
  background:linear-gradient(135deg, var(--sky-500) 0%, var(--sky-600) 55%, var(--sky-700) 100%);
  box-shadow:0 10px 22px -8px rgba(2,132,199,.6), inset 0 1px 0 rgba(255,255,255,.25);
  transition:transform .15s, box-shadow .15s, background .15s;
}
.mc-cta:hover{color:#fff; transform:translateY(-2px); box-shadow:0 14px 26px -8px rgba(2,132,199,.7), inset 0 1px 0 rgba(255,255,255,.25)}
.module-card:hover .mc-cta{background:linear-gradient(135deg, var(--sky-500) 0%, var(--sky-600) 45%, var(--orange-500) 140%)}

/* "Know more" popover: the module's pages */
.mc-popover{--bs-popover-border-color:transparent; --bs-popover-header-bg:var(--sky-50); --bs-popover-header-color:var(--navy-900); --bs-popover-max-width:280px; border-radius:12px; box-shadow:var(--shadow-md); font-family:var(--font-base)}
.mc-popover .popover-header{font-size:14.5px; font-weight:600; border-radius:12px 12px 0 0}
.mc-pop-links{display:flex; flex-direction:column; margin:-4px -6px}
.mc-pop-links a{padding:6px 8px; border-radius:6px; font-size:13.5px; color:var(--gray-700)}
.mc-pop-links a:hover{background:var(--sky-50); color:var(--sky-600)}

/* Quick-access tiles (Reports / Notifications / Audit) */
.quick-card{
  display:flex; align-items:center; gap:14px; height:100%; padding:18px 20px; position:relative;
  background:#fff; border-radius:14px; box-shadow:var(--shadow-sm); color:var(--ink);
  transition:transform .15s, box-shadow .15s;
}
.quick-card:hover{transform:translateY(-3px); box-shadow:var(--shadow-md); color:var(--ink)}
.quick-card-icon{
  width:44px; height:44px; border-radius:12px; flex:0 0 auto; font-size:19px;
  display:flex; align-items:center; justify-content:center;
  background:var(--sky-100); color:var(--sky-600); transition:background .15s, color .15s;
}
.quick-card:hover .quick-card-icon{background:var(--sky-600); color:#fff}
.quick-card-body{min-width:0}
.quick-card-body h3{font-size:15px; font-weight:600; margin:0; color:var(--navy-900)}
.quick-card-body span{font-size:12.5px; color:var(--gray-500)}
.quick-card-arrow{margin-left:auto; color:var(--gray-200); font-size:16px; transition:color .15s}
.quick-card:hover .quick-card-arrow{color:var(--orange-500)}

/* ---------- Status badges ---------- */
.status-badge{display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; padding:4px 11px; border-radius:6px}
.status-badge::before{content:""; width:6px; height:6px; border-radius:50%; background:currentColor}
.status-draft{background:var(--gray-100); color:var(--gray-700)}
.status-pending, .status-submitted, .status-in-review{background:var(--warning-bg); color:var(--warning)}
.status-approved, .status-active, .status-completed, .status-paid{background:var(--success-bg); color:var(--success)}
.status-rejected, .status-overdue, .status-cancelled{background:var(--danger-bg); color:var(--danger)}
.status-returned, .status-info{background:var(--info-bg); color:var(--info)}

/* ---------- Tables ---------- */
.gov-table-wrap{overflow-x:auto}
table.gov-table{width:100%; border-collapse:separate; border-spacing:0; font-size:13.6px}
table.gov-table thead th{
  background:var(--sky-50); color:var(--navy-900); font-weight:600; text-align:left;
  padding:12px 14px; white-space:nowrap; border-bottom:1px solid var(--sky-100);
}
table.gov-table thead th:first-child{border-top-left-radius:10px}
table.gov-table thead th:last-child{border-top-right-radius:10px}
table.gov-table tbody td{padding:12px 14px; border-bottom:1px solid var(--gray-100); vertical-align:middle; color:var(--gray-700)}
table.gov-table tbody tr:last-child td{border-bottom:0}
table.gov-table tbody tr:hover td{background:#fafdff}
table.gov-table .row-actions{display:flex; gap:6px; white-space:nowrap}
.table-toolbar{display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:16px}
.table-toolbar .search-box{position:relative; flex:1 1 240px; max-width:340px}
.table-toolbar .search-box i{position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--gray-500)}
.table-toolbar .search-box input{padding-left:36px}
.filter-panel{background:var(--sky-50); border:1px dashed var(--sky-200); border-radius:12px; padding:16px; margin-bottom:16px}

/* ---------- Forms & buttons (Bootstrap refinements) ---------- */
/* Form text is dark and borders are clearly visible (government forms: easy to read).
   Contrast on white: text 16:1, labels 14:1, hints 7.5:1, borders 3:1. */
:root{
  --form-text:#111827;
  --form-label:#1f2937;
  --form-hint:#4b5563;
  --form-placeholder:#6b7280;
  --form-border:#8c97a4;
  --form-border-hover:#5f6b78;
  --form-focus:#0b4f8a;
  --form-readonly:#f1f4f7;
  --form-title:#0b3a63;
}
.form-control, .form-select{border-color:var(--form-border); border-radius:8px; color:var(--form-text); background-color:#fff}
.form-control::placeholder{color:var(--form-placeholder); opacity:1}
.form-control:hover:not(:disabled):not([readonly]), .form-select:hover:not(:disabled){border-color:var(--form-border-hover)}
.form-control:focus, .form-select:focus{border-color:var(--form-focus); color:var(--form-text); box-shadow:0 0 0 .2rem rgba(11,79,138,.18)}
.form-control:disabled, .form-control[readonly], .form-select:disabled{background-color:var(--form-readonly); color:#374151; opacity:1}
.form-check-input{border-color:var(--form-border)}
.form-check-label{color:var(--form-label)}
.input-group-text{border-color:var(--form-border); color:var(--form-label); background:var(--form-readonly)}
.form-check-input:checked{background-color:var(--sky-600); border-color:var(--sky-600)}
.form-check-input:focus{border-color:var(--sky-300); box-shadow:0 0 0 .22rem rgba(14,165,233,.15)}
.form-label{font-weight:600; color:var(--form-label)}
.btn{border-radius:8px; font-weight:500}
.btn-primary{--bs-btn-bg:var(--sky-600); --bs-btn-border-color:var(--sky-600); --bs-btn-hover-bg:var(--sky-700); --bs-btn-hover-border-color:var(--sky-700); --bs-btn-active-bg:var(--sky-700); --bs-btn-active-border-color:var(--sky-700)}
.btn-outline-primary{--bs-btn-color:var(--sky-600); --bs-btn-border-color:var(--sky-600); --bs-btn-hover-bg:var(--sky-600); --bs-btn-hover-border-color:var(--sky-600); --bs-btn-active-bg:var(--sky-700)}
.btn-outline-secondary{--bs-btn-color:var(--gray-700); --bs-btn-border-color:var(--gray-200); --bs-btn-hover-bg:var(--sky-50); --bs-btn-hover-color:var(--sky-600); --bs-btn-hover-border-color:var(--sky-200); --bs-btn-active-bg:var(--sky-100); --bs-btn-active-color:var(--sky-700); --bs-btn-active-border-color:var(--sky-200)}
.btn-gov-primary{background:var(--sky-600); border-color:var(--sky-600); color:#fff}
.btn-gov-primary:hover, .btn-gov-primary:focus{background:var(--sky-700); border-color:var(--sky-700); color:#fff}
.btn-gov-accent{background:var(--orange-500); border-color:var(--orange-500); color:#fff}
.btn-gov-accent:hover, .btn-gov-accent:focus{background:var(--orange-600); border-color:var(--orange-600); color:#fff}

.gov-form-section-title{
  font-size:14.5px; font-weight:700; letter-spacing:.02em;
  color:var(--form-title); border-bottom:1px solid #d5dce3; padding-bottom:8px; margin:24px 0 16px;
  display:flex; align-items:center; gap:8px;
}
.gov-form-section-title::before{content:""; width:4px; height:14px; border-radius:2px; background:var(--orange-500)}
.gov-form-section-title:first-child{margin-top:0}
label.required::after{content:" *"; color:var(--danger)}
.form-hint{font-size:13px; color:var(--form-hint)}
.upload-box{
  border:2px dashed var(--sky-200); border-radius:12px; background:var(--sky-50);
  padding:24px; text-align:center; color:var(--gray-500); cursor:pointer; transition:border-color .15s, background .15s;
}
.upload-box:hover{border-color:var(--sky-500); background:var(--sky-100)}
.upload-box i{font-size:28px; color:var(--sky-600)}
.uploaded-file-item{
  display:flex; align-items:center; gap:10px; padding:9px 12px; border:1px solid var(--gray-200);
  border-radius:8px; background:#fff; margin-top:8px; font-size:13px;
}

/* ---------- Workflow stepper ---------- */
.gov-stepper{display:flex; list-style:none; padding:0; margin:0 0 22px; flex-wrap:wrap}
.gov-stepper li{flex:1; min-width:120px; text-align:center; position:relative; font-size:12.5px; color:var(--gray-500); padding-top:36px}
.gov-stepper li::before{content:""; position:absolute; top:11px; left:0; right:0; height:3px; background:var(--gray-200); z-index:0}
.gov-stepper li:first-child::before{left:50%}
.gov-stepper li:last-child::before{right:50%}
.gov-stepper li .step-dot{
  position:absolute; top:0; left:50%; transform:translateX(-50%); width:24px; height:24px; border-radius:50%;
  background:#fff; border:3px solid var(--gray-200); z-index:1;
}
.gov-stepper li.done{color:var(--success); font-weight:600}
.gov-stepper li.done::before{background:var(--success)}
.gov-stepper li.done .step-dot{border-color:var(--success); background:var(--success)}
.gov-stepper li.current{color:var(--orange-600); font-weight:700}
.gov-stepper li.current .step-dot{border-color:var(--orange-500); box-shadow:0 0 0 4px var(--orange-100)}

/* ---------- Timeline / audit ---------- */
.gov-timeline{list-style:none; margin:0; padding:0}
.gov-timeline li{position:relative; padding:0 0 20px 28px; border-left:2px dashed var(--gray-200); margin-left:6px}
.gov-timeline li:last-child{border-color:transparent; padding-bottom:0}
.gov-timeline li::before{content:""; position:absolute; left:-8px; top:1px; width:14px; height:14px; border-radius:50%; background:#fff; border:3px solid var(--sky-500)}
.gov-timeline li:nth-child(even)::before{border-color:var(--orange-500)}
.gov-timeline .tl-title{font-weight:600; font-size:14px; color:var(--navy-900)}
.gov-timeline .tl-meta{font-size:12.5px; color:var(--gray-500); margin-top:2px}

/* ---------- Empty / loading states ---------- */
.empty-state{text-align:center; padding:48px 20px; color:var(--gray-500)}
.empty-state i{font-size:42px; color:var(--sky-200); display:block; margin-bottom:12px}
.skeleton-row{height:14px; background:linear-gradient(90deg,var(--gray-100) 25%,var(--gray-200) 37%,var(--gray-100) 63%); background-size:400% 100%; animation:skeleton 1.4s ease infinite; border-radius:4px}
@keyframes skeleton{0%{background-position:100% 50%}100%{background-position:0 50%}}

/* =========================================================
   Legacy auth-card styles — still used by forgot-password.html
   (login/OTP use css/login.css)
   ========================================================= */
.gov-topbar{
  background:var(--sky-900); color:#d7ecf8; font-size:12px;
  display:flex; align-items:center; justify-content:space-between;
  padding:6px 18px; flex-wrap:wrap; gap:6px;
}
.gov-topbar .topbar-left{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.gov-topbar a{color:#d7ecf8}
@media(max-width:576px){ .gov-topbar .topbar-left span.hide-xs{display:none} }
.gov-page-fit{height:100vh; height:100dvh; display:flex; flex-direction:column; overflow:hidden}
.gov-page-fit .gov-topbar{flex:0 0 auto}
.gov-auth-wrap{flex:1 1 auto; min-height:0; overflow-y:auto; display:flex; align-items:center; justify-content:center; background:linear-gradient(160deg,var(--sky-500),var(--sky-700)); padding:20px}
.gov-auth-card{background:#fff; width:100%; max-width:420px; border-radius:15px; box-shadow:0 20px 50px rgba(0,0,0,.2); overflow:hidden; margin:auto}
.gov-auth-card .gov-auth-head{background:var(--sky-50); color:var(--ink); padding:18px 26px; text-align:center}
.gov-auth-card .gov-auth-head img{height:46px; width:46px; background:#fff; border-radius:8px; padding:5px; margin-bottom:6px}
.gov-auth-card .gov-auth-head h1{font-size:16px; margin:0}
.gov-auth-card .gov-auth-head p{font-size:12px; margin:2px 0 0; color:var(--gray-500)}
.gov-auth-card .gov-auth-body{padding:22px 26px}
.gov-auth-strip{height:5px; background:linear-gradient(90deg,var(--orange-500),var(--sky-500))}
.otp-inputs{display:flex; gap:10px; justify-content:center}
.otp-inputs input{width:44px; height:52px; text-align:center; font-size:20px; font-weight:700}

/* ---------- Prototype helpers ---------- */
.proto-role-switch{position:fixed; bottom:16px; right:16px; z-index:1040}
.proto-role-switch .dropdown-menu{font-size:13px}

/* ----- Demo notice in the header ----- */
.demo-notice{flex:1 1 440px; min-width:0; max-width:620px; display:flex; align-items:center; gap:8px; background:#fde047; color:#7f1d1d; border:2px solid #dc2626; border-radius:10px; padding:5px 12px; font-weight:700; font-size:.78rem; line-height:1.25; letter-spacing:.02em}
.demo-notice i{flex:0 0 auto; color:#dc2626; font-size:1.05rem}
@media (max-width:991.98px){ .demo-notice{font-size:.68rem; padding:4px 8px} .header-search{display:none} }
@media print{ .demo-notice{display:none !important} }
