/* Shared Filament panel: navy sidebar contrast + locale switcher */

.fi-sidebar .fi-sidebar-item-label,
.fi-sidebar .fi-sidebar-group-label {
    color: rgba(255, 255, 255, 0.94) !important;
    -webkit-font-smoothing: antialiased;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.15);
}

.fi-sidebar .fi-sidebar-group-label {
    color: rgba(255, 255, 255, 0.72) !important;
    font-weight: 600;
}

.fi-sidebar .fi-sidebar-item-btn > .fi-icon,
.fi-sidebar .fi-sidebar-group-btn .fi-icon,
.fi-sidebar .fi-sidebar-group-dropdown-trigger-btn .fi-icon {
    color: rgba(255, 255, 255, 0.78) !important;
}

.fi-sidebar .fi-sidebar-item-btn:hover,
.fi-sidebar .fi-sidebar-group-btn:hover,
.fi-sidebar .fi-sidebar-group-dropdown-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.fi-sidebar .fi-sidebar-item-active > .fi-sidebar-item-btn {
    background: rgba(255, 255, 255, 0.14) !important;
}

.fi-sidebar .fi-sidebar-item-active .fi-sidebar-item-label,
.fi-sidebar .fi-sidebar-item-active > .fi-sidebar-item-btn > .fi-icon {
    color: #ffffff !important;
}

.fi-sidebar .fi-sidebar-item-grouped-border-part {
    background: rgba(255, 255, 255, 0.45) !important;
}

.fi-sidebar .fi-sidebar-item-grouped-border-part-not-first,
.fi-sidebar .fi-sidebar-item-grouped-border-part-not-last {
    background: rgba(255, 255, 255, 0.2) !important;
}

.fi-sidebar .fi-sidebar-footer {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Top bar locale switcher */
.ps-panel-locale {
    position: relative;
    margin-inline-end: 0.35rem;
    font-size: 0.8125rem;
}

.ps-panel-locale-trigger {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.55rem;
    border-radius: 0.5rem;
    cursor: pointer;
    list-style: none;
    color: rgb(55 65 81);
    font-weight: 500;
    user-select: none;
}

.ps-panel-locale-trigger::-webkit-details-marker {
    display: none;
}

.ps-panel-locale-trigger:hover {
    background: rgb(243 244 246);
}

.dark .ps-panel-locale-trigger {
    color: rgb(229 231 235);
}

.dark .ps-panel-locale-trigger:hover {
    background: rgba(255, 255, 255, 0.06);
}

.ps-panel-locale-chevron {
    width: 1rem;
    height: 1rem;
    opacity: 0.65;
}

.ps-panel-locale-menu {
    position: absolute;
    z-index: 50;
    inset-inline-end: 0;
    top: calc(100% + 0.25rem);
    min-width: 10.5rem;
    margin: 0;
    padding: 0.35rem;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    list-style: none;
}

.dark .ps-panel-locale-menu {
    background: rgb(17 24 39);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.ps-panel-locale-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.375rem;
    color: rgb(31 41 55);
    text-decoration: none;
}

.dark .ps-panel-locale-option {
    color: rgb(229 231 235);
}

.ps-panel-locale-option:hover {
    background: rgb(243 244 246);
}

.dark .ps-panel-locale-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.ps-panel-locale-option.is-active {
    font-weight: 600;
    background: rgb(237 246 255);
}

.dark .ps-panel-locale-option.is-active {
    background: rgba(255, 255, 255, 0.08);
}