/*
 * AERO dark theme: readable status colours.
 * Bootstrap's "subtle" badges and alerts are pastel boxes made for light pages; on the portal's dark pages they show
 * as white boxes with faint text. Inside .wz-aero they become dark tinted surfaces with bright text and a coloured
 * border, so every status stays legible (text contrast well above WCAG AA on these backgrounds).
 * Scoped to .wz-aero: the public website's light pages are unaffected.
 */

.wz-aero .bg-success-subtle { background-color: rgba(6, 78, 59, 0.6) !important; color: #a7f3d0 !important; border-color: rgba(52, 211, 153, 0.65) !important; }
.wz-aero .bg-warning-subtle { background-color: rgba(120, 53, 15, 0.6) !important; color: #fde68a !important; border-color: rgba(251, 191, 36, 0.65) !important; }
.wz-aero .bg-danger-subtle { background-color: rgba(127, 29, 29, 0.6) !important; color: #fecaca !important; border-color: rgba(248, 113, 113, 0.65) !important; }
.wz-aero .bg-info-subtle { background-color: rgba(8, 47, 73, 0.65) !important; color: #bae6fd !important; border-color: rgba(56, 189, 248, 0.6) !important; }
.wz-aero .bg-primary-subtle { background-color: rgba(30, 58, 138, 0.6) !important; color: #bfdbfe !important; border-color: rgba(96, 165, 250, 0.6) !important; }
.wz-aero .bg-secondary-subtle { background-color: rgba(30, 41, 59, 0.8) !important; color: #e2e8f0 !important; border-color: rgba(148, 163, 184, 0.5) !important; }

.wz-aero .bg-success-subtle,
.wz-aero .bg-warning-subtle,
.wz-aero .bg-danger-subtle,
.wz-aero .bg-info-subtle,
.wz-aero .bg-primary-subtle,
.wz-aero .bg-secondary-subtle {
    border-style: solid;
    border-width: 1px;
    font-weight: 600;
}

/* Alerts: tinted panels with bright text instead of pastel boxes. */
.wz-aero .alert-success { background-color: rgba(6, 78, 59, 0.42); color: #a7f3d0; border: 1px solid rgba(52, 211, 153, 0.5); }
.wz-aero .alert-warning { background-color: rgba(120, 53, 15, 0.42); color: #fde68a; border: 1px solid rgba(251, 191, 36, 0.5); }
.wz-aero .alert-danger { background-color: rgba(127, 29, 29, 0.45); color: #fecaca; border: 1px solid rgba(248, 113, 113, 0.5); }
.wz-aero .alert-info { background-color: rgba(8, 47, 73, 0.55); color: #bae6fd; border: 1px solid rgba(56, 189, 248, 0.45); }
.wz-aero .alert-secondary { background-color: rgba(30, 41, 59, 0.7); color: #e2e8f0; border: 1px solid rgba(148, 163, 184, 0.4); }

.wz-aero .alert a:not(.btn) { color: inherit; text-decoration: underline; font-weight: 600; }
.wz-aero .alert .btn-close { filter: invert(1) grayscale(1) brightness(1.6); }

/* ==========================================================================
 * AERO dark palette for Bootstrap 5.3 inside .wz-aero (every portal page gets it from the layout).
 * Bootstrap draws cards, tables, modals, forms, dropdowns, list groups and borders from these variables,
 * so anything a view left unstyled renders dark instead of the stock white.
 * ========================================================================== */
.wz-aero {
    color-scheme: dark;
    --bs-body-color: #e2e8f0;
    --bs-body-color-rgb: 226, 232, 240;
    --bs-body-bg: #0b1322;
    --bs-body-bg-rgb: 11, 19, 34;
    --bs-emphasis-color: #f8fafc;
    --bs-emphasis-color-rgb: 248, 250, 252;
    --bs-secondary-color: rgba(203, 213, 225, 0.8);
    --bs-secondary-color-rgb: 203, 213, 225;
    --bs-secondary-bg: #111c2e;
    --bs-secondary-bg-rgb: 17, 28, 46;
    --bs-tertiary-color: rgba(203, 213, 225, 0.6);
    --bs-tertiary-bg: #0f1a2b;
    --bs-tertiary-bg-rgb: 15, 26, 43;
    --bs-heading-color: #f8fafc;
    --bs-link-color: #38bdf8;
    --bs-link-color-rgb: 56, 189, 248;
    --bs-link-hover-color: #00c9b1;
    --bs-link-hover-color-rgb: 0, 201, 177;
    --bs-code-color: #5eead4;
    --bs-border-color: #334155;
    --bs-border-color-translucent: rgba(148, 163, 184, 0.22);
    --bs-form-control-bg: #070d18;
    --bs-form-control-disabled-bg: rgba(30, 41, 59, 0.55);
}

.wz-portal { background-color: #060a12; min-height: 70vh; }
body:has(.wz-portal) { background-color: #060a12; }

/* Utilities that ignore the palette and stay white or light: remap them. */
.wz-aero .bg-white,
.wz-aero .bg-body { background-color: #0b1322 !important; }
.wz-aero .bg-light,
.wz-aero .bg-body-secondary,
.wz-aero .bg-body-tertiary { background-color: #111c2e !important; }
.wz-aero .text-dark:not(.badge):not(.btn):not([class*="bg-warning"]):not([class*="bg-info"]):not([class*="bg-white"]),
.wz-aero .text-black,
.wz-aero .text-body { color: #e2e8f0 !important; }
.wz-aero .bg-warning .text-dark, .wz-aero .bg-info .text-dark { color: #0b1322 !important; }

.wz-aero .badge.bg-light { background-color: #1e293b !important; color: #e2e8f0 !important; border: 1px solid #334155 !important; }
.wz-aero .badge.bg-light.text-dark, .wz-aero .badge.bg-light.text-muted { color: #e2e8f0 !important; }

.wz-aero .btn-light {
    --bs-btn-bg: #1e293b; --bs-btn-color: #e2e8f0; --bs-btn-border-color: #334155;
    --bs-btn-hover-bg: #273449; --bs-btn-hover-color: #ffffff; --bs-btn-hover-border-color: #00c9b1;
    --bs-btn-disabled-bg: #111c2e; --bs-btn-disabled-color: #94a3b8; --bs-btn-disabled-border-color: #1e293b;
}

.wz-aero .table-light,
.wz-aero .table > .table-light,
.wz-aero tr.table-light {
    --bs-table-bg: #111c2e;
    --bs-table-color: #94a3b8;
    --bs-table-border-color: #334155;
    --bs-table-striped-bg: #111c2e;
    --bs-table-hover-bg: #16233a;
    --bs-table-hover-color: #ffffff;
    --bs-table-active-bg: #16233a;
    color: #94a3b8;
    border-color: #334155;
}

.wz-aero .form-control,
.wz-aero .form-select { background-color: #070d18; color: #f8fafc; border-color: #334155; }
.wz-aero .form-control:focus,
.wz-aero .form-select:focus { background-color: #070d18; color: #f8fafc; border-color: #00c9b1; box-shadow: 0 0 0 0.2rem rgba(0, 201, 177, 0.22); }
.wz-aero .form-control::placeholder { color: #64748b; }
.wz-aero .form-control:disabled, .wz-aero .form-control[readonly] { background-color: rgba(30, 41, 59, 0.55); color: #cbd5e1; }
.wz-aero .input-group-text { background-color: #111c2e; color: #94a3b8; border-color: #334155; }

.wz-aero .modal-content { border: 1px solid #334155; box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6); }
.wz-aero .modal-header, .wz-aero .modal-footer { border-color: #1e293b; }
.wz-aero .modal .btn-close,
.wz-aero .card .btn-close { filter: invert(1) grayscale(1) brightness(1.6); }

.wz-aero .nav-tabs { --bs-nav-tabs-link-active-bg: #0b1322; --bs-nav-tabs-link-active-color: #f8fafc; --bs-nav-tabs-border-color: #334155; --bs-nav-tabs-link-active-border-color: #334155 #334155 #0b1322; }
.wz-aero .nav-tabs .nav-link:not(.active) { color: #94a3b8; }
.wz-aero .dropdown-menu { --bs-dropdown-bg: #0b1322; --bs-dropdown-color: #e2e8f0; --bs-dropdown-border-color: #334155; --bs-dropdown-link-color: #e2e8f0; --bs-dropdown-link-hover-bg: #16233a; --bs-dropdown-link-hover-color: #ffffff; }
.wz-aero .list-group { --bs-list-group-bg: #0b1322; --bs-list-group-color: #e2e8f0; --bs-list-group-border-color: #1e293b; --bs-list-group-action-hover-bg: #16233a; }
.wz-aero .progress { --bs-progress-bg: #1e293b; }
.wz-aero .accordion { --bs-accordion-bg: #0b1322; --bs-accordion-color: #e2e8f0; --bs-accordion-border-color: #1e293b; --bs-accordion-button-active-bg: #111c2e; --bs-accordion-button-active-color: #f8fafc; }
.wz-aero .page-link { --bs-pagination-bg: #070d18; }
.wz-aero pre, .wz-aero kbd { background-color: #070d18; color: #5eead4; border: 1px solid #334155; }

/* Top navigation bar on portal pages: AERO navy instead of the marketing teal/blue, at rest and when scrolled. */
#header.wz-header-aero,
#header.wz-header-aero.header-transparent,
#header.wz-header-aero.header-scrolled {
    background: rgba(6, 10, 18, 0.94) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1e293b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

#header.wz-header-aero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8 0%, #00c9b1 50%, #a855f7 100%);
    opacity: 0.75;
    pointer-events: none;
}

#header.wz-header-aero .navbar > ul > li > a,
#header.wz-header-aero .navbar > ul > li > a:focus { color: #e2e8f0; }

#header.wz-header-aero .navbar > ul > li > a:hover,
#header.wz-header-aero .navbar > ul > li:hover > a,
#header.wz-header-aero .navbar > ul > li > .active {
    background: rgba(0, 201, 177, 0.12) !important;
    color: #5eead4 !important;
    border-radius: 8px;
}

/* Bootstrap's "dark" pieces are charcoal (#212529), which reads as grey next to AERO navy.
 * Inside .wz-aero they use the navy palette instead. */
.wz-aero .table-dark {
    --bs-table-bg: #070d18;
    --bs-table-color: #e2e8f0;
    --bs-table-border-color: #1e293b;
    --bs-table-striped-bg: #0b1322;
    --bs-table-striped-color: #e2e8f0;
    --bs-table-hover-bg: rgba(56, 189, 248, 0.07);
    --bs-table-hover-color: #ffffff;
    --bs-table-active-bg: #111c2e;
    --bs-table-active-color: #ffffff;
    border-color: #1e293b;
}
.wz-aero .table-dark > thead > tr > th { background-color: #0a1120; color: #94a3b8; border-bottom-color: #1e293b; }

.wz-aero .bg-dark:not(.badge) { background-color: #0b1322 !important; }
.wz-aero .form-control.bg-dark,
.wz-aero .form-select.bg-dark,
.wz-aero .input-group-text.bg-dark { background-color: #070d18 !important; }
.wz-aero .border-secondary { border-color: #1e293b !important; }
.wz-aero .badge.bg-dark { background-color: #111c2e !important; border: 1px solid #334155; }

/* Public framework tables (Services, Industries, AERO Platform). Bootstrap's .table-dark paints every cell
   charcoal (#212529); these tables sit on AERO navy instead, with a quiet row hover. */
.matrix-table .table {
    --bs-table-bg: transparent;
    --bs-table-color: #cbd5e1;
    --bs-table-border-color: #152033;
    --bs-table-hover-bg: rgba(56, 189, 248, 0.05);
    --bs-table-hover-color: #e2e8f0;
    background-color: transparent;
}
.matrix-table .table > tbody > tr > td { background-color: #070d18; }
.matrix-table .table > tbody > tr:nth-child(even) > td { background-color: #0a1120; }
.matrix-table .table > tbody > tr:hover > td { background-color: #0d1729; }
