:root,
[data-bs-theme=light] {
    /* Brand Color Mapping */
  --color-brand-dark-sand: #ECE7E0;
  --color-brand-dark-sand-rgb: 236, 231, 224;
  --color-brand-light-sand: #FCF9F4;
  --color-brand-light-sand-rgb: 252, 249, 244;
  --color-brand-sand: #F7F3EE;
  --color-brand-sand-rgb: 247, 243, 238;
  --color-brand-dark-purple: #190041;
  --color-brand-dark-purple-rgb: 25, 0, 65;
  --color-brand-light-blue: #EEEFFE;
  --color-brand-light-blue-rgb: 238, 239, 254;
  --color-brand-dark-grey: #666666;
  --color-brand-dark-grey-rgb: 102, 102, 102;
  --color-brand-light-grey: var(--bs-gray-100);
  --color-brand-light-grey-rgb: 248, 249, 250;
  --color-brand-light-purple: #614796;
  --color-brand-light-purple-rgb: 97, 71, 150;

  --bs-blue: #0d6efd;
  --bs-indigo: #6610f2;
  --bs-purple: #6f42c1;
  --bs-pink: #d63384;
  --bs-red: #dc3545;
  --bs-orange: #fd7e14;
  --bs-yellow: #ffc107;
  --bs-green: #198754;
  --bs-teal: #20c997;
  --bs-cyan: #0dcaf0;
  --bs-black: #000;
  --bs-white: #fff;
  --bs-gray: #6c757d;
  --bs-gray-dark: #343a40;

  --bs-gray-100: #f8f9fa;
  --bs-gray-200: #e9ecef;
  --bs-gray-300: #dee2e6;
  --bs-gray-400: #ced4da;
  --bs-gray-500: #adb5bd;
  --bs-gray-600: #6c757d;
  --bs-gray-700: #495057;
  --bs-gray-800: #343a40;
  --bs-gray-900: #212529;

  --bs-primary: var(--color-brand-dark-purple);
  --bs-secondary: var(--color-brand-light-purple);
  --bs-success: #198754;
  --bs-info: var(--color-brand-light-purple);
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;

  --bs-primary-rgb: var(--color-brand-dark-purple-rgb);
  --bs-secondary-rgb: var(--color-brand-light-purple-rgb);
  --bs-success-rgb: 25, 135, 84;
  --bs-info-rgb: var(--color-brand-light-blue-rgb);
  --bs-warning-rgb: 255, 193, 7;
  --bs-danger-rgb: 220, 53, 69;
  --bs-light-rgb: var(--color-brand-sand-rgb);
  --bs-dark-rgb:  33, 37, 41;

  --bs-primary-text-emphasis: #052c65;
  --bs-secondary-text-emphasis: #2b2f32;
  --bs-success-text-emphasis: #0a3622;
  --bs-info-text-emphasis: #055160;
  --bs-warning-text-emphasis: #664d03;
  --bs-danger-text-emphasis: #58151c;
  --bs-light-text-emphasis: #495057;
  --bs-dark-text-emphasis: #495057;

  --bs-primary-bg-subtle: #cfe2ff;
  --bs-secondary-bg-subtle: #e2e3e5;
  --bs-success-bg-subtle: #d1e7dd;
  --bs-info-bg-subtle: #cff4fc;
  --bs-warning-bg-subtle: #fff3cd;
  --bs-danger-bg-subtle: #f8d7da;
  --bs-light-bg-subtle: var(--color-brand-light-sand-rgb);
  --bs-dark-bg-subtle: #ced4da;

  --bs-primary-border-subtle: #9ec5fe;
  --bs-secondary-border-subtle: #c4c8cb;
  --bs-success-border-subtle: #a3cfbb;
  --bs-info-border-subtle: #9eeaf9;
  --bs-warning-border-subtle: #ffe69c;
  --bs-danger-border-subtle: #f1aeb5;
  --bs-light-border-subtle: var(--color-brand-sand-rgb);
  --bs-dark-border-subtle: #adb5bd;

  --bs-white-rgb: 255, 255, 255;
  --bs-black-rgb: 0, 0, 0;

  --bs-font-sans-serif: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));

  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 0.875rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.5;
  --bs-body-color: #212529;
  --bs-body-color-rgb: 33, 37, 41;
  --bs-body-bg: #fff;
  --bs-body-bg-rgb: 255, 255, 255;

  --bs-emphasis-color: #000;
  --bs-emphasis-color-rgb: 0, 0, 0;

  --bs-secondary-color: rgba(33, 37, 41, 0.75);
  --bs-secondary-color-rgb: 33, 37, 41;
  --bs-secondary-bg: #e9ecef;
  --bs-secondary-bg-rgb: 233, 236, 239;

  --bs-tertiary-color: rgba(33, 37, 41, 0.5);
  --bs-tertiary-color-rgb: 33, 37, 41;
  --bs-tertiary-bg: #f8f9fa;
  --bs-tertiary-bg-rgb: 248, 249, 250;

  --bs-heading-color: inherit;

  --bs-link-color: #0d6efd;
  --bs-link-color-rgb: 13, 110, 253;
  --bs-link-decoration: underline;
  --bs-link-hover-color: #0a58ca;
  --bs-link-hover-color-rgb: 10, 88, 202;

  --bs-code-color: #d63384;

  --bs-highlight-color: #212529;
  --bs-highlight-bg: #fff3cd;

  --bs-border-width: 1px;
  --bs-border-style: solid;
  --bs-border-color: #dee2e6;
  --bs-border-color-translucent: rgba(0, 0, 0, 0.175);
  --bs-border-radius: 0.375rem;
  --bs-border-radius-sm: 0.25rem;
  --bs-border-radius-lg: 0.5rem;
  --bs-border-radius-xl: 1rem;
  --bs-border-radius-xxl: 2rem;
  --bs-border-radius-2xl: var(--bs-border-radius-xxl);
  --bs-border-radius-pill: 50rem;

  --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);

  --bs-focus-ring-width: 0.25rem;
  --bs-focus-ring-opacity: 0.25;
  --bs-focus-ring-color: rgba(13, 110, 253, 0.25);

  --bs-form-valid-color: #198754;
  --bs-form-valid-border-color: #198754;
  --bs-form-invalid-color: #dc3545;
  --bs-form-invalid-border-color: #dc3545;
}

html {
  overflow-y: scroll; /* Forces vertical scrollbar */
}

/* Table */
.table {
  --bs-table-striped-bg: var(--color-brand-light-sand);
  --bs-table-active-bg: var(--color-brand-light-sand);
  border-bottom: 1px solid var(--color-brand-dark-sand);
}
.table.table-bordered {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--color-brand-dark-sand);
  border-radius: var(--bs-border-radius);
  overflow: hidden;
}
.table-bordered>:not(caption)>*>* {
  border-left: none;
  border-right: none;
  border-top: 1px solid var(--color-brand-dark-sand);
}
.table-hover {
  --bs-table-hover-bg: var(--color-brand-light-sand);
}
.table-light {
  --bs-table-bg: var(--color-brand-dark-sand);
  --bs-table-border-color: var(--color-brand-dark-sand);
}

/* Text */
.text-bg-info {
  color: var(--bs-light-rgb) !important;
}

/* btn */
.btn-primary {
  --bs-btn-bg: var(--color-brand-dark-purple);
  --bs-btn-hover-bg: var(--color-brand-light-purple);
  --bs-btn-border-color: var(--color-brand-dark-purple);
  --bs-btn-hover-border-color: var(--color-brand-light-purple);
  --bs-btn-active-bg: var(--color-brand-light-purple);
  --bs-btn-disabled-bg: var(--color-brand-dark-grey);
  --bs-btn-disabled-border-color: var(--color-brand-dark-grey);
  --bs-btn-disabled-color: #fff;
}
.btn-secondary {
  --bs-btn-bg: var(--color-brand-light-purple);
  --bs-btn-hover-bg: var(--color-brand-dark-purple);
  --bs-btn-border-color: var(--color-brand-light-purple);
  --bs-btn-hover-border-color: var(--color-brand-dark-purple);
  --bs-btn-active-bg: var(--color-brand-dark-purple);
}
.btn-light {
  --bs-btn-bg: var(--color-brand-sand);
  --bs-btn-hover-bg: var(--color-brand-dark-sand);
  --bs-btn-border-color: var(--color-brand-sand);
  --bs-btn-hover-border-color: var(--color-brand-dark-sand);
  --bs-btn-active-bg: var(--color-brand-dark-sand);
  --bs-btn-active-border-color: var(--color-brand-dark-sand);
}
.btn-link {
  --bs-btn-hover-bg: var(--color-brand-dark-sand);
  --bs-btn-active-bg: var(--color-brand-dark-sand);
  --bs-btn-active-border-color: var(--color-brand-dark-sand);
}
.btn-danger {
  --bs-btn-bg: #fff;
  --bs-btn-color: var(--bs-danger);
  --bs-btn-hover-bg: var(--bs-danger);
  --bs-btn-border-color: var(--bs-danger);
  --bs-btn-hover-border-color: var(--bs-danger);
  --bs-btn-disabled-bg: #fff;
  --bs-btn-disabled-border-color: var(--color-brand-dark-grey);
  --bs-btn-disabled-color: var(--color-brand-dark-grey);
}

/* btn-outline */
.btn-outline-primary {
  --bs-btn-bg: #fff;
  --bs-btn-color: var(--color-brand-dark-purple);
  --bs-btn-hover-bg: var(--color-brand-dark-purple);
  --bs-btn-border-color: var(--color-brand-dark-grey);
  --bs-btn-hover-border-color: var(--color-brand-dark-purple);
  --bs-btn-hover-color: #fff;
  --bs-btn-disabled-bg: var(--color-brand-dark-grey);
  --bs-btn-disabled-border-color: var(--color-brand-dark-grey);
  --bs-btn-disabled-color: #fff;
  --bs-btn-active-bg: var(--color-brand-dark-purple);
  --bs-btn-active-border-color: var(--color-brand-dark-purple);
  --bs-btn-active-color: #fff;
}

/* Font size */
.fs-1 {
  font-size: 1.5rem !important;
}
.fs-2 {
  font-size: 1.2rem !important;
}
.fs-3 {
  font-size: 1rem !important;
}
.fs-4 {
  font-size: var(--bs-body-font-size) !important;
}
.fs-5 {
  font-size: 0.8rem !important;
}
.fs-6 {
  font-size: 0.7rem !important;
}



/* Optional: Keep heading overrides if you want custom sizes */
h1 {
  font-size: 2.5rem !important;
  font-weight: 600;
}
h2 {
  font-size: 2rem !important;
  font-weight: 600;
}
h3 {
  font-size: 1.5rem !important;
  font-weight: 600;
}
h4 {
  font-size: 1rem !important;
  font-weight: 600;
}

a.text-secondary:hover i {
  color: var(--color-brand-dark-purple);
}

.dropdown-menu {
  --bs-dropdown-link-active-bg: var(--color-brand-dark-purple);
}

.nav-link.dropdown-toggle::after {
  display: none;
}

/* List group */
.list-group-item.list-group-item-action {
  border-radius: var(--bs-border-radius);
}
.list-group-item-light {
  background-color: var(--color-brand-light-sand);
}

.list-group-item-light.active {
  background-color: var(--color-brand-dark-sand);
}

.list-group-item-light:hover {
  background-color: var(--color-brand-dark-sand);
}