@use '../../../../shared/styles/variables' as *;

.avatar-upload__menu {
    min-width: 220px;

    padding: 6px;

    border-radius: 16px;

    background: $color-media-bg;
    border: 1px solid $color-media-border;

    z-index: 1000;
}

.avatar-upload__menu-item {
    display: flex;
    align-items: center;

    gap: 10px;

    height: 40px;

    padding: 0 12px;

    border-radius: 10px;

    cursor: pointer;

    outline: none;

    &:hover {
        background: $color-media-hover;
    }
}

.camera-modal__overlay {
    position: fixed;
    inset: 0;

    background: $color-media-overlay;

    z-index: 9998;
}

.camera-modal {
    position: fixed;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 90vw;
    max-width: 751px;

    background: $color-media-bg;

    border-radius: 24px;

    //padding: 24px;

    z-index: 9999;
    .camera-modal__header{
        position: absolute;
        top: 8px;
        right: 8px;
        button{
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: $color-media-control-bg;
            border: none;
            backdrop-filter: blur(15px);
            padding: 8px;
            height: 44px;
            width: 44px;
            color: $color-media-control-text-muted;
            border-radius: 1000px;
            cursor: pointer;
            transition: .2s ease;
            &:hover{
                color: $color-media-control-text;
                background-color: $color-media-control-bg-hover;
            }
        }
    }
}

.camera-modal__body {
    margin-top: 0px;
    position: relative;
    width: 100%;
    height: 80vh;
}

.camera-modal__not-found{
    color: $color-media-control-text;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    //background-color: $blue;
    border-radius: 24px;
    svg{
        width: 32px;
        height: auto;
        margin-right: 8px;
        margin-bottom: 5px;
    }
}

.camera-modal__body video, .camera-modal__body img {
    position: absolute;
    width: 100%;
    height: 100%;

    border-radius: 24px;
    object-fit: contain;

    display: block;
}

.camera-modal__footer {
    position: absolute;
    display: flex;
    justify-content: center;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    button{
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba($black, 0.1);
        border: none;
        backdrop-filter: blur(15px);
        padding: 8px;
        height: 44px;
        width: 44px;
        color: $color-media-control-text;
        border-radius: 1000px;
        box-shadow: inset 0 0 5px rgba($white, 0.4);
        transition: .2s ease;
        cursor: pointer;
        &:hover{
            box-shadow: inset 0 0 5px $blue20;
            color: $blue20;
        }
    }
}
