/* Overrides on top of the Seven theme bundle - kept separate so theme updates don't clobber them. */

:root,
[data-bs-theme="light"],
[data-bs-theme="dark"] {
	--bs-aside-bg-color-primary: #0c192a !important;
}

/* Primary brand color, overriding the theme's default purple. The theme drives
   buttons/badges/alerts/focus-rings off these per-mode custom properties rather than
   plain --bs-primary alone, so all of them need to move together or hover/active
   states would still show the old purple. */
:root,
[data-bs-theme="light"] {
	--bs-primary: #335d77 !important;
	--bs-primary-rgb: 51, 93, 119 !important;
	--bs-primary-active: #294a5f !important;
	--bs-primary-light: #e7ecef !important;
	--bs-primary-inverse: #ffffff !important;
	--bs-primary-clarity: rgba(51, 93, 119, 0.2) !important;
	--bs-primary-text-emphasis: #172a36 !important;
	--bs-primary-bg-subtle: #e7ecef !important;
	--bs-primary-border-subtle: #c3ced6 !important;
}

[data-bs-theme="dark"] {
	--bs-primary: #335d77 !important;
	--bs-primary-rgb: 51, 93, 119 !important;
	--bs-primary-active: #5c7d92 !important;
	--bs-primary-light: #1c2b33 !important;
	--bs-primary-inverse: #ffffff !important;
	--bs-primary-clarity: rgba(51, 93, 119, 0.2) !important;
	--bs-primary-text-emphasis: #a4b6c2 !important;
	--bs-primary-bg-subtle: #16232a !important;
	--bs-primary-border-subtle: #2f4854 !important;
}

/* Pagination (e.g. the dashboard datatable) uses --bs-component-active-bg for the
   current page's background, which is hardcoded to the theme's purple rather than
   tied to --bs-primary - scoped here instead of overriding that shared variable
   globally, since it's also used by unrelated components (nav-pills, list-group). */
.pagination {
	--bs-pagination-active-bg: var(--bs-primary) !important;
	--bs-pagination-hover-color: var(--bs-primary) !important;
}
