/* ============================================================
   MyBangladesh — Agent Portal Utility Classes
   ------------------------------------------------------------
   The agent portal views were authored with Tailwind-style
   utility classes, but Tailwind is (correctly) prohibited by
   MASTER.md and only a partial subset lived in style.css. This
   file hand-implements the exact utilities the agent views use,
   with Tailwind-standard values, as plain external CSS (allowed:
   "Utility Classes" + "Mobile First" per MASTER.md CSS RULES).

   Load AFTER style.css. Values follow Tailwind's default scale
   (1 spacing unit = 0.25rem; breakpoints sm=640, md=768, lg=1024).
   ============================================================ */

/* ---- Brand / surface fallbacks (used by /opacity utilities) ---- */
:root {
    --u-primary: var(--color-primary, #006A4E);
    --u-primary-dark: var(--color-primary-dark, #00503a);
    --u-surface-variant: var(--color-surface-variant, #eef2f0);
    --u-outline-variant: var(--color-outline-variant, #d5ddd9);
}

/* ============================ LAYOUT ============================ */
.container { width: 100%; margin-left: auto; margin-right: auto; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.font-sans { font-family: 'Plus Jakarta Sans','Noto Sans Bengali',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif; }
.flex-shrink-0 { flex-shrink: 0; }
.whitespace-nowrap { white-space: nowrap; }
.text-left { text-align: left; }
.tracking-widest { letter-spacing: .1em; }
.text-decoration-none { text-decoration: none; }

/* ============================ SPACING ============================ */
/* padding (all sides) */
.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}
.p-3{padding:.75rem}.p-3\.5{padding:.875rem}.p-4{padding:1rem}.p-5{padding:1.25rem}
.p-6{padding:1.5rem}.p-8{padding:2rem}
/* padding X */
.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}
.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}
.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}
.px-6{padding-left:1.5rem;padding-right:1.5rem}
/* padding Y */
.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}
.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}
.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}
.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}
.py-8{padding-top:2rem;padding-bottom:2rem}.py-12{padding-top:3rem;padding-bottom:3rem}
/* padding sides */
.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}
.pb-3{padding-bottom:.75rem}.pl-2{padding-left:.5rem}
/* margin */
.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}
.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}
.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}
.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}
.ml-1{margin-left:.25rem}
/* gaps */
.gap-1\.5{gap:.375rem}.gap-2\.5{gap:.625rem}
/* vertical rhythm */
.space-y-1\.5 > * + * { margin-top:.375rem }

/* ============================ SIZING ============================ */
.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-7{height:1.75rem}.h-8{height:2rem}
.h-9{height:2.25rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-44{height:11rem}
.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}

/* ============================ RADIUS / BORDER ============================ */
.rounded{border-radius:.25rem}.rounded-3xl{border-radius:1.5rem}
.border{border-width:1px;border-style:solid;border-color:var(--u-outline-variant)}
.border-t{border-top-width:1px;border-top-style:solid;border-top-color:var(--u-outline-variant)}
.border-b{border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:var(--u-outline-variant)}
.border-l{border-left-width:1px;border-left-style:solid;border-left-color:var(--u-outline-variant)}
.border-amber-200{border-color:#fde68a}
.border-white\/10{border-color:rgba(255,255,255,.1)}

/* ============================ EFFECTS ============================ */
.shadow{box-shadow:0 1px 3px rgba(0,0,0,.1),0 1px 2px rgba(0,0,0,.06)}
.shadow-xl{box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1)}
.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}
.transition-colors{transition-property:color,background-color,border-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}
.duration-500{transition-duration:.5s}

/* ============================ COLORS: background ============================ */
.bg-amber-50{background-color:#fffbeb}.bg-amber-700{background-color:#b45309}
.bg-blue-100{background-color:#dbeafe}.bg-blue-600{background-color:#2563eb}
.bg-emerald-500{background-color:#10b981}
.bg-slate-300{background-color:#cbd5e1}
.bg-black\/25{background-color:rgba(0,0,0,.25)}
.bg-white\/20{background-color:rgba(255,255,255,.2)}
.bg-primary\/10{background-color:rgba(0,106,78,.1)}
.bg-surface-variant\/50{background-color:var(--u-surface-variant)}

/* ============================ COLORS: text ============================ */
.text-amber-300{color:#fcd34d}
.text-emerald-800{color:#065f46}
.text-slate-800{color:#1e293b}
.text-white\/70{color:rgba(255,255,255,.7)}
.text-white\/80{color:rgba(255,255,255,.8)}

/* ============================ HOVER VARIANTS ============================ */
.hover\:underline:hover{text-decoration:underline}
.hover\:bg-amber-300:hover{background-color:#fcd34d}
.hover\:bg-amber-600:hover{background-color:#d97706}
.hover\:bg-blue-700:hover{background-color:#1d4ed8}
.hover\:bg-emerald-600:hover{background-color:#059669}
.hover\:bg-emerald-700:hover{background-color:#047857}
.hover\:bg-red-50:hover{background-color:#fef2f2}
.hover\:bg-white\/90:hover{background-color:rgba(255,255,255,.9)}
.hover\:bg-primary-dark:hover{background-color:var(--u-primary-dark)}
.hover\:bg-primary\/5:hover{background-color:rgba(0,106,78,.05)}
.hover\:bg-primary\/20:hover{background-color:rgba(0,106,78,.2)}
.hover\:bg-surface-variant:hover{background-color:var(--u-surface-variant)}
.hover\:bg-surface-variant\/30:hover{background-color:var(--u-surface-variant)}
.hover\:bg-outline-variant:hover{background-color:var(--u-outline-variant)}
.hover\:border-primary\/50:hover{border-color:rgba(0,106,78,.5)}

/* ============================================================
   SELF-CONTAINED CORE LAYOUT UTILITIES
   ------------------------------------------------------------
   Duplicated here (Tailwind-standard values) so the agent portal
   renders correctly even if the server's style.css is older/cached
   and missing these. Loaded only in the agent layout, so it cannot
   affect other sections of the site.
   ============================================================ */
/* display */
.block{display:block}.inline-flex{display:inline-flex}.flex{display:flex}
.grid{display:grid}.hidden{display:none}
/* flex */
.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.flex-row{flex-direction:row}
.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}
.items-end{align-items:flex-end}.justify-between{justify-content:space-between}
.justify-center{justify-content:center}.justify-start{justify-content:flex-start}
/* grid */
.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}
.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.col-span-2{grid-column:span 2/span 2}
/* gap */
.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}
/* vertical rhythm */
.space-y-1 > * + *{margin-top:.25rem}.space-y-2 > * + *{margin-top:.5rem}
.space-y-3 > * + *{margin-top:.75rem}.space-y-4 > * + *{margin-top:1rem}
.space-y-5 > * + *{margin-top:1.25rem}.space-y-6 > * + *{margin-top:1.5rem}
/* sizing / centering */
.w-full{width:100%}.max-w-7xl{max-width:80rem}.mx-auto{margin-left:auto;margin-right:auto}
/* position / layering / overflow */
.relative{position:relative}.absolute{position:absolute}.z-10{z-index:10}
.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}
/* typography sizes */
.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}
.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}
.text-xl{font-size:1.25rem;line-height:1.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}
.text-3xl{font-size:1.875rem;line-height:2.25rem}
/* weights / alignment / spacing */
.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}
.font-extrabold{font-weight:800}.font-black{font-weight:900}
.text-center{text-align:center}.text-right{text-align:right}
.uppercase{text-transform:uppercase}
.tracking-tight{letter-spacing:-.025em}.tracking-wider{letter-spacing:.05em}
.leading-none{line-height:1}.leading-tight{line-height:1.25}
.whitespace-nowrap{white-space:nowrap}
/* radius */
.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}
.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}
/* effects / misc */
.shadow-sm{box-shadow:0 1px 2px rgba(0,0,0,.05)}
.shadow-lg{box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1)}
.cursor-pointer{cursor:pointer}.opacity-40{opacity:.4}
.backdrop-blur-sm{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
/* Tailwind palette colours used on agent screens (kept literal to avoid token drift) */
.bg-white{background-color:#fff}
.bg-amber-100{background-color:#fef3c7}.bg-amber-400{background-color:#fbbf24}
.bg-emerald-50{background-color:#ecfdf5}.bg-emerald-100{background-color:#d1fae5}
.bg-red-50{background-color:#fef2f2}
.border-emerald-200{border-color:#a7f3d0}.border-red-200{border-color:#fecaca}
.text-white{color:#fff}
.text-amber-500{color:#f59e0b}.text-amber-600{color:#d97706}
.text-blue-600{color:#2563eb}
.text-emerald-600{color:#059669}.text-emerald-700{color:#047857}
.text-red-600{color:#dc2626}.text-slate-950{color:#020617}

/* ============================ MISC / COMPONENTS ============================ */
/* dash-alert: base for notice boxes (colour/border supplied per-instance) */
.dash-alert{display:flex;align-items:center;gap:.75rem;font-size:.875rem;line-height:1.4}
/* divide helpers (borders between stacked children) */
.divide-y > * + *{border-top-width:1px;border-top-style:solid}
.divide-outline-variant > * + *{border-top-color:var(--u-outline-variant)}

/* ============================ RESPONSIVE: sm (>=640px) ============================ */
@media (min-width:640px){
    .sm\:block{display:block}
    .sm\:flex-col{flex-direction:column}.sm\:flex-row{flex-direction:row}
    .sm\:items-center{align-items:center}.sm\:items-end{align-items:flex-end}
    .sm\:justify-between{justify-content:space-between}
    .sm\:border-t-0{border-top-width:0}
    .sm\:p-6{padding:1.5rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:pt-0{padding-top:0}
    .sm\:text-2xl{font-size:1.5rem;line-height:2rem}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}
    .sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
    .sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
    .sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
    .sm\:col-span-1{grid-column:span 1/span 1}.sm\:col-span-2{grid-column:span 2/span 2}
}

/* ============================ RESPONSIVE: md (>=768px) ============================ */
@media (min-width:768px){
    .md\:block{display:block}
    .md\:flex-row{flex-direction:row}
    .md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}
    .md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
    .md\:col-span-2{grid-column:span 2/span 2}
}

/* ============================ RESPONSIVE: lg (>=1024px) ============================ */
@media (min-width:1024px){
    .lg\:hidden{display:none}
    .lg\:p-8{padding:2rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}
    .lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
    .lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
    .lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}
    .lg\:col-span-1{grid-column:span 1/span 1}.lg\:col-span-2{grid-column:span 2/span 2}
}

/* ============================ DARK VARIANTS ============================ */
/* Layout sets .dark and data-theme="dark" on <html>; support both. */
.dark .dark\:bg-slate-900,[data-theme="dark"] .dark\:bg-slate-900{background-color:#0f172a}
.dark .dark\:bg-blue-950,[data-theme="dark"] .dark\:bg-blue-950{background-color:#172554}
.dark .dark\:bg-emerald-950,[data-theme="dark"] .dark\:bg-emerald-950{background-color:#022c22}
.dark .dark\:bg-amber-950,[data-theme="dark"] .dark\:bg-amber-950{background-color:#451a03}
.dark .dark\:bg-emerald-950\/20,[data-theme="dark"] .dark\:bg-emerald-950\/20{background-color:rgba(2,44,34,.2)}
.dark .dark\:bg-emerald-950\/40,[data-theme="dark"] .dark\:bg-emerald-950\/40{background-color:rgba(2,44,34,.4)}
.dark .dark\:bg-amber-950\/20,[data-theme="dark"] .dark\:bg-amber-950\/20{background-color:rgba(69,26,3,.2)}
.dark .dark\:bg-red-950\/20,[data-theme="dark"] .dark\:bg-red-950\/20{background-color:rgba(69,10,10,.2)}
.dark .dark\:border-emerald-800,[data-theme="dark"] .dark\:border-emerald-800{border-color:#065f46}
.dark .dark\:border-amber-800,[data-theme="dark"] .dark\:border-amber-800{border-color:#92400e}
.dark .dark\:border-amber-800\/50,[data-theme="dark"] .dark\:border-amber-800\/50{border-color:rgba(146,64,14,.5)}
.dark .dark\:border-red-800,[data-theme="dark"] .dark\:border-red-800{border-color:#991b1b}
.dark .dark\:text-emerald-400,[data-theme="dark"] .dark\:text-emerald-400{color:#34d399}
.dark .dark\:text-amber-300,[data-theme="dark"] .dark\:text-amber-300{color:#fcd34d}
.dark .dark\:text-slate-100,[data-theme="dark"] .dark\:text-slate-100{color:#f1f5f9}
