@import url("./brand-colors.css");

.navbar-theme-picker {
    --theme-button-size: 36px;
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: none;
    padding: 4px;
    border-radius: 12px;
    background: #151517;
}
.sidebar-theme-mobile { display: none; }
@media (max-width: 1199.98px) {
    .topbar-theme-desktop { display: none; }
    .client-sidebar.is-open .sidebar-theme-mobile {
        display: flex;
        flex: none;
        justify-content: center;
        padding: 8px 14px max(12px, env(safe-area-inset-bottom));
    }
    @layer eurion-manual {
        body.client-admin-body .client-sidebar__brand {
            gap: 10px;
            padding-inline-end: 12px;
        }
        body.client-admin-body .client-sidebar__logo-full { max-width: 100%; object-fit: contain; }
        body.client-admin-body #clientSidebarClose {
            flex: 0 0 40px;
            height: 40px;
            margin-inline-start: auto;
            padding: 0;
            border-radius: 10px;
            background: var(--eurion-panel-raised) !important;
            color: var(--eurion-text) !important;
        }
        body.client-admin-body #clientSidebarClose:is(:hover, :focus-visible) {
            background: var(--eurion-panel-selected) !important;
        }
        body.client-admin-body #clientSidebarOpen {
            color: var(--eurion-text) !important;
            background: transparent !important;
            border-color: transparent !important;
            box-shadow: none !important;
        }
    }
}
.navbar-theme-picker__indicator {
    position: absolute;
    inset-inline-start: 4px;
    width: var(--theme-button-size);
    height: var(--theme-button-size);
    border-radius: 50%;
    background: var(--brand-accent);
    transition: transform 160ms ease-out;
    pointer-events: none;
}
html[data-theme=light] .navbar-theme-picker__indicator { transform: translateX(100%); }
html[data-theme=light] .navbar-theme-picker { background: var(--eurion-panel-raised); }
html[data-theme=light] .navbar-theme-picker button[aria-pressed="false"] { color: var(--eurion-muted); }
html[data-theme=light] .navbar-theme-picker button[aria-pressed="false"]:hover { background: var(--eurion-panel-selected); color: var(--eurion-text); }
html[dir=rtl][data-theme=light] .navbar-theme-picker__indicator { transform: translateX(-100%); }
@media (prefers-reduced-motion: reduce) {
    .navbar-theme-picker__indicator { transition: none; }
}
.navbar-theme-picker button {
    position: relative;
    display: grid;
    place-items: center;
    width: var(--theme-button-size);
    height: var(--theme-button-size);
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #a0a0a4;
    font-size: 18px;
}
.navbar-theme-picker button:hover {
    background: #252527;
    color: #eee;
}
.navbar-theme-picker button[aria-pressed="true"] {
    border-radius: 50%;
    background: transparent;
    color: var(--brand-on-accent);
}
.navbar-theme-picker button:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 1px;
}


html[data-theme=light] {
    color-scheme: light;
    accent-color: var(--brand-accent);
    --heading-label-color: var(--eurion-muted);
    --eurion-line: rgb(var(--eurion-highlight-rgb) / 12%);
    --eurion-line-strong: rgb(var(--eurion-highlight-rgb) / 18%);
    --eurion-composer-surface: var(--eurion-field-bg);
    --eurion-composer-footer: var(--eurion-panel-raised);
    --eurion-bg: #f5f6f8;
    --eurion-shell: #ffffff;
    --eurion-workspace-sidebar: #ffffff;
    --eurion-surface: #fafbfd;
    --eurion-panel: #ffffff;
    --eurion-panel-hover: #f5f7fa;
    --eurion-panel-raised: #f0f2f5;
    --eurion-panel-active: #e8ecf1;
    --eurion-panel-selected: #e2e8f0;
    --eurion-highlight-rgb: 38 53 73;
    --eurion-text: #202935;
    --eurion-label: #384454;
    --eurion-muted: #576577;
    --eurion-placeholder: #647184;
    --eurion-accent: var(--brand-accent);
    --eurion-brand-blue: var(--brand-accent);
    --eurion-blue-rgb: var(--eurion-accent-rgb, 212, 173, 55);
    --light-blue-rgb: var(--eurion-blue-rgb);
    --light-blue-text: var(--eurion-brand-blue);
    --eurion-blue-hover: var(--eurion-brand-blue);
    --ui-primary: var(--eurion-brand-blue);
    --ui-primary-rgb: var(--eurion-blue-rgb);
    --ui-link-color: var(--light-blue-text);
    --ui-link-color-rgb: var(--eurion-blue-rgb);
    --ui-link-hover-color: var(--eurion-brand-blue);
    --ui-link-hover-color-rgb: var(--eurion-blue-rgb);
    --eurion-primary-bg: var(--brand-accent);
    --eurion-primary-text: var(--brand-on-accent);
    --eurion-primary-hover: var(--brand-accent-hover);
    --eurion-primary-active: var(--brand-accent);
    --eurion-translucent-bg: rgb(var(--eurion-highlight-rgb) / 6%);
    --eurion-translucent-hover: rgb(var(--eurion-highlight-rgb) / 10%);
    --eurion-translucent-active: rgb(var(--eurion-highlight-rgb) / 14%);
    --eurion-field-border: rgb(var(--eurion-highlight-rgb) / 26%);
    --eurion-field-bg: #fff;
    --eurion-field-hover-bg: var(--eurion-field-bg);
    --eurion-field-focus-bg: var(--eurion-field-bg);
    --eurion-error-line: #bc4855;
    --eurion-error-text: #a32d3c;
    --eurion-composer-close-text: var(--eurion-error-text);
    --eurion-delete-text: #a22542;
    --eurion-delete-hover: #ae2b45;
    --eurion-delete-active: #922039;
    --eurion-success-text: #176542;
    --eurion-warning-text: #83530a;
    /* Legacy component colours keep their original fallback in dark mode. */
    --light-ink: var(--eurion-text);
    --light-label: var(--eurion-label);
    --light-muted: var(--eurion-muted);
    --light-accent: var(--eurion-accent);
    --light-on-accent: #101820;
    --light-panel: var(--eurion-panel-raised);
    --light-line: var(--eurion-line);
    --light-danger: var(--eurion-error-text);
    --light-success-bg: #e5f3eb;
    --light-warning-bg: #fff2da;
    --light-danger-bg: #fbe9ed;
    --light-accent-bg: color-mix(in srgb, var(--eurion-brand-blue) 12%, white);
    --light-icon-tile: color-mix(in srgb, var(--eurion-brand-blue) 16%, white);
    --light-icon-ink: var(--eurion-text);
    --info-color-300: var(--light-accent-bg);
    --info-color-400: var(--eurion-accent);
    --info-color-500: var(--light-blue-text);
 --client-bg:var(--eurion-bg); --client-text:var(--eurion-text); --client-muted:var(--eurion-muted);
 --client-panel:var(--eurion-panel); --client-panel-2:var(--eurion-panel-raised); --bs-body-bg:#fff; --bs-body-color:var(--eurion-text);
}
.theme-floating {position:fixed;inset-block-start:16px;inset-inline-end:16px;z-index:1050}
:where(i[data-icon]){display:inline-block;line-height:1;vertical-align:-.125em}
i[data-icon]>svg{display:inline-block;width:1em;height:1em;vertical-align:top}
html[data-theme=light] .client-sidebar__logo-full {content:url('/images/logo/euro_reviews_by_eurion_black.svg')!important}
html[data-theme=light] .auth-page-logo img {content:url('/images/logo/euro_reviews_black.svg')}
html[data-theme=light] :is(.auth-layout,.onboarding-body,.error-layout-body){background:#f5f6f8!important;color:#20232a}
html[data-theme=light] :is(.error-card,.dropdown-menu,.offcanvas,.modal-content,.native-select__panel){background-color:var(--eurion-panel,#fff)!important;color:var(--eurion-text,#20232a);border-color:var(--eurion-line,#d8dbe0)}
html[data-theme=light] :is(.auth-layout,.onboarding-body) :is(input,select,textarea){background:#fff!important;color:#20232a!important;border-color:#a7acb4!important}
html[data-theme=light] :is(.auth-layout,.onboarding-body,.error-layout-body) :is(h1,h2,h3,label,p,small,.text-white,.text-gray-400){color:#333945!important}
html[data-theme=light] .btn-close {filter:none}
html[data-theme=light] .apexcharts-text {fill:var(--eurion-muted)}

@layer eurion-manual {
 html[data-theme=light] body.client-admin-body .client-sidebar__nav :is(.client-sidebar__link,.client-sidebar__sublink,.client-sidebar__group-toggle),
 html[data-theme=light] body.client-admin-body .client-sidebar__nav :is(.client-sidebar__link,.client-sidebar__sublink,.client-sidebar__group-toggle) span,
 html[data-theme=light] body.client-admin-body :is(.client-sidebar__profile-link,.client-sidebar__profile-text strong,.client-avatar,.demo-summary a,.client-topbar__title) {color:#263341!important}
 html[data-theme=light] body.client-admin-body .client-sidebar__nav :is(.client-sidebar__link,.client-sidebar__group-toggle,.client-sidebar__sublink).active {background:#f1f2f4!important;color:var(--eurion-text)!important}
 html[data-theme=light] body.client-admin-body .client-sidebar__nav :is(.client-sidebar__link,.client-sidebar__group-toggle,.client-sidebar__sublink).active span {color:var(--eurion-text)!important}
 html[data-theme=light] body.client-admin-body .client-sidebar__collapse {background:#f3f4f6!important;color:#354254!important}
 html[data-theme=light] body.client-admin-body :is(.demo-summary,.client-avatar,.client-sidebar__footer) {background:var(--eurion-panel-raised)!important}
 html[data-theme=light] body.client-admin-body :is(.dashboard-readiness-badge.is-ready,.is-ready .dashboard-readiness-badge) {color:#156445!important}
 html[data-theme=light] body.client-admin-body :is(.dashboard-usage-period,.dashboard-panel-eyebrow,.dashboard-checklist-copy small) {color:var(--brand-accent)!important}
}
@layer eurion-manual {
  html[data-theme=light] .client-admin-body :is(.demo-summary strong,.demo-badge) {background:var(--brand-accent,#d4ad37)!important;color:#211a06!important}
  html[data-theme=light] .client-admin-body :is(.dashboard-panel-badge:not(.dashboard-panel-badge--warning,.dashboard-panel-badge--danger),.demo-summary>span) {color:var(--brand-accent)!important}
}

.auth-layout .auth-panel:has(form),
.onboarding-body :is(.onboarding-shell, .onboarding-card, .onboarding-main__inner):has(form) {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.onboarding-body .onboarding-shell:has(form) .onboarding-guidance {
    padding: 0;
    margin-bottom: 2rem;
}

html[data-theme=light] .onboarding-body {
    --ob-bg: var(--eurion-bg);
    --ob-panel: var(--eurion-panel);
    --ob-panel-soft: var(--eurion-panel-raised);
    --ob-field: var(--eurion-field-bg);
    --ob-field-text: var(--eurion-text);
    --ob-text: var(--eurion-text);
    --ob-muted: var(--eurion-muted);
    --ob-line: var(--eurion-line);
}
html[data-theme=light] .auth-layout .auth-page { background: var(--eurion-bg); }
html[data-theme=light] .auth-layout :is(.auth-provider, .auth-recovery__icon) {
    color: var(--eurion-text);
    background: var(--eurion-panel);
    box-shadow: inset 0 0 0 1px var(--eurion-line);
}
html[data-theme=light] .auth-layout .auth-provider:hover { background: var(--eurion-panel-hover); }
html[data-theme=light] .auth-layout .auth-separator span { background: var(--eurion-line-strong); }
html[data-theme=light] :is(.client-page-header .client-page-kicker, .dashboard-setup-guide__kicker, .onboarding-eyebrow) { --heading-label-color: var(--eurion-label); }
html[data-theme=light] .onboarding-body :is(.onboarding-progress__bar, .onboarding-next-card span, .onboarding-complete-icon) { background: var(--eurion-panel-raised); }
html[data-theme=light] .onboarding-body :is(.onboarding-next-card strong, .onboarding-verification-email strong, .onboarding-progress__step.is-active .onboarding-progress__label, .onboarding-login-note a) { color: var(--eurion-text); }
html[data-theme=light] .auth-layout :is(.auth-separator strong, .auth-back-link, .auth-remember > span:last-child) { color: var(--eurion-muted); }
html[data-theme=light] .auth-layout :is(.auth-forgot-password, .auth-register-link a, .auth-legal-copy a, .auth-back-link:hover) { color: var(--eurion-text); }
html[data-theme=light] .auth-layout .auth-remember__box { background: var(--eurion-panel); border: 1px solid var(--eurion-field-border); }
html[data-theme=light] .auth-layout .auth-remember input:checked + .auth-remember__box { background: var(--brand-accent); }
html[data-theme=light] .auth-layout .auth-input:-webkit-autofill {
    -webkit-text-fill-color: var(--eurion-text);
    box-shadow: inset 0 0 0 100px var(--eurion-field-bg);
}

@layer eurion-manual {
    html[data-theme=light] body.client-admin-body .main-body :is(
        .product-review-table__head, .product-reviews-header__badge, .product-questions-page__badge,
        .product-questions-tabs a, .help-assistant__suggestions button, .product-api-endpoint > span
    ) {
        color: var(--eurion-label) !important;
        background: var(--eurion-panel-raised) !important;
    }
    html[data-theme=light] body.client-admin-body .main-body .product-questions-tabs a.active {
        background: var(--eurion-panel-selected) !important;
        color: var(--eurion-text) !important;
    }
    html[data-theme=light] body.client-admin-body .main-body :is(
        .product-questions-tabs a > span, .product-questions-tabs a > strong, .product-questions-page__badge > span,
        .statistics-subnav__link > span, .statistics-card__title > span, .dashboard-quick-card strong,
        .subscription-overview__price > strong, .product-review-row__rating strong, .reviews-dashboard-rating,
        .client-api-inline-code code, .client-api-field code, .product-api-docs code, .product-api-endpoint code
    ) { color: var(--eurion-text) !important; }
    html[data-theme=light] body.client-admin-body .main-body :is(
        .help-assistant__composer-label, .help-assistant__header > div > span, .client-list-status,
        .client-api-doc-title > span, .client-api-field em, .subscription-overview__eyebrow span,
        .ai-summary-item__title span, .review-card .text-block, .review-card .text-block span,
        .review-card .text-sm, .review-card .text-xs, .product-review-row__order a, .dashboard-usage-note a
    ) { color: var(--eurion-muted) !important; }
    html[data-theme=light] body.client-admin-body .main-body :is(
        .product-review-row__verified, .usage-status.is-active, .client-api-status.is-active,
        .is-complete .dashboard-checklist-action
    ) { color: var(--eurion-success-text) !important; }
    html[data-theme=light] body.client-admin-body .main-body :is(.usage-pill.is-warning, .client-api-responses .is-warning) { color: var(--eurion-warning-text) !important; }
    html[data-theme=light] body.client-admin-body .main-body :is(.usage-pill.is-danger, .client-api-responses .is-error, .client-danger-zone .btn-danger) { color: var(--eurion-delete-text) !important; }
    html[data-theme=light] body.client-admin-body :is(.modal-content, .offcanvas) :is(.modal-title, .offcanvas-title, .form-label, label) { color: var(--eurion-text) !important; }
    html[data-theme=light] body.client-admin-body :is(.modal-content, .offcanvas) :is(.form-text, .text-muted) { color: var(--eurion-muted) !important; }
    html[data-theme=light] body.client-admin-body .main-body :is(.apexcharts-tooltip, .apexcharts-xaxistooltip, .apexcharts-yaxistooltip, .apexcharts-tooltip-title) {
        color: var(--eurion-text) !important;
        background: var(--eurion-panel) !important;
        border-color: var(--eurion-line-strong) !important;
    }
    html[data-theme=light] body.client-admin-body .main-body .apexcharts-gridline { stroke: var(--eurion-line); }
    html[data-theme=light] body.client-admin-body :is(.main-body, .modal-content) :is(
        .product-question-status.is-answered, .ai-answer-automation.is-active .ai-answer-state,
        .ai-summary-item__status .is-active, .usage-pill, .client-api-responses .is-success
    ) { color: var(--eurion-success-text) !important; background-color: var(--light-success-bg) !important; }
    html[data-theme=light] body.client-admin-body :is(.main-body, .modal-content) :is(.product-question-status.is-pending, .usage-pill.is-warning) {
        color: var(--eurion-warning-text) !important; background-color: var(--light-warning-bg) !important;
    }
    html[data-theme=light] body.client-admin-body :is(.main-body, .modal-content) :is(.product-question-status.is-rejected, .usage-pill.is-danger) {
        color: var(--eurion-delete-text) !important; background-color: var(--light-danger-bg) !important;
    }
    html[data-theme=light] body.client-admin-body .main-body :is(.usage-pill.is-neutral, .client-api-status:not(.is-active), .ai-summary-settings__identity small, .help-assistant__header span) { color: var(--eurion-muted) !important; }
    html[data-theme=light] body.client-admin-body .main-body .usage-pill.is-neutral { background: var(--eurion-panel-raised) !important; }
    html[data-theme=light] body.client-admin-body .main-body .ai-answer-field-label button { color: var(--eurion-text) !important; }
}

@layer eurion-manual {
    body.client-admin-body {
        --reviews-success-badge-text: #70dfbd;
        --reviews-success-badge-bg: rgba(45, 212, 167, .1);
    }
    html[data-theme=light] body.client-admin-body {
        --reviews-success-badge-text: #156445;
    }
    html[data-theme] body.client-admin-body .main-body :is(
        .dashboard-readiness-badge.is-ready, .client-status-pill--active, .badge-success,
        .subscription-status--active, .usage-status.is-active, .client-api-status.is-active,
        .product-question-status.is-answered, .ai-answer-automation.is-active .ai-answer-state,
        .ai-summary-item__status .is-active, .usage-pill:not(.is-neutral,.is-danger,.is-warning),
        .client-api-responses .is-success, .product-review-row__verified
    ) {
        color: var(--reviews-success-badge-text) !important;
        background-color: var(--reviews-success-badge-bg) !important;
        border-radius: 999px;
    }
}

@layer eurion-manual {
    @media (hover: hover) {
        body.client-admin-body {
            --reviews-table-hover: color-mix(in srgb, var(--brand-accent) 9%, var(--eurion-panel));
        }
        html[data-theme] body.client-admin-body main table tbody > tr:not(.c-table-row-expanded-content):hover > :is(td, th) {
            background-color: var(--reviews-table-hover) !important;
            --bs-table-accent-bg: transparent;
            --bs-table-bg-state: transparent;
        }
    }
}

.product-questions-tabs a[data-slot="badge"] {
    border-radius: 999px !important;
}

@layer eurion-manual {
    html[data-theme] body.client-admin-body .client-admin-main .main-body :is([data-slot="badge"], .statistics-subnav__link).active {
        background: var(--brand-accent) !important;
        color: #fff !important;
    }
    html[data-theme] body.client-admin-body .client-admin-main .main-body :is([data-slot="badge"], .statistics-subnav__link).active :is(span, strong, i) {
        color: #fff !important;
    }
    html[data-theme] body.client-admin-body .client-admin-main .main-body .product-questions-tabs a.active strong {
        background: transparent !important;
    }
}
