/**
 * Service Nation Header Styles
 * Modern, clean navigation design
 */

/* ============================================
   FONT AWESOME ICON STABILIZATION
   ============================================ */

/* Ensures icons maintain consistent alignment and sizing */
.sn-header i,
.sn-nav i,
.sn-secondary-nav i {
    display: inline-block;
    text-align: center;
}

/* Reserves space for icons before Font Awesome completes rendering */
.sn-header i:empty,
.sn-nav i:empty,
.sn-secondary-nav i:empty {
    min-width: 1em;
    min-height: 1em;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Screen reader only text - visually hidden but accessible to screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   RESET FIXED NAVBAR PADDING
   ============================================ */

/* Removes legacy fixed-navbar padding from body element */
html body.fixed-navbar {
    padding-top: 0 !important;
}

/* ============================================
   HEADER CONTAINER
   ============================================ */

.sn-header {
    background-color: var(--sn-dark-blue, #0b2646);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sn-header__container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}

/* ============================================
   LOGO
   ============================================ */

.sn-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.sn-header__logo:hover {
    opacity: 0.9;
}

.sn-header__logo img {
    height: 55px;
    width: auto;
    display: block;
}

/* ============================================
   MAIN NAVIGATION
   ============================================ */

.sn-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.sn-nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sn-nav__item {
    position: relative;
}

.sn-nav__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.sn-nav__link i {
    font-size: 0.95rem;
    display: inline-block;
    min-width: 1em;
    text-align: center;
}

.sn-nav__link:hover,
.sn-nav__link:focus {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
}

.sn-nav__link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.3);
    outline-offset: 2px;
}

/* Active state for navigation links */
.sn-nav__link--active {
    background-color: #ffffff;
    color: var(--sn-dark-blue, #0b2646);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
}

.sn-nav__link--active:hover,
.sn-nav__link--active:focus {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--sn-dark-blue, #0b2646);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Dropdown toggle specific styles */
.sn-nav__dropdown-toggle {
    width: 100%;
    text-align: left;
}

.sn-nav__icon {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
    margin-left: auto;
    display: inline-block;
    min-width: 0.875em;
    text-align: center;
}

.sn-nav__item--open .sn-nav__icon,
.sn-nav__item--has-dropdown[aria-expanded="true"] .sn-nav__icon {
    transform: rotate(90deg);
}

/* ============================================
   DROPDOWN MENUS
   ============================================ */

.sn-nav__dropdown {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    min-width: 240px;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    list-style: none;
    margin: 0;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

/* Show dropdown on click (via sn-nav__item--open class) */
.sn-nav__item--open .sn-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sn-nav__dropdown-item {
    margin: 0;
}

.sn-nav__dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--sn-dark-blue, #0b2646);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.sn-nav__dropdown-link i {
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
}

.sn-nav__dropdown-link:hover,
.sn-nav__dropdown-link:focus {
    background-color: rgba(var(--sn-dark-blue-rgb, 11, 38, 70), 0.08);
    color: var(--sn-dark-blue, #0b2646);
    text-decoration: none;
}

.sn-nav__dropdown-link:focus {
    outline: 2px solid var(--sn-dark-blue, #0b2646);
    outline-offset: -2px;
}

/* ============================================
   BUTTON COMPONENT
   ============================================ */

.sn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sn-btn--primary {
    background-color: #ffffff;
    color: var(--sn-dark-blue, #0b2646);
    border-color: #ffffff;
}

.sn-btn--primary:hover,
.sn-btn--primary:focus {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--sn-dark-blue, #0b2646);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sn-btn--primary:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.sn-btn--secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.sn-btn--secondary:hover,
.sn-btn--secondary:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
}

/* Home Icon Button */
.sn-btn--home-icon {
    background-color: #ffffff;
    color: var(--sn-dark-blue, #0b2646);
    border-color: #ffffff;
    border-radius: 50px;
    padding: 0.25rem .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.sn-btn--home-icon i {
    font-size: 0.95rem;
}

.sn-btn--home-icon:hover,
.sn-btn--home-icon:focus {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--sn-dark-blue, #0b2646);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sn-btn--home-icon:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */

.sn-header__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1002;
}

.sn-header__mobile-toggle-bar {
    width: 28px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.sn-header__mobile-toggle:hover .sn-header__mobile-toggle-bar {
    background-color: rgba(255, 255, 255, 0.8);
}

.sn-header__mobile-toggle[aria-expanded="true"] .sn-header__mobile-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.sn-header__mobile-toggle[aria-expanded="true"] .sn-header__mobile-toggle-bar:nth-child(2) {
    opacity: 0;
}

.sn-header__mobile-toggle[aria-expanded="true"] .sn-header__mobile-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   SECONDARY MENU TOGGLE
   ============================================ */

.sn-header__secondary-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1002;
    color: #ffffff;
    font-size: 1.75rem;
    transition: all 0.3s ease;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 20px;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.sn-header__secondary-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
}

.sn-header__secondary-toggle:focus {
    outline: none;
}

/* Vertical three dots icon */
.sn-header__secondary-toggle i {
    transition: all 0.3s ease;
    font-size: 1.75rem;
    display: inline-block;
    min-width: 1.75rem;
    text-align: center;
}

/* Transform to X when open - with rotation */
.sn-header__secondary-toggle[aria-expanded="true"] i {
    transform: rotate(90deg);
    font-size: 2.25rem;
    font-weight: 400;
}

.sn-header__secondary-toggle[aria-expanded="true"] i::before {
    content: "\2715"; /* Multiplication X character */
}

/* ============================================
   SECONDARY NAVIGATION
   ============================================ */

.sn-secondary-nav {
    display: none;
}

.sn-secondary-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sn-secondary-nav__item {
    margin: 0;
}

.sn-secondary-nav__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.sn-secondary-nav__link i {
    font-size: 1.5rem;
    width: 1.5rem;
    text-align: center;
}

.sn-secondary-nav__link:hover,
.sn-secondary-nav__link:focus {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
}

.sn-secondary-nav__link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.3);
    outline-offset: 2px;
}

/* Section titles */
.sn-secondary-nav__section-title {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 1.25rem 1.25rem 0.5rem;
    margin-top: 0.5rem;
}

.sn-secondary-nav__section-title:first-child {
    margin-top: 0;
}

/* Submenu items */
.sn-secondary-nav__item--has-submenu {
    position: relative;
}

.sn-secondary-nav__submenu-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.2s ease;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.sn-secondary-nav__submenu-toggle:hover,
.sn-secondary-nav__submenu-toggle:focus {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    outline: none;
}

.sn-secondary-nav__submenu-toggle i {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
    margin-left: auto;
    display: inline-block;
    min-width: 0.875em;
    text-align: center;
}

.sn-secondary-nav__submenu-toggle[aria-expanded="true"] i {
    transform: rotate(90deg);
}

.sn-secondary-nav__submenu {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0px 0px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sn-secondary-nav__submenu--open {
    max-height: 500px;
}

.sn-secondary-nav__submenu-item {
    margin: 0;
    padding-left: 2.5rem;
}

.sn-secondary-nav__submenu-link {
    display: block;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.sn-secondary-nav__submenu-link:hover,
.sn-secondary-nav__submenu-link:focus {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .sn-header__container {
        padding: 0 1.5rem;
        justify-content: flex-start;
    }

    .sn-nav__link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .sn-nav__list {
        gap: 0.125rem;
    }
}

@media (max-width: 1150px) {
    .sn-header {
        box-shadow: none;
    }

    .sn-header__container {
        justify-content: center;
    }

    .sn-header__logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .sn-header__mobile-toggle {
        display: flex;
        position: absolute;
        right: 1rem;
    }

    .sn-header__secondary-toggle {
        display: flex;
        position: absolute;
        left: 1rem;
    }

    .sn-nav {
        position: fixed;
        top: 60px;
        right: 0;
        bottom: 0;
        width: 80%;
        max-width: 400px;
        background-color: var(--sn-dark-blue, #0b2646);
        flex-direction: column;
        justify-content: flex-start;
        padding: 1.5rem 1.5rem 2rem;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    }

    .sn-secondary-nav {
        display: block;
        position: fixed;
        top: 60px;
        left: 0;
        bottom: 0;
        width: 80%;
        max-width: 400px;
        background-color: var(--sn-dark-blue, #0b2646);
        padding: 1.5rem 1.5rem 2rem;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .sn-secondary-nav--open {
        transform: translateX(0);
    }

    .sn-secondary-nav__list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .sn-secondary-nav__link i {
        font-size: 1.25rem;
    }

/* Mobile menu open state */
.sn-nav--open {
    transform: translateX(0);
}    .sn-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .sn-nav__item {
        width: 100%;
    }

    .sn-nav__link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.5rem 1.25rem;
        font-size: 1.25rem;
        font-weight: 500;
        border-radius: 50px;
        background-color: transparent;
        border: none;
        outline: none;
    }

    .sn-nav__link:hover,
    .sn-nav__link:focus {
        outline: none;
        border: none;
    }

    .sn-nav__link i {
        font-size: 1.25rem;
        margin-right: 0.25rem;
    }

    /* Active state in mobile */
    .sn-nav__link--active {
        background-color: #ffffff;
        color: var(--sn-dark-blue, #0b2646);
        border-radius: 50px;
        padding: 0.5rem 1.25rem;
    }

    /* Dropdown toggle in mobile */
    .sn-nav__dropdown-toggle {
        justify-content: flex-start;
        padding: 0.5rem 1.25rem;
        font-size: 1.25rem;
        background-color: transparent;
    }

    .sn-nav__icon {
        margin-left: auto;
        font-size: 0.875rem;
    }

    .sn-nav__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        margin-top: 0;
        margin-left: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
        border-radius: 0;
    }

    .sn-nav__item--open .sn-nav__dropdown {
        max-height: 500px;
        padding: 0.5rem 0 0 0;
    }

    .sn-nav__dropdown-item {
        padding-left: 2.5rem;
    }

    .sn-nav__dropdown-link {
        color: #ffffff;
        padding: 0.75rem 1rem;
        font-size: 1.125rem;
        font-weight: 400;
        background-color: transparent;
        border-radius: 50px;
    }

    .sn-nav__dropdown-link i {
        font-size: 1.25rem;
    }

    .sn-nav__dropdown-link:hover,
    .sn-nav__dropdown-link:focus {
        background-color: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        border-radius: 50px;
    }

    .sn-btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.05rem;
    }
}

@media (max-width: 576px) {
    .sn-header__container {
        padding: 0 1rem;
        min-height: 60px;
    }

    .sn-nav {
        top: 60px;
        padding: 1.5rem 1rem;
    }

    .sn-secondary-nav {
        top: 60px;
        padding: 1.5rem 1rem;
    }

    .sn-nav__list {
        max-width: 100%;
    }

    .sn-nav__link {
        font-size: 1.125rem;
        padding: 0.5rem 1.25rem;
    }

    .sn-secondary-nav__link {
        font-size: 1.125rem;
        padding: 0.5rem 1.25rem;
    }

    .sn-secondary-nav__link i {
        font-size: 1.25rem;
    }

    .sn-nav__dropdown-toggle {
        font-size: 1.125rem;
        padding: 0.5rem 1.25rem;
    }

    .sn-secondary-nav__submenu-toggle {
        font-size: 1.125rem;
        padding: 0.5rem 1.25rem;
    }

    .sn-nav__dropdown-link {
        font-size: 1rem;
    }

    .sn-secondary-nav__submenu-link {
        font-size: 1rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus visible for keyboard navigation */
.sn-nav__link:focus-visible,
.sn-nav__dropdown-link:focus-visible,
.sn-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.sn-header__mobile-toggle:focus,
.sn-header__mobile-toggle:focus-visible {
    outline: none;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .sn-header,
    .sn-nav,
    .sn-nav__dropdown,
    .sn-nav__icon,
    .sn-header__mobile-toggle-bar,
    .sn-nav__link,
    .sn-nav__dropdown-link,
    .sn-btn {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .sn-nav__link,
    .sn-nav__dropdown-link {
        border: 1px solid transparent;
    }

    .sn-nav__link:focus,
    .sn-nav__dropdown-link:focus {
        border-color: currentColor;
    }
}

/* ============================================
   INDUSTRY SWITCHER MODAL
   ============================================ */

#switchIndustryModal .modal-dialog {
    max-width: 480px;
}

#switchIndustryModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

#switchIndustryModal .modal-header {
    background: linear-gradient(135deg, var(--sn-dark-blue, #0b2646) 0%, #0d3256 100%);
    color: #ffffff;
    border-bottom: none;
    padding: 1.5rem 2rem;
}

#switchIndustryModal .modal-header .modal-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

#switchIndustryModal .modal-header .close {
    color: #ffffff;
    opacity: 0.9;
    text-shadow: none;
    font-size: 2rem;
    font-weight: 300;
    padding: 0.75rem;
    margin: -0.75rem -0.75rem -0.75rem auto;
    transition: opacity 0.2s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#switchIndustryModal .modal-header .close:hover {
    opacity: 1;
}

#switchIndustryModal .modal-header .close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

#switchIndustryModal .modal-title i {
    font-size: 1.2rem;
    color: #ffffff;
    margin-right: 0.75rem;
}

#switchIndustryModal .modal-body {
    padding: 0;
}

/* Industry list container */
.sn-industry-list {
    display: flex;
    flex-direction: column;
}

/* Individual industry item */
.sn-industry-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    background: #ffffff;
    cursor: pointer;
    font-size: 1.05rem;
    padding: 1.25rem 2rem;
    transition: background-color 0.15s ease;
    text-align: left;
}

.sn-industry-item:not(:last-child) {
    border-bottom: 1px solid #e8e8e8;
}

.sn-industry-item:hover {
    background-color: #f8f9fa;
}

.sn-industry-item:focus {
    outline: 2px solid var(--sn-dark-blue, #0b2646);
    outline-offset: -2px;
}

/* Active (selected) state */
.sn-industry-item.active {
    background-color: #f8f9fa;
    color: inherit;
    font-weight: 600;
}

.sn-industry-item.active:hover {
    background-color: #f8f9fa;
    cursor: default;
}

/* Industry item content wrapper */
.sn-industry-item__content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Industry icon */
.sn-industry-item__icon {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    color: #6c757d;
}

.sn-industry-item.active .sn-industry-item__icon {
    color: var(--sn-dark-blue, #0b2646);
}

/* Industry name */
.sn-industry-item__name {
    font-size: 1.05rem;
    line-height: 1.4;
}

/* Checkmark for active item */
.sn-industry-item__check {
    color: var(--sn-dark-blue, #0b2646);
    font-size: 1.1rem;
}

/* Loading spinner for industry switcher */
.sn-industry-item__loader {
    color: var(--sn-dark-blue, #0b2646);
    font-size: 1.1rem;
}

/* Mobile responsiveness for industry switcher modal */
@media (max-width: 576px) {
    #switchIndustryModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    #switchIndustryModal .modal-header {
        padding: 1.25rem 1.5rem;
    }

    #switchIndustryModal .modal-title {
        font-size: 1.1rem;
    }

    .sn-industry-item {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .sn-industry-item__icon {
        font-size: 1rem;
    }

    .sn-industry-item__name {
        font-size: 1rem;
    }
}

/*** Impersonation Alert Banner ***/
.sn-impersonation-alert {
    background-color: #b71c1c;
    color: #ffffff;
    padding: 0.5rem 0;
    position: sticky;
    top: 60px;
    z-index: 999;
    display: block;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.sn-impersonation-alert:hover {
    background-color: #8b0000;
    color: #ffffff;
    text-decoration: none;
}

.sn-impersonation-alert:focus {
    outline: 2px solid #ffffff;
    outline-offset: -2px;
}

.sn-impersonation-alert__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sn-impersonation-alert__text {
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sn-impersonation-alert__text i {
    font-size: 1rem;
    color: #ffffff;
}

.sn-impersonation-alert__stop {
    font-weight: 600;
    font-size: 0.875rem;
    color: #ffffff !important;
}

.sn-impersonation-alert__action {
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sn-impersonation-alert__action i {
    font-size: 1rem;
    color: #ffffff;
}

/* Prevent aqua hover effect on impersonation alert icons */
.sn-impersonation-alert:hover i {
    color: #ffffff !important;
}

@media (max-width: 767.98px) {
    .sn-impersonation-alert__container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .sn-impersonation-alert__text {
        justify-content: center;
    }
    
    .sn-impersonation-alert__text,
    .sn-impersonation-alert__action {
        font-size: 0.8125rem;
    }
}

@media (max-width: 767.98px) {
    .sn-impersonation-alert__container {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .sn-impersonation-alert__text {
        justify-content: center;
    }
}