html {
    --user-menu-height: 50px;
}

user-menu {
    position: fixed;
    width: 100vw;
    height: var(--user-menu-height);
    top: 0;
    left: 0;
    background-color: #292929;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1000;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
}

user-menu a {
    color: #F0F0F0;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

user-menu a:hover {
    background-color: #3e3e3e;
}

user-menu a svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

user-menu button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

user-menu button:hover {
    background-color: #3e3e3e;
}

user-menu button svg {
    width: 24px;
    height: 24px;
}

user-menu button svg path {
    fill: #F0F0F0;
}

user-menu button:hover svg path {
    fill: #DA827D;
}

user-menu .logout-button {
    margin-left: auto;
}

user-menu .switch {
    position: relative;
}

user-menu .switch input {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1;
    margin: 0;
    cursor: pointer;
}

user-menu .switch input+.slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 50px;
    height: 24px;
    background-color: #7c0404;
    border-radius: 34px;
    position: relative;
    transition: background-color 0.2s;
}

user-menu .switch input+.slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

user-menu .switch input:checked+.slider {
    background-color: #066809;
}

user-menu .switch input:checked+.slider::before {
    transform: translateX(26px);
}

user-menu .switch input:not(:checked)+.slider .label-on,
user-menu .switch input:checked+.slider .label-off {
    opacity: 0;
}

user-menu .switch .slider svg {
    width: 18px;
    height: 18px;
}