@import "../../assets/scss/variables";
$sidebarWidth: 91px;
$quickAccessWidth: 307px;
$quickAccessClosedWidth: 24px;
$mixedWidth: $sidebarWidth + $quickAccessWidth;
$mixedClosedWidth: $sidebarWidth + $quickAccessClosedWidth;
$mixedClosedWidthDivide2: $mixedClosedWidth/2;

#messages {    

    .messages--list {
        min-height: 54.5rem;
        //max-width: 1023px;
    }

    .empty-wrapper{

        position: absolute;
        top: 50%;
        left: calc(50% + $mixedClosedWidth);
        transform: translate(-50%, -50%);

        &--text {
            p{
                font-size: 1.6rem;    
                color: $text-color;
            }
        }

        &--img {
            display: flex;
            justify-content: center;
            margin-top: 3.6rem;
        }
    }

    .messages-filter {

        &--category {

            &--text {
                font-size: 1.6rem;
                color: $text-color;
            }

            .select-tag {
                height: 41.73px;
                width: 189px;
                margin-left: 2.7rem;
            
                .select-header {
                    font-size: 1.2rem;
                    border: none;
                    color: #fff;
                    height: 41.73px;
                    width: 189px;
                    background-color: $secondary-color;
                    font-weight: $bold;
                    position: relative;
                    border-radius: 0.4rem;
                    display: flex;
                    align-items: center;
                    justify-content: start;
                    padding: 0 1rem 0 1.4rem;
                    cursor: pointer;
            
                    &:hover {
                        background-color: $hover_color;
                    }
            
                    display: flex;
                    justify-content: space-between;
            
                    .true {
                        transform: rotatez(90deg);
                    }
            
                    span {
                        font-size: 1.2rem;
                        border: none;
                        color: #fff;
                        text-transform: uppercase;
                        font-weight: $bold;
                    }
                }
            
                .options {
                    position: relative;
                    width: 189px;
                    top: 0.3rem;
                    margin-top: 0;
                    border-radius: 0.4rem;
                    border: 1.5px solid #1a73e8;
                    padding: 3px 1rem 1rem 1rem;
                    box-shadow: 0px 3px 6px rgb(0 0 0 / 16%);
                    background: white !important;
                    z-index: 1;
            
                    .without-tags {
                        font-size: 1.3rem;
                        color: $text-color;
                        padding-top: 1rem;
                    }
            
                    li {
                        position: relative;
                        padding: 1rem 0.6rem 0.6rem;
                        text-transform: uppercase;
                        font-size: 1.2rem;
                        font-weight: $bold;
                        cursor: pointer;

                        &:hover {
                            background-color: #e7f1fd;
                            color: $secondary-color;
                        }
            
                        &::after {
                            position: absolute;
                            width: 100%;
                            margin: -1rem 0%;
                            left: 0;
                            bottom: 0.6rem;
                            border-bottom: dashed 1px #1a73e8;
                            content: "";
                            display: block;
                            z-index: 0;
                        }

                        &:not(:first-child) {
                            margin: 7px 0px;
                        }
                    }
                }
            }
        }
    }
    
    //main messages list
    .messages-wrapper {
        border-bottom: 1px dashed #D9D9D9;
        display: flex;
        align-items: center;

        .min-height {
            min-height: 5rem;               
        }

        &--fsection {
            // width: 20rem;
            padding: 2rem;

            
            &--bin {
                text-align: center;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            &--cat {
                display: flex;
                align-items: center;
                justify-content: center;   
                padding: 0;
                white-space: nowrap;

                .category-color {

                    &-ipiresia {
                        background-color: $category-ipiresia;
                    }
    
                    &-service {
                        background-color: $category-service;
                    }
    
                    &-anakoinosi {
    
                        background-color: $category-anakoinosi;
                    }
    
                    &-service-is-down {
    
                        background-color: $category-service-is-down;
                    }
    
                    &-support {
                        background-color: $category-support;
                    }
                }

                span {
                    padding: 0.6rem 1.5rem;
                    background: $main-color;
                    border-radius: 1rem;
                    color: #fff;
                    font-size: 1rem;
                    text-transform: uppercase;

                    @media(max-width: 1500px) {
                        padding: 0.5rem 0.7rem;
                        font-size: .9rem;
                    }
                }
            }            
        }

        &--secsection {
            padding: 2rem;

            &:hover {
                background-color: #F3F8FC;
                cursor:  pointer;
            }

            &--date {
                font-size: 1rem;
                color: $text-color;
            }

            &--title {
                font-size: 1.4rem;
                color: $text-color;

                .title-black {
                    font-weight: $bold;
                }
            }

            &--state {

                &#read {
                    .state-circle {
                        background-color: $inactive-text;
                    }                   
                }

                &#notRead {
                    .state-circle {
                        background-color: $error-text;
                    }
                    
                }

                span {
                    height: .9rem;
                    width: .9rem;
                    border-radius: 50%;
                    display: flex;
                    text-align: center;
                    margin: 0 auto;
                    align-self: center;
                    margin-top: .9rem;                   
                }
            }
        }
        //to be deleted stage 
        &--del {
            padding: 2rem;
            background-color: $secondary-color;
            color: #fff;

            &--to-be {
                min-height: 5rem;

                &--row {
                    
                    &--deleted{

                        .garbage-bin-deleted {

                            img {
                                margin-top: -0.5rem;
                            }
                        }

                        &--text {
                            padding: 0 2rem 0 1rem;

                            .delete-msg {
                                font-size: 1.5rem;
                            }
                        }                       

                        &--actions {

                            button{
                                background: #fff;
                                border: none;
                                border-radius: 0.4rem;
                                width: 5rem;
                                height: 3.4rem;
                                margin: 0 0.5rem;
                                font-size: 1.2rem;

                                &:hover {
                                    color: $secondary-color;
                                }
                            }                            
                        }
                    }
                }
            }
        }
    }

    .bottom-action {
        margin: 3.6rem 0 0;
//max-width: 1023px;
        &--block {
            padding-bottom: 1rem;

            button {
                font-size: 1.1rem;
                color: $main-color;
                padding: 0 1rem;
                font-weight: $medium;
                box-shadow: 0 5px 0 -4px;
                border: none;
                background: none;
            }

            // massive-delete - Message Delete Popup 
            .massive-delete {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                background-color: $secondary-color;
                width: 79.3rem;
                height: 15rem;    
                box-shadow: 0px 20px 20px #00000029;
                border-radius: 0.4rem;

                &-container {

                    &--text {
                        padding: 0 3rem;

                        p{
                            color: #fff;
                            font-size: 1.4rem;
                        }
                    }

                    &--buttons {

                        button {
                            background: #fff;
                            border: none;
                            border-radius: 0.4rem;
                            width: 5rem;
                            height: 3.4rem;
                            margin: 0 0.5rem;
                            font-size: 1.2rem;
                            text-decoration: none;
                            border-bottom: none;
                            box-shadow: none;

                            &:hover {
                                color: $secondary-color;
                            }
                        }                        
                    }
                }
            }
        }  
    }
}

#hideAfterDel {
    display: none !important;
}