.hg-sidebar__dashboard-link,
.hg-nav-group__header,
.hg-nav-subitem,
.hg-user-chip,
.hg-tabs-pill__button,
.hg-date-range-field,
.hg-chip-button,
.hg-card,
.hg-date-range-preset,
.hg-date-range-action,
.hg-date-input__control,
.hg-user-menu__logout,
.hg-user-chip .bi {
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}
.hg-card:hover { box-shadow: var(--hg-shadow-card-hover); }


.hg-sidebar__dashboard-link:hover,
.hg-sidebar__dashboard-link:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(74, 114, 145, 0.72);
    color: rgba(248, 251, 255, 0.98);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(7, 34, 54, 0.35),
        0 0 0 1px rgba(11, 54, 84, 0.28);
}

.hg-nav-group__header:hover,
.hg-nav-group__header:focus-visible,
.hg-nav-group__header[aria-expanded='true'] {
    background: rgba(61, 104, 135, 0.96);
    color: #ffffff;
}
.hg-nav-group__header:hover .bi,
.hg-nav-group__header:focus-visible .bi,
.hg-nav-group__header[aria-expanded='true'] .bi {
    color: #ffffff;
}

.hg-nav-subitem:hover,
.hg-nav-subitem:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(74, 114, 145, 0.72);
    color: rgba(248, 251, 255, 0.98);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(7, 34, 54, 0.35),
        0 0 0 1px rgba(11, 54, 84, 0.28);
}

.hg-nav-subitem--active:hover,
.hg-nav-subitem--active:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(74, 114, 145, 0.72);
    color: rgba(248, 251, 255, 0.98);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(7, 34, 54, 0.35),
        0 0 0 1px rgba(11, 54, 84, 0.28);
}


.hg-user-chip:hover,
.hg-user-chip:focus-visible {
    border-color: var(--hg-color-border-strong);
    background: var(--hg-color-control-neutral-hover);
}

.hg-tabs-pill__button:hover,
.hg-tabs-pill__button:focus-visible {
    background: #2f75ab;
    border-color: rgba(17, 62, 98, 0.30);
    box-shadow:
        0 6px 14px rgba(21, 63, 99, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    transform: translateY(-1px);
}

.hg-tabs-pill__button[aria-selected='true'] {
    background: #3678ad;
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.hg-tabs-pill__button[aria-selected='true']:hover,
.hg-tabs-pill__button[aria-selected='true']:focus-visible {
    background: #2f75ab;
    border-color: rgba(17, 62, 98, 0.30);
    box-shadow:
        0 6px 14px rgba(21, 63, 99, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    transform: translateY(-1px);
}
.hg-date-range-field:hover,
.hg-date-range-field:focus-visible {
    border-color: var(--hg-color-control-neutral-border-strong);
    background: var(--hg-color-control-neutral-bg);
}
.hg-chip-button:hover,
.hg-chip-button:focus-visible { border-color: var(--hg-color-control-neutral-border-active); }
.hg-chip-button[disabled],
.hg-tabs-pill__button[disabled],
.hg-date-range-field[aria-disabled='true'] { cursor: not-allowed; opacity: 0.55; }
.hg-nav-group__header[aria-expanded='false'] + .hg-nav-group__list { display: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
.hg-back-to-top:hover,
.hg-back-to-top:focus-visible {
    background: #f6fbff;
    border-color: rgba(54, 120, 173, 0.34);
    box-shadow: 0 12px 28px rgba(20, 40, 60, 0.18);
    transform: translateY(-1px);
}


.hg-date-range.is-open .hg-date-range-field,
.hg-date-range-field:hover,
.hg-date-range-field:focus-visible {
    border-color: var(--hg-color-control-neutral-border-strong);
    background: var(--hg-color-control-neutral-bg);
}

.hg-date-range-preset:hover,
.hg-date-range-preset:focus-visible {
    background: #e9eef3;
    border-color: rgba(54, 120, 173, 0.18);
}

.hg-date-range-preset.is-active:hover,
.hg-date-range-preset.is-active:focus-visible {
    background: #5d7488;
    color: #ffffff;
}

.hg-date-range-action--primary:hover,
.hg-date-range-action--primary:focus-visible {
    background: #2f75ab;
    border-color: #2f75ab;
}

.hg-date-range-action--secondary:hover,
.hg-date-range-action--secondary:focus-visible {
    background: #f5f7f9;
}

.hg-date-input__control:hover,
.hg-date-input__control:focus-visible {
    border-color: rgba(54, 120, 173, 0.34);
    box-shadow: 0 0 0 3px rgba(54, 120, 173, 0.08);
}



.hg-user-menu.is-open .hg-user-chip,
.hg-user-chip:hover,
.hg-user-chip:focus-visible {
    border-color: var(--hg-color-border-strong);
    background: var(--hg-color-control-neutral-hover);
}

.hg-user-menu__logout:hover,
.hg-user-menu__logout:focus-visible {
    background: #edf3f8;
    border-color: rgba(54, 120, 173, 0.18);
    color: #23425f;
}




/*--------- Login & Auth ---------*/
.hg-auth-field__control,
.hg-auth-field__icon-button,
.hg-auth-submit,
.hg-auth-card__link {
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.hg-auth-field__control:hover,
.hg-auth-field__control:focus-visible {
    border-color: var(--hg-color-control-neutral-border-strong);
    box-shadow: 0 0 0 3px rgba(54, 120, 173, 0.10);
}

.hg-auth-field__icon-button:hover,
.hg-auth-field__icon-button:focus-visible {
    color: #7f68a0;
}

.hg-auth-submit:hover,
.hg-auth-submit:focus-visible {
    background: var(--hg-color-control-primary-hover);
    box-shadow: 0 8px 18px rgba(21, 63, 99, 0.16);
    transform: translateY(-1px);
}

.hg-auth-card__link:hover,
.hg-auth-card__link:focus-visible {
    color: var(--hg-color-control-primary-hover);
}
