/* ==========================================================================
   Sileo PMS Design System
   A Linear / ClickUp–inspired visual layer on top of the base Smarthr theme.
   Loaded AFTER assets/css/style.css so these rules take precedence.
   Principle: muted neutral surface, one confident accent (brand orange),
   soft/pill status indicators, subtle border+shadow elevation (no heavy
   drop-shadows), tightened type scale, disciplined 8/6px radius system.
   ========================================================================== */

:root {
	--sileo-accent: #F26522;
	--sileo-accent-dark: #D9541A;
	--sileo-accent-soft: #FEF1EB;

	--sileo-ink: #16181D;
	--sileo-ink-soft: #4B5563;
	--sileo-ink-faint: #8A93A3;

	--sileo-surface: #FFFFFF;
	--sileo-surface-sunken: #F7F8FA;
	--sileo-border: #E7E9EE;
	--sileo-border-soft: #F0F1F4;

	--sileo-success: #12805C;
	--sileo-success-soft: #E7F6EF;
	--sileo-warning: #B45309;
	--sileo-warning-soft: #FEF3E2;
	--sileo-danger: #C0293D;
	--sileo-danger-soft: #FCEAEC;
	--sileo-info: #1D5FC2;
	--sileo-info-soft: #E9F1FD;

	--sileo-shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
	--sileo-shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
	--sileo-shadow-md: 0 4px 10px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.04);
	--sileo-radius: 10px;
	--sileo-radius-sm: 7px;
}

/* Bootstrap's default striped-row tint is a raw black-at-3% overlay, which
   reads as a dirty smudge on our off-white surface rather than a deliberate
   tone. Tie it to the same neutral used for sunken surfaces everywhere else. */
.table {
	--bs-table-striped-bg: var(--sileo-surface-sunken);
}

:root[data-theme="dark"] {
	--sileo-ink: #F3F4F6;
	--sileo-ink-soft: #B4BAC6;
	--sileo-ink-faint: #7C8494;
	--sileo-surface: #1B1D23;
	--sileo-surface-sunken: #16171C;
	--sileo-border: #2B2E37;
	--sileo-border-soft: #23252C;
}

/* -------------------------- Base type & rhythm --------------------------- */

body {
	font-size: 13.5px;
	color: var(--sileo-ink-soft);
	letter-spacing: -0.005em;
}

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

.page-breadcrumb h2 {
	font-size: 17px;
	font-weight: 650;
}

a { transition: color .12s ease; }

/* ------------------------------ Surfaces ---------------------------------- */

.page-wrapper {
	background: var(--sileo-surface-sunken);
}

.card {
	border: 1px solid var(--sileo-border);
	border-radius: var(--sileo-radius);
	box-shadow: var(--sileo-shadow-xs);
	transition: box-shadow .15s ease, border-color .15s ease, transform .12s ease;
}

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

.card-header {
	border-bottom: 1px solid var(--sileo-border-soft);
	background: transparent;
}

.card-header h4, .card-header h5 {
	font-size: 14px;
	font-weight: 650;
	color: var(--sileo-ink);
}

/* KPI-style stat cards: quiet by default, subtle left accent on hover to feel alive */
.card-body h4, .card-body h3 {
	color: var(--sileo-ink);
	font-weight: 700;
	letter-spacing: -0.02em;
}

/* --------------------------------- Buttons -------------------------------- */

.btn {
	border-radius: var(--sileo-radius-sm);
	font-weight: 550;
	font-size: 13px;
	transition: transform .1s ease, box-shadow .15s ease, background-color .12s ease, border-color .12s ease;
}

.btn:active { transform: translateY(0.5px); }

.btn-primary {
	background: var(--sileo-accent);
	border-color: var(--sileo-accent);
	box-shadow: 0 1px 2px rgba(242, 101, 34, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
	background: var(--sileo-accent-dark);
	border-color: var(--sileo-accent-dark);
}

.btn-white, .btn-light {
	border-color: var(--sileo-border);
}

.btn-white:hover, .btn-light:hover {
	background: var(--sileo-surface-sunken);
	border-color: var(--sileo-border);
}

.action-icon a, .btn-icon {
	border-radius: var(--sileo-radius-sm);
	transition: background-color .12s ease, color .12s ease;
}

.action-icon a:hover, .btn-icon:hover {
	background: var(--sileo-surface-sunken);
	color: var(--sileo-accent);
}

/* --------------------------------- Badges --------------------------------- */
/* Soft pill badges (Linear-style) instead of solid saturated fills. */

.badge {
	border-radius: 999px;
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.01em;
	padding: 4px 10px;
}

.badge-success, .bg-success, .badge-soft-success, .bg-success-transparent {
	background: var(--sileo-success-soft) !important;
	color: var(--sileo-success) !important;
}

.badge-warning, .bg-warning, .badge-soft-warning, .bg-warning-transparent {
	background: var(--sileo-warning-soft) !important;
	color: var(--sileo-warning) !important;
}

.badge-danger, .bg-danger, .badge-soft-danger, .bg-danger-transparent {
	background: var(--sileo-danger-soft) !important;
	color: var(--sileo-danger) !important;
}

.badge-info, .bg-info, .badge-soft-info, .bg-info-transparent {
	background: var(--sileo-info-soft) !important;
	color: var(--sileo-info) !important;
}

.badge-primary, .badge-soft-primary, .bg-primary-transparent {
	background: var(--sileo-accent-soft) !important;
	color: var(--sileo-accent-dark) !important;
}

.badge i.ti-point-filled {
	font-size: 8px;
	vertical-align: middle;
}

/* Solid high-contrast count pill (sidebar "3", notification counts, etc.) —
   the soft badge-* classes above are for status pills and are too low-contrast
   for a small numeric count. */
.sileo-badge-count {
	background: var(--sileo-danger) !important;
	color: #fff !important;
}

/* ---------------------------------- Tables --------------------------------- */

.table thead th {
	font-size: 13px;
	font-weight: 650;
	color: var(--sileo-ink-faint);
	border-bottom: 1px solid var(--sileo-border);
	background: transparent;
}

.table td {
	color: var(--sileo-ink-soft);
	border-bottom: 1px solid var(--sileo-border-soft);
}

.table tbody tr {
	transition: background-color .1s ease;
}

.table tbody tr:hover {
	background: var(--sileo-surface-sunken);
}

.table td, .table th {
	white-space: nowrap;
}

/* ------------------------------- Avatars ----------------------------------- */

.avatar.avatar-rounded {
	box-shadow: 0 0 0 2px var(--sileo-surface);
}

/* ------------------------------- Progress ----------------------------------- */

.progress {
	border-radius: 999px;
	background: var(--sileo-border-soft);
}

.progress > .progress-bar {
	border-radius: 999px;
}

/* --------------------------------- Sidebar (CSS-only refinement) ------------ */
/* Base theme padding/margin tightened ~20% for a denser nav rail. */

.sidebar .slimScrollDiv {
	padding: 13px;
}

.sidebar .slimScrollDiv .sidebar-menu {
	padding: 0 0 13px;
}

.sidebar .sidebar-menu {
	padding: 0 13px;
}

.sidebar .sidebar-menu > ul > li {
	margin-bottom: 19px;
}

.sidebar .sidebar-menu > ul > li > a {
	padding: 8px 12px;
}

.sidebar .sidebar-menu > ul > li ul {
	margin-bottom: 15px;
}

.sidebar .sidebar-menu > ul > li ul li a {
	padding: 6px;
}

.sidebar .sidebar-menu > ul > li .submenu ul li a,
.sidebar .sidebar-menu > ul li .submenu > ul li a {
	padding-left: 26px;
}

.sidebar .sidebar-menu > ul li.menu-title {
	margin: 0 0 10px 0;
}

.sidebar .sidebar-menu > ul > li > a {
	border-radius: var(--sileo-radius-sm);
	transition: background-color .12s ease, color .12s ease;
}

.sidebar .sidebar-menu > ul > li > a:hover {
	background: rgba(242, 101, 34, 0.06);
}

.sidebar .sidebar-menu > ul > li > a.active,
.sidebar .sidebar-menu ul li a.active {
	background: var(--sileo-accent-soft);
	color: var(--sileo-accent-dark) !important;
	font-weight: 600;
}

.sidebar .sidebar-menu li.menu-title span {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--sileo-ink-faint);
}

/* -------------------------------- Forms ------------------------------------- */

.form-control, .form-select {
	border-radius: var(--sileo-radius-sm);
	border-color: var(--sileo-border);
	font-size: 13px;
}

.form-control:focus, .form-select:focus {
	border-color: var(--sileo-accent);
	box-shadow: 0 0 0 3px var(--sileo-accent-soft);
}

.form-label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--sileo-ink);
}

/* -------------------------------- Modals ------------------------------------ */

.modal-content {
	border-radius: var(--sileo-radius);
	border: 1px solid var(--sileo-border);
	box-shadow: var(--sileo-shadow-md);
}

.modal-header {
	border-bottom: 1px solid var(--sileo-border-soft);
}

.modal-footer {
	border-top: 1px solid var(--sileo-border-soft);
}

/* --------------------------- Role-select cards (login) ---------------------- */

.role-select-card {
	border-color: var(--sileo-border) !important;
	border-radius: var(--sileo-radius);
}

.role-select-card:hover {
	border-color: var(--sileo-accent) !important;
	background-color: var(--sileo-accent-soft) !important;
}

/* ------------------------- No-scroll tables ---------------------------------- */
/* The theme forces white-space:nowrap on all .table cells, which makes wide
   tables scroll horizontally inside .table-responsive. Tables flagged with
   .table-no-scroll wrap their cell content instead, so the table always fits
   its container width. */
.table-no-scroll { width: 100%; table-layout: auto; }
.table-no-scroll th,
.table-no-scroll td { white-space: normal; overflow-wrap: anywhere; }

/* ------------------------- KPI icon-badge cards ------------------------------ */
/* Colored rounded-square icon + big number + label, used on tasks.html / dashboards. */

/* KPI cards live inside grid rows that provide their own gutters -
   kill the theme's default card margin so KPI rows don't double-space. */
.card:has(> .sileo-kpi-card) { margin-bottom: 0; }

.sileo-kpi-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
}

.sileo-kpi-icon {
	width: 44px;
	height: 44px;
	min-width: 44px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 19px;
}

.sileo-kpi-icon.tone-purple { background: #EFEAFB; color: #6E4FDB; }
.sileo-kpi-icon.tone-orange { background: var(--sileo-accent-soft); color: var(--sileo-accent); }
.sileo-kpi-icon.tone-rose   { background: var(--sileo-danger-soft); color: var(--sileo-danger); }
.sileo-kpi-icon.tone-amber  { background: var(--sileo-warning-soft); color: var(--sileo-warning); }
.sileo-kpi-icon.tone-violet { background: #F1E9FB; color: #8A4FDB; }
.sileo-kpi-icon.tone-blue   { background: var(--sileo-info-soft); color: var(--sileo-info); }
.sileo-kpi-icon.tone-green  { background: var(--sileo-success-soft); color: var(--sileo-success); }
.sileo-kpi-icon.tone-slate  { background: var(--sileo-border-soft); color: var(--sileo-ink); }

/* Circular variant, used where the KPI row sits above a summary/preview card. */
.sileo-kpi-icon.circle { border-radius: 50%; }

.sileo-kpi-value {
	font-size: 22px;
	font-weight: 700;
	color: var(--sileo-ink);
	line-height: 1.1;
}

.sileo-kpi-label {
	font-size: 12px;
	color: var(--sileo-ink-faint);
	font-weight: 500;
}

/* --------------------------- Project overview cards -------------------------- */

.sileo-project-card {
	border: 1px solid var(--sileo-border);
	border-radius: var(--sileo-radius);
	padding: 14px;
	background: var(--sileo-surface);
	transition: border-color .12s ease, box-shadow .12s ease;
	cursor: pointer;
}

.sileo-project-card:hover {
	border-color: var(--sileo-accent);
	box-shadow: var(--sileo-shadow-sm);
}

.sileo-project-card.active {
	border-color: var(--sileo-accent);
	background: var(--sileo-accent-soft);
}

.sileo-project-icon {
	width: 38px;
	height: 38px;
	min-width: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: #fff;
}

.sileo-project-card .progress {
	height: 6px;
	margin-top: 8px;
}

/* --------------------------------- Tab nav w/ counts -------------------------- */

.sileo-tab-nav {
	display: flex;
	align-items: center;
	gap: 5px;
	border-bottom: 1px solid var(--sileo-border);
	overflow-x: auto;
}

.sileo-tab-nav .sileo-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 2px 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--sileo-ink-faint);
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	background: none;
	border-top: none;
	border-left: none;
	border-right: none;
}

.sileo-tab-nav .sileo-tab:hover {
	color: var(--sileo-ink);
}

.sileo-tab-nav .sileo-tab.active {
	color: var(--sileo-accent);
	border-bottom-color: var(--sileo-accent);
}

.sileo-tab-nav .sileo-tab .count {
	font-size: 11px;
	font-weight: 700;
	background: var(--sileo-border-soft);
	color: var(--sileo-ink-soft);
	border-radius: 999px;
	padding: 1px 7px;
}

.sileo-tab-nav .sileo-tab.active .count {
	background: var(--sileo-accent-soft);
	color: var(--sileo-accent-dark);
}

.sileo-tab-nav .sileo-tab.danger .count {
	background: var(--sileo-danger-soft);
	color: var(--sileo-danger);
}

/* --------------------------------- Filter pills ------------------------------- */

.sileo-filter-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid var(--sileo-border);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 550;
	color: var(--sileo-ink-soft);
	background: var(--sileo-surface);
	white-space: nowrap;
}

.sileo-filter-pill:hover {
	border-color: var(--sileo-ink-faint);
	color: var(--sileo-ink);
}

.sileo-filter-pill.active {
	border-color: var(--sileo-accent);
	color: var(--sileo-accent-dark);
	background: var(--sileo-accent-soft);
}

/* --------------------------------- Status action buttons ---------------------- */
/* Small circular Start/Pause/Resume/Complete buttons used on task rows. */

.sileo-status-btn {
	width: 30px;
	height: 30px;
	min-width: 30px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--sileo-border);
	color: var(--sileo-ink-faint);
	background: var(--sileo-surface);
	transition: transform .1s ease, box-shadow .12s ease;
}

.sileo-status-btn:hover {
	box-shadow: var(--sileo-shadow-sm);
	transform: translateY(-1px);
}

.sileo-status-btn.is-start {
	color: var(--sileo-ink-soft);
}

.sileo-status-btn.is-pause {
	background: var(--sileo-accent);
	border-color: var(--sileo-accent);
	color: #fff;
}

.sileo-status-btn.is-resume {
	background: var(--sileo-info);
	border-color: var(--sileo-info);
	color: #fff;
}

.sileo-status-btn.is-complete {
	background: var(--sileo-success);
	border-color: var(--sileo-success);
	color: #fff;
}

.sileo-status-btn.is-go {
	background: var(--sileo-success);
	border-color: var(--sileo-success);
	color: #fff;
}

/* --------------------------------- Sidebar promo card ------------------------- */

.sileo-sidebar-promo {
	border-radius: var(--sileo-radius);
	background: linear-gradient(160deg, var(--sileo-accent-soft) 0%, #FFF7F2 100%);
	border: 1px solid var(--sileo-border);
	padding: 14px;
}

.sileo-sidebar-promo .icon {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--sileo-accent);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
}

/* --------------------------------- Sidebar logo lockup ------------------------ */

.sileo-logo-lockup {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sileo-logo-lockup .mark {
	width: 40px;
	height: 40px;
}

.sileo-logo-lockup .wordmark {
	line-height: 1.15;
}

.sileo-logo-lockup .wordmark .brand {
	font-size: 17px;
	font-weight: 800;
	color: var(--sileo-ink);
	letter-spacing: -0.01em;
}

.sileo-logo-lockup .wordmark .brand .accent {
	color: var(--sileo-accent);
}

.sileo-logo-lockup .wordmark .tagline {
	font-size: 10px;
	color: var(--sileo-ink-faint);
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* --------------------------------- Misc -------------------------------------- */

::selection {
	background: var(--sileo-accent-soft);
	color: var(--sileo-accent-dark);
}

.dropdown-menu {
	border: 1px solid var(--sileo-border);
	border-radius: var(--sileo-radius);
	box-shadow: var(--sileo-shadow-md);
}

.dropdown-item:hover, .dropdown-item:focus {
	background: var(--sileo-surface-sunken);
}

.nav-tabs .nav-link.active,
.nav-pills .nav-link.active {
	color: var(--sileo-accent-dark);
	background: var(--sileo-accent-soft);
}

/* --------------------------------- Purple status badge ------------------------ */
/* Used for "In Progress" style states that need to read distinctly from the
   orange accent (e.g. DPR task status pills). */

.badge-purple, .bg-purple-transparent {
	background: #EFEAFB !important;
	color: #6E4FDB !important;
}

/* --------------------------------- Stat value color utilities ----------------- */
/* Color-coded KPI/stat values (capacity summaries, etc.) reusing design tokens. */

.text-sileo-blue   { color: var(--sileo-info) !important; }
.text-sileo-orange { color: var(--sileo-accent) !important; }
.text-sileo-purple { color: #6E4FDB !important; }

/* --------------------------------- Dropzone upload ----------------------------- */
/* Drag-and-drop file upload zone used wherever a file input is needed. */

.sileo-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 96px;
	padding: 14px 16px;
	border: 1.5px dashed var(--sileo-border);
	border-radius: var(--sileo-radius);
	background: var(--sileo-surface-sunken);
	text-align: center;
	cursor: pointer;
	transition: border-color .12s ease, background-color .12s ease;
}

.sileo-dropzone:hover {
	border-color: var(--sileo-ink-faint);
}

.sileo-dropzone.is-dragover {
	border-color: var(--sileo-accent);
	background: var(--sileo-accent-soft);
}

.sileo-dropzone .sileo-dropzone-icon {
	font-size: 22px;
	color: var(--sileo-ink-faint);
	margin-bottom: 2px;
}

.sileo-dropzone.is-dragover .sileo-dropzone-icon {
	color: var(--sileo-accent);
}

.sileo-dropzone .sileo-dropzone-text {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--sileo-ink-soft);
}

.sileo-dropzone .sileo-dropzone-hint {
	font-size: 11px;
	color: var(--sileo-ink-faint);
}

.sileo-dropzone-files {
	margin-top: 8px;
}

.sileo-dropzone-files:empty {
	margin-top: 0;
}

.sileo-dropzone-files .sileo-dropzone-file {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border: 1px solid var(--sileo-border-soft);
	border-radius: var(--sileo-radius-sm);
	background: var(--sileo-surface);
	font-size: 12px;
	color: var(--sileo-ink-soft);
	margin-bottom: 6px;
}

.sileo-dropzone-files .sileo-dropzone-file:last-child {
	margin-bottom: 0;
}

.sileo-dropzone-files .sileo-dropzone-file i.file-icon {
	color: var(--sileo-ink-faint);
	font-size: 14px;
}

.sileo-dropzone-files .sileo-dropzone-file .file-name {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sileo-dropzone-files .sileo-dropzone-file .file-remove {
	border: none;
	background: none;
	padding: 0;
	line-height: 1;
	color: var(--sileo-ink-faint);
	font-size: 14px;
	cursor: pointer;
}

.sileo-dropzone-files .sileo-dropzone-file .file-remove:hover {
	color: var(--sileo-danger);
}

/* ------------------------ Base theme customizer (disabled) ------------------ */
/* theme-script.js injects a fixed, vertically-centered cog tab (.sidebar-contact/
   .toggle-theme) on every page for the base template's color/layout switcher.
   Sileo PMS has its own fixed branding, and the tab's accent-orange background
   sits at the same viewport band as right-aligned table actions, visually fusing
   with .btn-primary controls (e.g. table "Review" buttons). Not used here — hide it. */
.sidebar-contact {
	display: none !important;
}

/* ------------------------ Scrollable modal fix ------------------------------ */
/* .modal-dialog-scrollable only works when .modal-header/.modal-body/.modal-footer
   are direct flex children of .modal-content. Every "Add/Edit" modal in this
   template wraps its body+footer in a bare <form> (and multi-tab modals add a
   Bootstrap .tab-content > .tab-pane layer on top of that), which breaks that
   flex chain: the form/tab wrapper grows to its natural content height instead
   of .modal-body scrolling, so tall forms get their footer/save button clipped
   off screen with no way to reach it. display:contents removes those wrapper
   elements from the box model so their children rejoin .modal-content's flex
   layout — scoped to inside scrollable modals only, so page-level tabs/forms
   elsewhere are untouched. Only the active tab-pane is targeted; inactive panes
   keep Bootstrap's display:none untouched (unrelated selector, doesn't compete).
   None of the modal <form> elements carry visual styling of their own (no
   border/background/padding), so nothing is lost visually. */
.modal-dialog-scrollable .modal-content > form,
.modal-dialog-scrollable .modal-content .tab-content {
	display: contents;
}

.modal-dialog-scrollable .modal-content .tab-pane.active {
	display: contents;
}

/* -------------------- Todo/Kanban segmented tab control ---------------------- */
/* Base theme renders the active pill as plain white — too low-contrast to read
   as "selected" against the bg-light track. Use the brand accent instead. */
.todo-tabs .nav-link.active {
	background: #F26522 !important;
	color: #FFF !important;
}

/* ------------------------------- Footer spacing ------------------------------ */
/* Base theme sets .content padding-bottom to 0, so the last card on any page
   sits flush against the footer with no breathing room. Restore the gap
   (theme already does this itself via an opt-in .content-two class — apply
   it by default instead of per-page). */
.page-wrapper .content {
	padding-bottom: 24px;
}

/* --------------------------- Modal/offcanvas close button --------------------------- */
/* Base theme renders this as a flat solid-gray circle that snaps straight to red
   on hover with no transition — heavy for a default (unpressed) state and abrupt
   on interaction. Give it a quiet neutral rest state (matches the soft-badge
   language used everywhere else) and an animated lift into the danger color. */
.modal-content .modal-header .custom-btn-close,
.custom-btn-close {
	width: 26px;
	height: 26px;
	background-color: var(--sileo-border-soft);
	color: var(--sileo-ink-faint);
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.modal-content .modal-header .custom-btn-close i,
.custom-btn-close i {
	font-size: 13px;
	transition: transform 0.15s ease;
}
.modal-content .modal-header .custom-btn-close:hover,
.custom-btn-close:hover {
	background-color: var(--sileo-danger) !important;
	color: #fff !important;
	transform: scale(1.08);
}
.modal-content .modal-header .custom-btn-close:hover i,
.custom-btn-close:hover i {
	transform: rotate(90deg);
}
.modal-content .modal-header .custom-btn-close:active,
.custom-btn-close:active {
	transform: scale(0.94);
}
.modal-content .modal-header .custom-btn-close:focus-visible,
.custom-btn-close:focus-visible {
	outline: 2px solid var(--sileo-accent);
	outline-offset: 2px;
}

/* Dark-header variants (offcanvas headers, .modal-header.bg-dark) need a
   translucent-white rest state instead — a light-gray circle reads as a
   washed-out smudge against a near-black background. */
.offcanvas-header .custom-btn-close,
.modal-header.bg-dark .custom-btn-close {
	background-color: rgba(255, 255, 255, 0.14);
	color: #fff;
}
.offcanvas-header .custom-btn-close:hover,
.modal-header.bg-dark .custom-btn-close:hover {
	background-color: var(--sileo-danger) !important;
}

[data-theme="dark"] .modal-content .modal-header .custom-btn-close,
[data-theme="dark"] .custom-btn-close {
	background-color: var(--sileo-border-soft);
	color: var(--sileo-ink-faint);
}
