/*// https://dev.to/coorasse/rails-7-bootstrap-5-and-importmaps-without-nodejs-4g8*/
/*// https://getbootstrap.com/docs/5.0/customize/css-variables/*/
/*// https://github.com/twbs/bootstrap-rubygem/blob/main/assets/stylesheets/bootstrap/_variables.scss*/

/*//$light: #EEF3F6 !default; // EEF3F6 e9ecef*/
/*//$font-size-base: 1.25rem !default; // Assumes the browser default, typically `16px`*/
/*//@import "bootstrap";*/

/*//@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.3/font/bootstrap-icons.css");*/

/* ============================================================
   BOOTSTRAP THEME OVERRIDES
   A modern, professional color palette with good contrast
   Delete this block to revert to Bootstrap defaults

   Palette:
   - Primary: Indigo (#5046e5) - trust, professionalism
   - Secondary: Slate (#475569) - neutral, sophisticated
   - Success: Emerald (#059669) - positive, growth
   - Warning: Amber (#d97706) - attention, caution
   - Danger: Rose (#e11d48) - errors, destructive actions
   - Info: Sky (#0284c7) - information, help
   ============================================================ */

:root {
  /* ---- TYPOGRAPHY ---- */
  /* Modern font stack with Inter as primary (add via Google Fonts if desired) */
  --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-size: 1rem;             /* 16px - standard readable size */
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.6;            /* More breathing room */
  --bs-body-color: #1e293b;              /* Dark slate - good readability */
  --bs-body-bg: #ffffff;
  --bs-heading-color: #0f172a;           /* Near black for headings */

  /* ---- SEMANTIC COLORS ---- */
  /* Primary - Indigo */
  --bs-primary: #5046e5;
  --bs-primary-rgb: 80, 70, 229;
  --bs-primary-text-emphasis: #3730a3;
  --bs-primary-bg-subtle: #eef2ff;
  --bs-primary-border-subtle: #c7d2fe;

  /* Secondary - Slate */
  --bs-secondary: #475569;
  --bs-secondary-rgb: 71, 85, 105;
  --bs-secondary-text-emphasis: #1e293b;
  --bs-secondary-bg-subtle: #f1f5f9;
  --bs-secondary-border-subtle: #cbd5e1;

  /* Success - Emerald */
  --bs-success: #059669;
  --bs-success-rgb: 5, 150, 105;
  --bs-success-text-emphasis: #065f46;
  --bs-success-bg-subtle: #ecfdf5;
  --bs-success-border-subtle: #a7f3d0;

  /* Warning - Amber */
  --bs-warning: #d97706;
  --bs-warning-rgb: 217, 119, 6;
  --bs-warning-text-emphasis: #92400e;
  --bs-warning-bg-subtle: #fffbeb;
  --bs-warning-border-subtle: #fde68a;

  /* Danger - Rose */
  --bs-danger: #e11d48;
  --bs-danger-rgb: 225, 29, 72;
  --bs-danger-text-emphasis: #9f1239;
  --bs-danger-bg-subtle: #fff1f2;
  --bs-danger-border-subtle: #fecdd3;

  /* Info - Sky */
  --bs-info: #0284c7;
  --bs-info-rgb: 2, 132, 199;
  --bs-info-text-emphasis: #075985;
  --bs-info-bg-subtle: #f0f9ff;
  --bs-info-border-subtle: #bae6fd;

  /* Light & Dark */
  --bs-light: #f8fafc;
  --bs-light-rgb: 248, 250, 252;
  --bs-dark: #1e293b;
  --bs-dark-rgb: 30, 41, 59;

  /* ---- LINKS ---- */
  --bs-link-color: #5046e5;
  --bs-link-color-rgb: 80, 70, 229;
  --bs-link-hover-color: #4338ca;
  --bs-link-hover-color-rgb: 67, 56, 202;
  --bs-link-decoration: none;            /* No underline by default - cleaner */

  /* ---- BORDERS ---- */
  --bs-border-color: #e2e8f0;            /* Softer border color */
  --bs-border-radius: 0.5rem;
  --bs-border-radius-sm: 0.375rem;
  --bs-border-radius-lg: 0.75rem;
  --bs-border-radius-xl: 1rem;

  /* ---- SHADOWS ---- */
  /* More subtle, modern shadows */
  --bs-box-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --bs-box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --bs-box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

  /* ---- FOCUS STATES ---- */
  --bs-focus-ring-width: 0.2rem;
  --bs-focus-ring-opacity: 0.2;
  --bs-focus-ring-color: rgba(80, 70, 229, 0.25);  /* Match primary */

  /* ---- GRAY SCALE (refined slate tones) ---- */
  --bs-gray-100: #f8fafc;
  --bs-gray-200: #f1f5f9;
  --bs-gray-300: #e2e8f0;
  --bs-gray-400: #cbd5e1;
  --bs-gray-500: #94a3b8;
  --bs-gray-600: #64748b;
  --bs-gray-700: #475569;
  --bs-gray-800: #334155;
  --bs-gray-900: #1e293b;
}

/* ---------------------- BUTTONS ---------------------- */

/* Primary */
.btn-primary {
  --bs-btn-bg: #5046e5;
  --bs-btn-border-color: #5046e5;
  --bs-btn-hover-bg: #4338ca;
  --bs-btn-hover-border-color: #4338ca;
  --bs-btn-focus-shadow-rgb: 80, 70, 229;
  --bs-btn-active-bg: #3730a3;
  --bs-btn-active-border-color: #3730a3;
  --bs-btn-disabled-bg: #5046e5;
  --bs-btn-disabled-border-color: #5046e5;
}

.btn-outline-primary {
  --bs-btn-color: #5046e5;
  --bs-btn-border-color: #5046e5;
  --bs-btn-hover-bg: #5046e5;
  --bs-btn-hover-border-color: #5046e5;
  --bs-btn-focus-shadow-rgb: 80, 70, 229;
  --bs-btn-active-bg: #5046e5;
  --bs-btn-active-border-color: #5046e5;
  --bs-btn-disabled-color: #5046e5;
  --bs-btn-disabled-border-color: #5046e5;
}

/* Secondary */
.btn-secondary {
  --bs-btn-bg: #475569;
  --bs-btn-border-color: #475569;
  --bs-btn-hover-bg: #334155;
  --bs-btn-hover-border-color: #334155;
  --bs-btn-focus-shadow-rgb: 71, 85, 105;
  --bs-btn-active-bg: #1e293b;
  --bs-btn-active-border-color: #1e293b;
  --bs-btn-disabled-bg: #475569;
  --bs-btn-disabled-border-color: #475569;
}

.btn-outline-secondary {
  --bs-btn-color: #475569;
  --bs-btn-border-color: #cbd5e1;
  --bs-btn-hover-bg: #f1f5f9;
  --bs-btn-hover-border-color: #94a3b8;
  --bs-btn-hover-color: #334155;
  --bs-btn-focus-shadow-rgb: 71, 85, 105;
  --bs-btn-active-bg: #e2e8f0;
  --bs-btn-active-border-color: #94a3b8;
  --bs-btn-active-color: #1e293b;
  --bs-btn-disabled-color: #94a3b8;
  --bs-btn-disabled-border-color: #e2e8f0;
}

/* Success */
.btn-success {
  --bs-btn-bg: #059669;
  --bs-btn-border-color: #059669;
  --bs-btn-hover-bg: #047857;
  --bs-btn-hover-border-color: #047857;
  --bs-btn-focus-shadow-rgb: 5, 150, 105;
  --bs-btn-active-bg: #065f46;
  --bs-btn-active-border-color: #065f46;
  --bs-btn-disabled-bg: #059669;
  --bs-btn-disabled-border-color: #059669;
}

.btn-outline-success {
  --bs-btn-color: #059669;
  --bs-btn-border-color: #059669;
  --bs-btn-hover-bg: #059669;
  --bs-btn-hover-border-color: #059669;
  --bs-btn-focus-shadow-rgb: 5, 150, 105;
  --bs-btn-active-bg: #059669;
  --bs-btn-active-border-color: #059669;
  --bs-btn-disabled-color: #059669;
  --bs-btn-disabled-border-color: #059669;
}

/* Warning */
.btn-warning {
  --bs-btn-bg: #d97706;
  --bs-btn-border-color: #d97706;
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: #b45309;
  --bs-btn-hover-border-color: #b45309;
  --bs-btn-hover-color: #fff;
  --bs-btn-focus-shadow-rgb: 217, 119, 6;
  --bs-btn-active-bg: #92400e;
  --bs-btn-active-border-color: #92400e;
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-bg: #d97706;
  --bs-btn-disabled-border-color: #d97706;
  --bs-btn-disabled-color: #fff;
}

.btn-outline-warning {
  --bs-btn-color: #b45309;
  --bs-btn-border-color: #d97706;
  --bs-btn-hover-bg: #d97706;
  --bs-btn-hover-border-color: #d97706;
  --bs-btn-hover-color: #fff;
  --bs-btn-focus-shadow-rgb: 217, 119, 6;
  --bs-btn-active-bg: #d97706;
  --bs-btn-active-border-color: #d97706;
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-color: #d97706;
  --bs-btn-disabled-border-color: #d97706;
}

/* Danger */
.btn-danger {
  --bs-btn-bg: #e11d48;
  --bs-btn-border-color: #e11d48;
  --bs-btn-hover-bg: #be123c;
  --bs-btn-hover-border-color: #be123c;
  --bs-btn-focus-shadow-rgb: 225, 29, 72;
  --bs-btn-active-bg: #9f1239;
  --bs-btn-active-border-color: #9f1239;
  --bs-btn-disabled-bg: #e11d48;
  --bs-btn-disabled-border-color: #e11d48;
}

.btn-outline-danger {
  --bs-btn-color: #e11d48;
  --bs-btn-border-color: #e11d48;
  --bs-btn-hover-bg: #e11d48;
  --bs-btn-hover-border-color: #e11d48;
  --bs-btn-focus-shadow-rgb: 225, 29, 72;
  --bs-btn-active-bg: #e11d48;
  --bs-btn-active-border-color: #e11d48;
  --bs-btn-disabled-color: #e11d48;
  --bs-btn-disabled-border-color: #e11d48;
}

/* Info */
.btn-info {
  --bs-btn-bg: #0284c7;
  --bs-btn-border-color: #0284c7;
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: #0369a1;
  --bs-btn-hover-border-color: #0369a1;
  --bs-btn-hover-color: #fff;
  --bs-btn-focus-shadow-rgb: 2, 132, 199;
  --bs-btn-active-bg: #075985;
  --bs-btn-active-border-color: #075985;
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-bg: #0284c7;
  --bs-btn-disabled-border-color: #0284c7;
  --bs-btn-disabled-color: #fff;
}

.btn-outline-info {
  --bs-btn-color: #0284c7;
  --bs-btn-border-color: #0284c7;
  --bs-btn-hover-bg: #0284c7;
  --bs-btn-hover-border-color: #0284c7;
  --bs-btn-hover-color: #fff;
  --bs-btn-focus-shadow-rgb: 2, 132, 199;
  --bs-btn-active-bg: #0284c7;
  --bs-btn-active-border-color: #0284c7;
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-color: #0284c7;
  --bs-btn-disabled-border-color: #0284c7;
}

/* ---------------------- ALERTS ---------------------- */

.alert-primary {
  --bs-alert-bg: #eef2ff;
  --bs-alert-border-color: #c7d2fe;
  --bs-alert-color: #3730a3;
}

.alert-secondary {
  --bs-alert-bg: #f1f5f9;
  --bs-alert-border-color: #cbd5e1;
  --bs-alert-color: #334155;
}

.alert-success {
  --bs-alert-bg: #ecfdf5;
  --bs-alert-border-color: #a7f3d0;
  --bs-alert-color: #065f46;
}

.alert-warning {
  --bs-alert-bg: #fffbeb;
  --bs-alert-border-color: #fde68a;
  --bs-alert-color: #92400e;
}

.alert-danger {
  --bs-alert-bg: #fff1f2;
  --bs-alert-border-color: #fecdd3;
  --bs-alert-color: #9f1239;
}

.alert-info {
  --bs-alert-bg: #f0f9ff;
  --bs-alert-border-color: #bae6fd;
  --bs-alert-color: #075985;
}

/* ---------------------- BADGES ---------------------- */

/* Badges */
.badge.bg-primary { background-color: #5046e5 !important; }
.badge.bg-secondary { background-color: #475569 !important; }
.badge.bg-success { background-color: #059669 !important; }
.badge.bg-warning { background-color: #d97706 !important; color: #fff !important; }
.badge.bg-danger { background-color: #e11d48 !important; }
.badge.bg-info { background-color: #0284c7 !important; color: #fff !important; }

/* Background utilities */
.bg-primary { background-color: #5046e5 !important; }
.bg-secondary { background-color: #475569 !important; }
.bg-success { background-color: #059669 !important; }
.bg-warning { background-color: #d97706 !important; }
.bg-danger { background-color: #e11d48 !important; }
.bg-info { background-color: #0284c7 !important; }

/* Text utilities */
.text-primary { color: #5046e5 !important; }
.text-secondary { color: #475569 !important; }
.text-success { color: #059669 !important; }
.text-warning { color: #d97706 !important; }
.text-danger { color: #e11d48 !important; }
.text-info { color: #0284c7 !important; }

/* Border utilities */
.border-primary { border-color: #5046e5 !important; }
.border-secondary { border-color: #475569 !important; }
.border-success { border-color: #059669 !important; }
.border-warning { border-color: #d97706 !important; }
.border-danger { border-color: #e11d48 !important; }
.border-info { border-color: #0284c7 !important; }

/* ---------------------- SPINNERS ---------------------- */

.spinner-border.text-primary, .spinner-grow.text-primary { color: #5046e5 !important; }
.spinner-border.text-secondary, .spinner-grow.text-secondary { color: #475569 !important; }
.spinner-border.text-success, .spinner-grow.text-success { color: #059669 !important; }
.spinner-border.text-warning, .spinner-grow.text-warning { color: #d97706 !important; }
.spinner-border.text-danger, .spinner-grow.text-danger { color: #e11d48 !important; }
.spinner-border.text-info, .spinner-grow.text-info { color: #0284c7 !important; }

/* ---------------------- LINKS ---------------------- */

a {
  color: #5046e5;
}
a:hover {
  color: #4338ca;
}

.link-primary { color: #5046e5 !important; }
.link-primary:hover, .link-primary:focus { color: #4338ca !important; }
.link-danger { color: #e11d48 !important; }
.link-danger:hover, .link-danger:focus { color: #be123c !important; }

/* ---------------------- PROGRESS ---------------------- */

.progress-bar {
  background-color: #5046e5;
}

/* ---------------------- LIST GROUPS ---------------------- */

.list-group-item {
  border-color: #e2e8f0;
  color: #1e293b;
}

.list-group-item.active {
  background-color: #5046e5;
  border-color: #5046e5;
}

.list-group-item-action:hover,
.list-group-item-action:focus {
  background-color: #f8fafc;
  color: #1e293b;
}

.list-group-item.disabled {
  color: #94a3b8;
}

/* ---------------------- NAV & TABS ---------------------- */

.nav-pills .nav-link.active {
  background-color: #5046e5;
}

.nav-link {
  color: #475569;
}
.nav-link:hover, .nav-link:focus {
  color: #5046e5;
}

.nav-tabs .nav-link.active {
  color: #5046e5;
  border-bottom-color: #5046e5;
}

/* ---------------------- PAGINATION ---------------------- */

.page-link {
  color: #5046e5;
}
.page-link:hover {
  color: #4338ca;
  background-color: #eef2ff;
}
.page-item.active .page-link {
  background-color: #5046e5;
  border-color: #5046e5;
}

/* ---------------------- FORMS ---------------------- */

.form-control:focus,
.form-select:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 0.2rem rgba(80, 70, 229, 0.15);
}

.form-check-input:checked {
  background-color: #5046e5;
  border-color: #5046e5;
}

.form-check-input:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 0.2rem rgba(80, 70, 229, 0.15);
}

.form-switch .form-check-input:checked {
  background-color: #5046e5;
}

/* Valid/Invalid states */
.form-control.is-valid:focus {
  border-color: #059669;
  box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.15);
}

.form-control.is-invalid:focus {
  border-color: #e11d48;
  box-shadow: 0 0 0 0.2rem rgba(225, 29, 72, 0.15);
}

.valid-feedback { color: #059669; }
.invalid-feedback { color: #e11d48; }

/* ---------------------- CARDS ---------------------- */

.card {
  border-color: #e2e8f0;
}

.card-header {
  background-color: #f8fafc;
  border-bottom-color: #e2e8f0;
}

.card-footer {
  background-color: #f8fafc;
  border-top-color: #e2e8f0;
}

/* ---------------------- TABLES ---------------------- */

.table {
  --bs-table-striped-bg: #f8fafc;
  --bs-table-hover-bg: #f1f5f9;
}

/* ---------------------- DROPDOWNS ---------------------- */

.dropdown-item.active,
.dropdown-item:active {
  background-color: #5046e5;
}

/* ---------------------- MODALS ---------------------- */

.modal-header {
  border-bottom-color: #e2e8f0;
}

.modal-footer {
  border-top-color: #e2e8f0;
}

/* ---------------------- BLOCKQUOTES ---------------------- */

.blockquote {
  padding-left: 1rem;
  border-left: 4px solid #e2e8f0;
  color: #475569;
}

.blockquote-footer {
  color: #64748b;
}

/* ---------------------- CODE ---------------------- */

code {
  color: #e11d48;
  background-color: #f8fafc;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

pre {
  background-color: #1e293b;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
}

pre code {
  color: inherit;
  background-color: transparent;
  padding: 0;
}

/* ---------------------- BREADCRUMBS ---------------------- */

.breadcrumb {
  background-color: transparent;
}

.breadcrumb-item a {
  color: #5046e5;
}

.breadcrumb-item a:hover {
  color: #4338ca;
}

.breadcrumb-item.active {
  color: #64748b;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #94a3b8;
}

/* ---------------------- ACCORDIONS ---------------------- */

.accordion-button {
  font-weight: 500;
  color: #1e293b;
}

.accordion-button:not(.collapsed) {
  background-color: #eef2ff;
  color: #5046e5;
}

.accordion-button:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 0.2rem rgba(80, 70, 229, 0.15);
}

.accordion-item {
  border-color: #e2e8f0;
}

/* ---------------------- INPUT GROUPS ---------------------- */

.input-group-text {
  background-color: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

/* ---------------------- DISABLED STATES ---------------------- */

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-control:disabled,
.form-select:disabled {
  background-color: #f1f5f9;
  color: #94a3b8;
}

/* ---------------------- TABLE BORDERS ---------------------- */

.table > :not(caption) > * > * {
  border-bottom-color: #e2e8f0;
}

.table-bordered > :not(caption) > * > * {
  border-color: #e2e8f0;
}

/* ---------------------- TOOLTIPS ---------------------- */

.tooltip-inner {
  background-color: #1e293b;
}

.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
  border-top-color: #1e293b;
}

.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
  border-bottom-color: #1e293b;
}

/* ---------------------- CLOSE BUTTON ---------------------- */

.btn-close:focus {
  box-shadow: 0 0 0 0.2rem rgba(80, 70, 229, 0.15);
}

/* ---------------------- TYPOGRAPHY ---------------------- */

h1, .h1 { font-size: 2.25rem; }    /* 36px */
h2, .h2 { font-size: 1.875rem; }   /* 30px */
h3, .h3 { font-size: 1.5rem; }     /* 24px */
h4, .h4 { font-size: 1.25rem; }    /* 20px */
h5, .h5 { font-size: 1.125rem; }   /* 18px */
h6, .h6 { font-size: 1rem; }       /* 16px */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 600;
  color: var(--bs-heading-color);
  letter-spacing: -0.025em;
}

.lead {
  font-size: 1.25rem;              /* 20px */
  color: #475569;
  font-weight: 400;
}

p {
  font-size: 1rem;                 /* 16px */
}

small, .small {
  font-size: 0.875rem;             /* 14px */
}

/* Muted text - ensure it's still readable */
.text-muted {
  color: #64748b !important;
}

/* Form labels */
.form-label {
  font-size: 0.9375rem;            /* 15px */
  font-weight: 500;
  color: #334155;
}

/* Table text */
.table {
  font-size: 0.9375rem;            /* 15px - slightly smaller for data density */
}

/* ---------------------- SHADOWS (elevated elements only) ---------------------- */

/* Cards - subtle static shadow, no hover effect */
.card {
  box-shadow: var(--bs-box-shadow-sm);
}

/* Floating/overlay elements - more prominent shadow */
.dropdown-menu {
  box-shadow: var(--bs-box-shadow-lg);
  border-color: var(--bs-border-color);
}

.modal-content {
  box-shadow: var(--bs-box-shadow-lg);
}

.toast {
  box-shadow: var(--bs-box-shadow);
}

.popover {
  box-shadow: var(--bs-box-shadow-lg);
}

.offcanvas {
  box-shadow: var(--bs-box-shadow-lg);
}

/* ---------------------- BUTTON REFINEMENTS ---------------------- */

.btn {
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.15s ease-in-out;
}

/* No shadows on buttons - modern flat design */
/* Hover uses color shift only, not elevation */

/* Light button - needs visible border */
.btn-light {
  --bs-btn-bg: #f8fafc;
  --bs-btn-border-color: #e2e8f0;
  --bs-btn-color: #334155;
  --bs-btn-hover-bg: #f1f5f9;
  --bs-btn-hover-border-color: #cbd5e1;
  --bs-btn-hover-color: #1e293b;
  --bs-btn-active-bg: #e2e8f0;
  --bs-btn-active-border-color: #94a3b8;
  --bs-btn-active-color: #1e293b;
  --bs-btn-disabled-bg: #f8fafc;
  --bs-btn-disabled-border-color: #e2e8f0;
  --bs-btn-disabled-color: #94a3b8;
}

/* Dark button - refined */
.btn-dark {
  --bs-btn-bg: #1e293b;
  --bs-btn-border-color: #1e293b;
  --bs-btn-hover-bg: #334155;
  --bs-btn-hover-border-color: #334155;
  --bs-btn-active-bg: #0f172a;
  --bs-btn-active-border-color: #0f172a;
  --bs-btn-disabled-bg: #1e293b;
  --bs-btn-disabled-border-color: #1e293b;
}

/* Outline light button - needs visible border on light backgrounds */
.btn-outline-light {
  --bs-btn-color: #475569;
  --bs-btn-border-color: #cbd5e1;
  --bs-btn-hover-color: #1e293b;
  --bs-btn-hover-bg: #f1f5f9;
  --bs-btn-hover-border-color: #94a3b8;
  --bs-btn-active-color: #1e293b;
  --bs-btn-active-bg: #e2e8f0;
  --bs-btn-active-border-color: #64748b;
  --bs-btn-disabled-color: #94a3b8;
  --bs-btn-disabled-border-color: #e2e8f0;
}

/* Outline dark button - refined */
.btn-outline-dark {
  --bs-btn-color: #1e293b;
  --bs-btn-border-color: #1e293b;
  --bs-btn-hover-bg: #1e293b;
  --bs-btn-hover-border-color: #1e293b;
  --bs-btn-active-bg: #0f172a;
  --bs-btn-active-border-color: #0f172a;
  --bs-btn-disabled-color: #64748b;
  --bs-btn-disabled-border-color: #64748b;
}

/* Link button - no shadow */
.btn-link {
  box-shadow: none;
}
.btn-link:hover {
  box-shadow: none;
  transform: none;
}

/* ---------------------- LINK STYLES ---------------------- */

/* Body links - underline on hover for accessibility */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Navigation/UI elements - never underline */
.btn,
.nav-link,
.dropdown-item,
.page-link,
.list-group-item,
.breadcrumb-item a,
.card a,
.sidebar-link {
  text-decoration: none !important;
}

/* ============================================================
   END BOOTSTRAP THEME OVERRIDES
   ============================================================ */

/*//!* universal *!*/

body {
  min-height: 960px;
}

.main-container, .section-container {
  min-height: 860px;
}

.main-container {
  display: flex;
  flex-direction: column;
}

.main-container > .row {
  flex: 1;
}

.pagination {
  margin-top: 15px;
  margin-bottom: 15px;
}

.pagination span {
  margin-right: 7px;
}

#chat_messages {
  max-height: 304px;
  overflow-x: hidden;
  overflow-y: scroll;
}

#chat_messages > div {
  width: 95%;
  margin: 15px auto;
}

.alert{
  margin-bottom: 0;
}

.bg-image-mangrove {
  background-image: url("/assets/mangrove.jpg");
  background-size: cover;
  background-repeat: no-repeat;
}

.max-pane {
  max-height: 250px;
  overflow-y: scroll;
}

/* Summaries */
.summary-box a {
  color: #1e293b;
  text-decoration: none;
}

.summary-box:hover {
  background-color: #f1f5f9;
  color: #1e293b;
}

.full-width {
  padding-left: 0;
  padding-right: 0;
}

/* Removed - conflicts with theme overrides above */

.password-field-icon-1 {
  position: absolute;
  top: 52%;
  right: 30px;
  transform: translateY(-76%);
  cursor: pointer;
}

/*.logo img {*/
/*  width: 50px;*/
/*  height: 50px;*/
/*  margin-right: 15px;*/
/*}*/

.resource {
  text-decoration: none; /* Remove underline */
  color: inherit; /* Inherit color from parent */
}

.resource:hover {
  text-decoration: none; /* Remove underline on hover */
  color: inherit; /* Inherit color from parent on hover */
  /*background-color: lightgray;*/
}

.nowrap {
  white-space: nowrap;
}

.overflow-y-scroll {
  max-height: 600px;
  overflow-y: auto;
}

.table-responsive tr {
  border-color: #e2e8f0;
}

.btn-close {
  font-size: 18px;
}

/* Use theme light color */
.bg-light {
  background-color: #f8fafc !important;
}

.home-card {
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-card:hover {
  box-shadow: var(--bs-box-shadow-lg);
  transform: translateY(-2px);
}

/* Sidebar navigation */
.sidebar-nav {
  position: sticky;
  top: 70px;
}

.sidebar-link {
  display: block;
  padding: 0.5rem 0.5rem;
  color: #212529;
  text-decoration: none;
  border-radius: 4px;
}

.sidebar-link:hover {
  background-color: #e9ecef;
  color: #212529;
  text-decoration: none;
}

.sidebar-link.active {
  background-color: #e2e6ea;
  font-weight: 500;
}

.sidebar-header {
  font-weight: 600;
  padding: 0.5rem;
  margin-bottom: 0.25rem;
  color: #495057;
}
