/* ==========================================================================
   ZeetSoft Website — Theme Toggle & Dark Theme
   Default remains light; enabled when <html data-theme="dark">.
   ========================================================================== */

.zs-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 12px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    cursor: pointer;
    font: 600 12.5px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #183b51;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(23, 103, 142, .18);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(23, 103, 142, .1);
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.zs-theme-toggle:hover {
    background: #e4f3f8;
    border-color: rgba(23, 103, 142, .35);
}

.zs-theme-toggle:focus-visible {
    outline: 2px solid #17678e;
    outline-offset: 2px;
}

.zs-theme-toggle__icon {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

.zs-theme-toggle__icon--sun { display: none; }
html[data-theme="dark"] .zs-theme-toggle__icon--sun { display: block; }
html[data-theme="dark"] .zs-theme-toggle__icon--moon { display: none; }

@media (max-width: 575px) {
    .zs-theme-toggle { height: 36px; padding: 0 9px; }
    .zs-theme-toggle__label { display: none; }
}

/* ── Dark Theme Surface Palette ──────────────────────────────────────────── */
html[data-theme="dark"] {
    color-scheme: dark;
    --zs-dk-bg: #0d1219;
    --zs-dk-surface: #141c27;
    --zs-dk-surface-2: #1b2534;
    --zs-dk-border: #273447;
    --zs-dk-text: #e6edf5;
    --zs-dk-muted: #9fb0c3;
    --zs-dk-link: #60b8f0;
    --zs-dk-gold: #edac15;
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] .boxed-container,
html[data-theme="dark"] .content-area,
html[data-theme="dark"] .site-main,
html[data-theme="dark"] main,
html[data-theme="dark"] .hentry__container {
    background-color: var(--zs-dk-bg) !important;
    color: var(--zs-dk-text) !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
    color: #f3f7fb;
}

html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] td,
html[data-theme="dark"] th,
html[data-theme="dark"] label {
    color: var(--zs-dk-text);
}

html[data-theme="dark"] a {
    color: var(--zs-dk-link);
}

/* Header & top bar */
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-header.site-header,
html[data-theme="dark"] .header,
html[data-theme="dark"] .header__logo {
    background-color: #111823 !important;
}

/* Remove StructurePress white slanted decorative tabs in dark mode */
html[data-theme="dark"] .top::before,
html[data-theme="dark"] .top::after,
html[data-theme="dark"] .top__container::before,
html[data-theme="dark"] .top__container::after,
html[data-theme="dark"] .header::before,
html[data-theme="dark"] .header::after,
html[data-theme="dark"] .header .container::before,
html[data-theme="dark"] .header .container::after,
html[data-theme="dark"] .header__logo::before,
html[data-theme="dark"] .header__logo::after,
html[data-theme="dark"] .footer-bottom::before,
html[data-theme="dark"] .footer-bottom::after,
html[data-theme="dark"] .footer-bottom__left::before,
html[data-theme="dark"] .footer-bottom__right::after {
    display: none !important;
}

/* Keep hero & primary CTA button labels high-contrast (don't let generic dark link color override them) */
html[data-theme="dark"] a.btn-primary,
html[data-theme="dark"] a.btn-tertiary {
    color: #0f172a !important;
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-header.site-header {
    border-bottom: 1px solid var(--zs-dk-border);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
}

/* Keep the tagline from colliding with the flags + theme toggle on medium/desktop widths */
@media (min-width: 992px) {
    .site-header .country-links {
        margin-right: 0 !important;
    }
    .site-header .top__tagline {
        left: 38% !important;
    }
}

html[data-theme="dark"] .top {
    background-color: #0b1017 !important;
    color: var(--zs-dk-muted) !important;
    border-bottom: 1px solid var(--zs-dk-border);
}

html[data-theme="dark"] .top::before,
html[data-theme="dark"] .top::after {
    background-color: #111823 !important;
}

html[data-theme="dark"] .top__tagline,
html[data-theme="dark"] .top__tagline b {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .country-links,
html[data-theme="dark"] .zs-theme-toggle {
    background: rgba(20, 28, 39, .92);
    border-color: rgba(148, 163, 184, .24);
    color: #e6edf5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .country-links a:hover,
html[data-theme="dark"] .zs-theme-toggle:hover {
    background: #233145;
    border-color: rgba(96, 184, 240, .45);
}

html[data-theme="dark"] .country-links a[aria-current="true"] {
    background: #233145;
    box-shadow: 0 0 0 1px rgba(96, 184, 240, .55), 0 3px 10px rgba(0, 0, 0, .35);
}

/* Brand marks are transparent artwork drawn for a white page. No white tile behind them in dark;
   geometry stays exactly as in light.
   The ZeetSoft mark has no black in it, so it is only brightened: the teal lifts off the dark page
   and the red stays red (flipping its lightness turned it pink). */
html[data-theme="dark"] .header__logo img,
html[data-theme="dark"] .textwidget img[src*="signature"] {
    filter: brightness(1.7) saturate(.9);
}

/* Module wordmarks carry black lettering: lightness flipped, hue turned back, so the black reads
   white and the mark keeps its colour. */
html[data-theme="dark"] .module-card__brand img,
html[data-theme="dark"] .zs-module__logo,
html[data-theme="dark"] .zs-solution img {
    filter: invert(1) hue-rotate(180deg);
}

html[data-theme="dark"] .header__country.is-loaded {
    color: #e6edf5;
}

/* Illustrations saved with a white background (service tiles): same flip, and "screen" drops
   what is now black, so the drawing sits on the page instead of in a white box. */
html[data-theme="dark"] #pg-11-0 .page-box__picture {
    background: var(--zs-dk-surface);
    border-color: var(--zs-dk-border);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] #pg-11-0 .page-box__picture:hover {
    border-color: rgba(96, 184, 240, .45);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .48);
}

html[data-theme="dark"] .page-box__picture img {
    filter: invert(1) hue-rotate(180deg);
    mix-blend-mode: screen;
}

html[data-theme="dark"] .header__navigation {
    background-color: transparent !important;
}

html[data-theme="dark"] .main-navigation > .menu-item > a,
html[data-theme="dark"] .home-icon,
html[data-theme="dark"] .home-icon .fa {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .main-navigation > .menu-item > a:hover,
html[data-theme="dark"] .home-icon:hover {
    color: var(--zs-dk-gold) !important;
}

html[data-theme="dark"] .main-navigation .sub-menu {
    background-color: var(--zs-dk-surface) !important;
    border: 1px solid var(--zs-dk-border) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
}

html[data-theme="dark"] .main-navigation .sub-menu > li > a {
    background-color: transparent !important;
    color: var(--zs-dk-text) !important;
    border-color: var(--zs-dk-border) !important;
}

html[data-theme="dark"] .main-navigation .sub-menu > li > a:hover {
    background-color: var(--zs-dk-surface-2) !important;
    color: var(--zs-dk-gold) !important;
}

html[data-theme="dark"] .header__monument {
    opacity: .62;
    filter: brightness(.82) contrast(1.05);
}

/* Module search & cards (Home / Index.razor) */
html[data-theme="dark"] .module-filter,
html[data-theme="dark"] .module-search,
html[data-theme="dark"] .module-card,
html[data-theme="dark"] .custom-solution-banner,
html[data-theme="dark"] .zs-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .well,
html[data-theme="dark"] .modal-content {
    background: var(--zs-dk-surface) !important;
    border-color: var(--zs-dk-border) !important;
    color: var(--zs-dk-text) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35) !important;
}

html[data-theme="dark"] .module-filter label,
html[data-theme="dark"] .module-search label,
html[data-theme="dark"] .module-card__name,
html[data-theme="dark"] .module-card__number,
html[data-theme="dark"] .zs-service h2,
html[data-theme="dark"] .zs-service .zs-card h3 {
    color: #f3f7fb !important;
}

html[data-theme="dark"] .module-filter__controls button,
html[data-theme="dark"] .module-search button {
    background: var(--zs-dk-surface-2) !important;
    border-color: var(--zs-dk-border) !important;
    color: var(--zs-dk-text) !important;
}

html[data-theme="dark"] .module-filter__controls button:disabled {
    opacity: .55;
    color: var(--zs-dk-muted) !important;
}

html[data-theme="dark"] #module-search-status,
html[data-theme="dark"] .module-card__desc,
html[data-theme="dark"] .module-card__features li,
html[data-theme="dark"] .zs-service .zs-caption,
html[data-theme="dark"] .text-muted {
    color: var(--zs-dk-muted) !important;
}

html[data-theme="dark"] .module-card__login {
    background: var(--zs-dk-surface-2) !important;
    border-color: var(--zs-dk-border) !important;
    color: var(--zs-dk-link) !important;
}

html[data-theme="dark"] .module-card__login:hover {
    background: #233349 !important;
    color: #fff !important;
}

html[data-theme="dark"] .module-card__divider,
html[data-theme="dark"] hr {
    border-color: var(--zs-dk-border) !important;
}

/* Inputs, selects, buttons */
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .form-control {
    background-color: var(--zs-dk-surface-2) !important;
    color: var(--zs-dk-text) !important;
    border-color: var(--zs-dk-border) !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #7e90a6 !important;
}

html[data-theme="dark"] .module-search button {
    background: var(--zs-dk-surface-2) !important;
    border-color: var(--zs-dk-border) !important;
    color: var(--zs-dk-text) !important;
}

/* Services-All & secondary pages */
html[data-theme="dark"] .zs {
    --zs-ink: #e6edf5;
    --zs-muted: #9fb0c3;
    --zs-line: #273447;
    --zs-wash: #111823;
}

html[data-theme="dark"] .zs-service {
    color: var(--zs-dk-text);
}

html[data-theme="dark"] .zs-service .zs-eyebrow {
    color: var(--zs-dk-link);
}

html[data-theme="dark"] .breadcrumbs,
html[data-theme="dark"] .page-header {
    background-color: #111823 !important;
    border-color: var(--zs-dk-border) !important;
    color: var(--zs-dk-text) !important;
}

/* Tables */
html[data-theme="dark"] table,
html[data-theme="dark"] .table {
    background-color: var(--zs-dk-surface) !important;
    color: var(--zs-dk-text) !important;
    border-color: var(--zs-dk-border) !important;
}

html[data-theme="dark"] th,
html[data-theme="dark"] td {
    border-color: var(--zs-dk-border) !important;
}

/* Footer & inline-styled text sections */
html[data-theme="dark"] .siteorigin-widget-tinymce span[style*="color"],
html[data-theme="dark"] .textwidget span[style*="color"] {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .textwidget strong[style*="maroon"] {
    color: #f87171 !important;
}

html[data-theme="dark"] #pg-11-1 > .panel-row-style,
html[data-theme="dark"] #pg-11-3 > .panel-row-style,
html[data-theme="dark"] #pg-11-5 > .panel-row-style {
    background-color: #111823 !important;
}

html[data-theme="dark"] .footer,
html[data-theme="dark"] .footer-top,
html[data-theme="dark"] .footer-bottom,
html[data-theme="dark"] .zs-template-footer {
    background-color: #090d13 !important;
    border-color: var(--zs-dk-border) !important;
    color: var(--zs-dk-muted) !important;
}

/* ── Page sweep 2026-11-23: surfaces and text the first pass left light ──── */

/* Buttons keep their own label colour; the generic dark link colour above must not reach them */
html[data-theme="dark"] .zs-btn--gold,
html[data-theme="dark"] .person-profile__tag,
html[data-theme="dark"] .contact-profile__tag {
    color: #0f172a !important;
}

html[data-theme="dark"] .zs-btn--ghost {
    color: #fff !important;
}

html[data-theme="dark"] .zs-btn--ghost:hover,
html[data-theme="dark"] .zs-btn--ghost:focus {
    color: #1f3a56 !important;
}

/* Home: client carousel */
html[data-theme="dark"] .testimonial,
html[data-theme="dark"] .testimonial::after {
    background-color: var(--zs-dk-surface) !important;
}

html[data-theme="dark"] .testimonial__carousel {
    background-color: var(--zs-dk-surface-2) !important;
    color: var(--zs-dk-link) !important;
}

html[data-theme="dark"] .testimonial__carousel:hover,
html[data-theme="dark"] .testimonial__carousel:focus {
    background-color: #233145 !important;
    color: #fff !important;
}

/* the slides set their text colour inline (black / maroon) */
html[data-theme="dark"] .testimonial__quote,
html[data-theme="dark"] .testimonial__author-name,
html[data-theme="dark"] .testimonial__author-name small {
    color: var(--zs-dk-text) !important;
}

html[data-theme="dark"] .testimonial [style*="maroon"] {
    color: #f87171 !important;
}

/* client logos are drawn for a white page */
html[data-theme="dark"] .testimonial__author-avatar img {
    background: #fff;
    border-radius: 8px;
}

/* Home: module cards, bespoke banner, video cover */
html[data-theme="dark"] .custom-solution-banner__icon {
    background: var(--zs-dk-surface-2) !important;
    border-color: var(--zs-dk-border) !important;
    color: var(--zs-dk-link) !important;
}

html[data-theme="dark"] .custom-solution-banner__content,
html[data-theme="dark"] .custom-solution-banner__quotes li,
html[data-theme="dark"] .module-filter p {
    color: var(--zs-dk-muted) !important;
}

html[data-theme="dark"] .custom-solution-banner strong,
html[data-theme="dark"] .custom-solution-banner__brand h2 {
    color: #f3f7fb !important;
}

html[data-theme="dark"] .custom-solution-banner__eyebrow,
html[data-theme="dark"] .custom-solution-banner__quotes .fa,
html[data-theme="dark"] .module-card__features .fa {
    color: var(--zs-dk-link) !important;
}

html[data-theme="dark"] .product-intro__cover,
html[data-theme="dark"] .product-intro__error,
html[data-theme="dark"] .product-intro__lang button:not([aria-pressed="true"]) {
    background: var(--zs-dk-surface-2) !important;
    color: var(--zs-dk-text) !important;
}

html[data-theme="dark"] .product-intro__overview {
    background: var(--zs-dk-surface);
    color: var(--zs-dk-text);
}

html[data-theme="dark"] .product-intro__close {
    background: var(--zs-dk-surface-2) !important;
    border-color: var(--zs-dk-border) !important;
    color: var(--zs-dk-text) !important;
}

/* About / Contact: profile cards */
html[data-theme="dark"] .person-profile__container,
html[data-theme="dark"] .contact-profile__container {
    border-left-color: var(--zs-dk-border) !important;
    border-right-color: var(--zs-dk-border) !important;
    border-bottom-color: var(--zs-dk-surface-2) !important;
}

html[data-theme="dark"] .person-profile__social-icons,
html[data-theme="dark"] .contact-profile__social-icons {
    background-color: var(--zs-dk-surface-2) !important;
}

html[data-theme="dark"] .person-profile__social-icons::before,
html[data-theme="dark"] .contact-profile__social-icons::before {
    border-bottom-color: var(--zs-dk-surface-2) !important;
}

/* Contact: e-mail code step */
html[data-theme="dark"] .inquiry-verification {
    background: var(--zs-dk-surface) !important;
    border-color: var(--zs-dk-border) !important;
}

html[data-theme="dark"] .inquiry-verification h2,
html[data-theme="dark"] .inquiry-code-label,
html[data-theme="dark"] .inquiry-channels label {
    color: var(--zs-dk-text) !important;
}

html[data-theme="dark"] .inquiry-actions .inquiry-resend {
    background: var(--zs-dk-surface-2) !important;
    border-color: var(--zs-dk-border) !important;
    color: var(--zs-dk-text) !important;
}

html[data-theme="dark"] .zs-sending {
    background: rgba(13, 18, 25, .6) !important;
}

/* Services (all): the page's own palette. --zs-navy stays as it is because it is also a fill
   (hero, filter chip, closing band); the places that use it for text are named below. */
html[data-theme="dark"] .zs {
    --zs-blue-dark: #60b8f0;
    --zs-gold-dark: #edac15;
}

html[data-theme="dark"] .zs-stat,
html[data-theme="dark"] .zs-card,
html[data-theme="dark"] .zs-steps li,
html[data-theme="dark"] .zs-module,
html[data-theme="dark"] .zs-solution,
html[data-theme="dark"] .zs-empty,
html[data-theme="dark"] .zs-filter button:not(.is-active) {
    background: var(--zs-dk-surface) !important;
    border-color: var(--zs-dk-border);
    color: var(--zs-dk-text);
}

html[data-theme="dark"] .zs-stats {
    background: var(--zs-dk-border) !important;
    border-color: var(--zs-dk-border) !important;
}

html[data-theme="dark"] .zs-stat__num,
html[data-theme="dark"] .zs-steps strong,
html[data-theme="dark"] .zs-feature strong,
html[data-theme="dark"] .zs-flow strong,
html[data-theme="dark"] .zs-module__id h3,
html[data-theme="dark"] .zs-solution h3,
html[data-theme="dark"] .zs-band h2 {
    color: #f3f7fb !important;
}

html[data-theme="dark"] .zs-chips li,
html[data-theme="dark"] .zs-outcomes li {
    color: var(--zs-dk-text) !important;
}

html[data-theme="dark"] .zs-example {
    background: rgba(237, 172, 21, .1) !important;
}

html[data-theme="dark"] .zs-example strong {
    color: var(--zs-dk-gold) !important;
}

html[data-theme="dark"] .zs-disclosure > summary::after,
html[data-theme="dark"] .zs-module > summary::after,
html[data-theme="dark"] .zs-solution > summary::after {
    color: var(--zs-dk-link) !important;
}

/* the hero picture and the "how people get in" drawing are artwork made for a white page:
   same flip as the service tiles, so neither sits in a white box */
html[data-theme="dark"] .zs-hero__art img {
    background: transparent !important;
    filter: invert(1) hue-rotate(180deg);
    mix-blend-mode: screen;
}

html[data-theme="dark"] .zs-diagram {
    background: var(--zs-dk-surface) !important;
    border-color: var(--zs-dk-border) !important;
}

html[data-theme="dark"] .zs-diagram svg {
    filter: invert(1) hue-rotate(180deg);
}

/* AI Assistant (/chat) */
html[data-theme="dark"] .chat-main-body {
    background: var(--zs-dk-surface) !important;
    border-color: var(--zs-dk-border) !important;
}

html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .access-box,
html[data-theme="dark"] .chip:not(:hover),
html[data-theme="dark"] .bubble.assistant,
html[data-theme="dark"] .btn-clear,
html[data-theme="dark"] .target-badge,
html[data-theme="dark"] .modal-tab,
html[data-theme="dark"] .resource-table th,
html[data-theme="dark"] .ai-response th,
html[data-theme="dark"] .ai-response code {
    background: var(--zs-dk-surface-2) !important;
    border-color: var(--zs-dk-border) !important;
    color: var(--zs-dk-text) !important;
}

html[data-theme="dark"] .chat-main-body .input-area,
html[data-theme="dark"] .chat-main-body .users-panel,
html[data-theme="dark"] .modal-box {
    background: #111823 !important;
    border-color: var(--zs-dk-border) !important;
    color: var(--zs-dk-text) !important;
}

html[data-theme="dark"] .chat-main-body .input-area input {
    background-color: var(--zs-dk-bg) !important;
}

html[data-theme="dark"] .welcome-panel h2,
html[data-theme="dark"] .users-panel h3,
html[data-theme="dark"] .ai-response h3,
html[data-theme="dark"] .ai-response h4,
html[data-theme="dark"] .modal-box .modal-header h2 {
    color: #f3f7fb !important;
}

html[data-theme="dark"] .welcome-sub,
html[data-theme="dark"] .users-legend,
html[data-theme="dark"] .user-item:not(.selected) .user-badge-label,
html[data-theme="dark"] .ai-response em,
html[data-theme="dark"] .modal-close,
html[data-theme="dark"] .empty-msg {
    color: var(--zs-dk-muted) !important;
}

html[data-theme="dark"] .users-legend,
html[data-theme="dark"] .modal-box .modal-header,
html[data-theme="dark"] .modal-tabs,
html[data-theme="dark"] .resource-table th,
html[data-theme="dark"] .resource-table td,
html[data-theme="dark"] .ai-response th,
html[data-theme="dark"] .ai-response td {
    border-color: var(--zs-dk-border) !important;
}

html[data-theme="dark"] .modal-box .modal-header {
    background: transparent !important;
}

html[data-theme="dark"] .ai-response strong,
html[data-theme="dark"] .target-badge,
html[data-theme="dark"] .modal-tab.active,
html[data-theme="dark"] .resource-table th,
html[data-theme="dark"] .ai-response th,
html[data-theme="dark"] .ai-response code {
    color: #b3a8ff !important;
}

html[data-theme="dark"] .modal-tab.active {
    background: var(--zs-dk-surface) !important;
}

html[data-theme="dark"] .user-item:not(.selected):hover {
    background: var(--zs-dk-surface-2) !important;
}

html[data-theme="dark"] .acc-row.denied,
html[data-theme="dark"] .chip-denied:not(:hover),
html[data-theme="dark"] .error-bubble,
html[data-theme="dark"] .denied-msg {
    background: rgba(248, 113, 113, .12) !important;
    border-color: rgba(248, 113, 113, .35) !important;
    color: #fca5a5 !important;
}

html[data-theme="dark"] .chat-toolbar .status.disconnected {
    color: #ffd6d5 !important;
}
