@import "../../assets/styles/vars.scss";

#room-container {
    display: flex;
    flex-direction: column;
    width: 100%;

    #blur {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: $primary;
        z-index: 99;
    }

    #items-container {
        margin-top: 20px;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        align-items: center;

        .item-container {
            padding: 10px;
            gap: 10px;
            border: 1px dashed $good_black;
            width: 370px;
            border-radius: 6px;
            height: 370px;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: auto;

            #item-actions-container {
                position: absolute;
                width: 30px;
                height: 30px;
                top: 0px;
                right: 0px;

                #item-update-btn {
                    width: 100%;
                    height: 100%;
                    border: none;
                    border-bottom-left-radius: $my_border_rad;

                    &:hover {
                        background-color: $orange;
                        cursor: pointer;
                    }
                }

                #item-delete-btn {
                    width: 100%;
                    height: 100%;
                    font-size: 1em;
                    border: none;
                    border-top-right-radius: $my_border_rad;

                    &:hover {
                        background: $red;
                        color: $white;
                        font-weight: bold;
                        cursor: pointer;
                    }
                }
            }

            .item-brand-container {
                text-align: center;
                .item-brand {
                }
            }

            .item-model-container {
                text-align: center;
                gap: 5px;

                .item-model {
                }
            }

            .item-image-container {
                width: 100%;
                height: auto;
                text-align: center;

                .item-image {
                    width: 200px;
                    box-shadow: $shadow_box_def;
                }
            }

            .item-no-img {
                color: $red;
            }

            .item-description-container {
                display: flex;
                gap: 5px;
                width: 100%;
                align-items: center;

                .item-description {
                    color: $black;
                    font-weight: bold;
                }
            }

            .item-price-container {
                display: flex;
                width: 100%;
                gap: 5px;
                align-items: center;

                .item-price {
                    font-weight: bold;
                }
            }

            .item-buy-date-container {
                display: flex;
                width: 100%;
                align-items: center;
                gap: 5px;

                .item-buy-date {
                    font-weight: bold;
                }
            }
        }
    }

    #form-container,
    #form-update-container {
        z-index: 9999;
        border: 1px solid $black;
        width: 300px;
        height: 400px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        padding: 20px;
        z-index: 9999;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: $my_border_rad;
        background: $white;

        #form-closure-container {
            position: absolute;
            top: 0px;
            right: 0;
            width: 20px;
            height: 20px;

            #form-closure {
                width: 100%;
                height: 100%;
                border: none;
                border-top-right-radius: $my_border_rad;

                &:hover {
                    background: $red;
                    cursor: pointer;
                    color: $white;
                    font-weight: bold;
                }
            }
        }

        #form,
        #form-update {
            display: flex;
            flex-direction: column;
            gap: 15px;

            #actions {
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                gap: 10px;
                justify-content: center;
                align-items: center;

                .actions-btn {
                }
            }
        }
    }

    #room-title-container {
        margin-top: 20px;
        text-align: center;

        #room-title {
        }
    }
}
