/* Settings panel in the top row - ported from UserPreferencesPanel.razor.css.
   All rules live under .preferences-panel, which was the component root, so no extra scoping is
   needed to keep them out of the rest of the app. */
.preferences-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 320px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

@.preferences-panel keyframes slideDown {from {
        opacity: 0;
        transform: translateY(-10px);
    }to {
        opacity: 1;
        transform: translateY(0);
    }
}.preferences-panel .preferences-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #1e3a5f;
    color: white;
}.preferences-panel .preferences-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}.preferences-panel .close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white !important;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}.preferences-panel .close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}.preferences-panel .close-btn i {
    color: white !important;
}.preferences-panel .preferences-content {
    padding: 1rem;
}.preferences-panel .preference-item {
    margin-bottom: 0.875rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid #eef1f5;
}.preferences-panel .preference-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}.preferences-panel .preference-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}.preferences-panel .toggle-switch-container {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #f4f6f9;
    border-radius: 5px;
    padding: 3px;
}.preferences-panel .toggle-text {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    color: #64748b;
    transition: all 0.2s ease;
    cursor: pointer;
}.preferences-panel .toggle-text.active {
    background: white;
    color: #1e3a5f;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}.preferences-panel .toggle-switch {
    display: none;
}.preferences-panel .preference-select {
    width: 100%;
    padding: 0.4rem 0.75rem;
    border: 1px solid #dde2e9;
    border-radius: 5px;
    font-size: 0.8rem;
    color: #1e3a5f;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231e3a5f' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    padding-right: 1.75rem;
}.preferences-panel .preference-select:hover {
    border-color: #2c5282;
}.preferences-panel .preference-select:focus {
    outline: none;
    border-color: #2c5282;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.15);
}.preferences-panel .preferences-footer {
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-top: 1px solid #eef1f5;
    display: flex;
    justify-content: flex-end;
}.preferences-panel .btn-save {
    padding: 0.5rem 1.25rem;
    background: #1e3a5f;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}.preferences-panel .btn-save:hover {
    background: #2c5282;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}.preferences-panel .btn-save:active {
    transform: translateY(1px);
}.preferences-panel .btn-save i {
    font-size: 0.75rem;
}
