.ticket-messages-container {
    padding: 1vw;
    width: 100%;
    min-height: 10vw;
    gap: 1vw;
    position: relative;
}

.user-dash-tickets .ticket-label {
    margin-right: 1vw;
    padding: 0.1vw 0.35vw;
    min-width: 6vw;
    font-weight: normal;
    font-size: 0.72vw;
    border: 0.1vw solid;
    border-radius: 0.35vw;
}

.user-dash-tickets .ticket-label.answered {
    border-color: #00e1ae;
    background-color: rgba(163, 215, 202, 0.2);
    color: #00b08c;
}

.user-dash-tickets .ticket-label.waiting {
    border-color: #ff9900;
    background-color: rgba(227, 220, 205, 0.2);
    color: #ff9900;
}

.user-dash-tickets .ticket-label.closed {
    border-color: #ff0000;
    background-color: rgba(227, 205, 205, 0.2);
    color: #ff0000;
}

.close-ticket.btn {
    padding: 0.5vw;
    width: 10vw;
    background-color: #ee0823;
    border-radius: 0.7vw;
    position: absolute;
    top: 2.25vw;
    left: 2vw;
    cursor: pointer;
    color: var(--light-font);
    z-index: 3;
    transition: all 0.25s;
    font-size: 0.9vw;
    gap: 0.75vw;
    font-weight: 500;
    transform: scale(0.85);
}

.close-ticket.btn:hover {
    filter: brightness(1.4);
}

.close-ticket.btn i {
    font-size: 1.2vw;
}

.ticket-msg-box-cont.side1 {
    padding: 0.5vw;
    width: 100%;
    justify-content: start!important;
}

.ticket-msg-box.side1 {
    padding: 0.5vw 1vw;
    width: 70%;
    min-height: 5vw;
    gap: 1vw;
    border-radius: 2vw 0 2vw 2vw;
    background-color: rgba(192, 192, 192, 0.4);
    justify-content: start!important;
    position: relative;
}


body.dark .ticket-msg-box.side1 {
    background-color: rgba(192, 192, 192, 0.2);
}

.ticket-msg-box.side1 .ticket-msg-box-header {
    width: 100%;
    justify-content: start!important;
}

.ticket-msg-box-header figure {
    width: 3vw;
    height: 3vw;
    overflow: hidden;
    border-radius: 50%;
    border: 0.15vw solid silver;
    font-size: 1.6vw;
}

.ticket-msg-box-header figure i {
    position: absolute;
    z-index: 1;
}

.ticket-msg-box-header figure img {
    width: 100%;
    position: relative;
    z-index: 2;
}

.ticket-msg-writer-details {
    width: 60%;
    gap: 0.15vw;
    align-items: start!important;
    margin-right: 0.5vw;
}

.ticket-msg-writer-details h3 {
    color: var(--blue2);
    font-size: 0.95vw;
    font-weight: 500;
}

.ticket-msg-writer-details h6 {
    font-size: 0.8vw;
    font-weight: 300;
    font-family: Vazir, sans-serif;
}

.ticket-msg-box.side1 .ticket-msg-text {
    padding: 0.5vw 1vw;
    width: 100%;
    text-align: justify;
    font-size: 0.85vw;
    font-weight: 300;
}

.ticket-msg-box-cont.side2 {
    padding: 0.5vw 1vw;
    width: 100%;
    justify-content: end!important;
}

.ticket-msg-box.side2 {
    padding: 0.75vw;
    width: 70%;
    min-height: 5vw;
    gap: 1vw;
    border-radius: 0 2vw 2vw 2vw;
    background-color: rgba(152, 218, 255, 0.4);
    justify-content: start!important;
    position: relative;
}

body.dark .ticket-msg-box.side2 {
    background-color: rgba(152, 218, 255, 0.2);
}

.ticket-msg-box.side2 .ticket-msg-box-header {
    width: 100%;
    justify-content: end!important;
}

.ticket-msg-box-header figure {
    width: 3vw;
    height: 3vw;
    overflow: hidden;
    border-radius: 50%;
    border: 0.15vw solid silver;
    font-size: 1.6vw;
}

.ticket-msg-box-header figure i {
    position: absolute;
    z-index: 1;
}

.ticket-msg-box-header figure img {
    width: 100%;
    position: relative;
    z-index: 2;
}

.ticket-msg-box.side2 .ticket-msg-writer-details {
    width: 60%;
    gap: 0.15vw;
    align-items: end!important;
    margin-left: 0.5vw;
}

.ticket-msg-writer-details h3 {
    color: var(--blue2);
    font-size: 0.95vw;
    font-weight: 500;
}

.ticket-msg-writer-details h3 a {
    color: var(--blue2);
}

.ticket-msg-writer-details h6 {
    font-size: 0.8vw;
    font-weight: 300;
    font-family: Vazir, sans-serif;
}

.ticket-msg-box.side2 .ticket-msg-text {
    padding: 0.5vw 1vw;
    width: 100%;
    text-align: justify;
    font-size: 0.85vw;
    font-weight: 300;
}

.text-area-container {
    padding: 1vw;
    width: 100%;
    position: relative;
    align-items: end!important;
    gap: 1vw;
}

.text-area-container textarea {
    padding: 1vw;
    width: 100%;
    min-height: 10vw;
    border-radius: 1.6vw;
    box-shadow: 0 0 0.5vw rgba(0, 0, 0, 0.2);
    resize: none;
    border: none;
    outline: none;
    font-family: Vazir, sans-serif;
    font-weight: normal;
    font-size: 0.95vw;
    background-color: var(--light-bg);
    caret-color: var(--blue2);
}

body.dark .text-area-container textarea {
    background-color: var(--dark-bg);
    color: var(--light-bg);
    box-shadow: 0 0 0.6vw rgba(0, 0, 0, 0.55);
}

.text-area-container textarea::placeholder {
    color: var(--dark-font);
}

.text-area-container textarea:focus {
    border: 0.1vw solid var(--blue2);
}

.text-area-container .btn {
    background-color: var(--blue2);
    min-width: 10vw;
    color: var(--light-font);
    transition: all 0.25s;
}

.text-area-container .btn:hover {
    filter: brightness(1.2);
    color: var(--dark-font);
}

@media screen and (max-width: 450px){

    h1.title {
        margin-top: 8vw;
    }

    .ticket-messages-container {
        padding: 2vw;
        min-height: 20vw;
        gap: 2vw;
    }

    .user-dash-tickets .ticket-label {
        margin-right: 2vw;
        padding: 0.4vw 0.95vw;
        min-width: 12vw;
        font-size: 2.72vw;
        border: 0.3vw solid;
        border-radius: 1vw;
        text-align: center;
    }

    .close-ticket.btn {
        padding: 1.5vw;
        width: 32vw;
        border-radius: 1.7vw;
        top: 5vw;
        left: 1vw;
        font-size: 3.2vw;
        gap: 1vw;
    }

    .close-ticket.btn i {
        font-size: 3.5vw;
    }

    .ticket-msg-box-cont.side1 {
        padding: 0.5vw;
        width: 100%;
        justify-content: start!important;
    }

    .ticket-msg-box.side1 {
        padding: 2vw 3vw;
        width: 85%;
        min-height: 20vw;
        gap: 1vw;
        border-radius: 4vw 0 4vw 4vw;
    }

    .ticket-msg-box-header figure {
        width: 8vw!important;
        height: 8vw!important;
        border: 0.3vw solid silver!important;
        font-size: 5vw!important;
    }

    .ticket-msg-writer-details {
        gap: 0.5vw;
        margin-right: 2.5vw;
    }

    .ticket-msg-writer-details h3 {
        font-size: 3vw!important;
    }

    .ticket-msg-writer-details h6 {
        font-size: 2.2vw!important;
    }

    .ticket-msg-box.side1 .ticket-msg-text {
        padding: 1vw 2vw;
        font-size: 2.85vw;
    }

    .ticket-msg-box-cont.side2 {
        padding: 0.5vw 1vw;
        width: 100%;
        justify-content: end!important;
    }

    .ticket-msg-box.side2 {
        padding: 2vw 3vw;
        width: 85%;
        min-height: 20vw;
        gap: 1vw;
        border-radius:  0 4vw 4vw 4vw;
    }

    .ticket-msg-box.side2 .ticket-msg-box-header {
        width: 100%;
        justify-content: end!important;
    }

    .ticket-msg-box-header figure {
        width: 8vw!important;
        height: 8vw!important;
        border: 0.3vw solid silver!important;
        font-size: 5vw!important;
    }

    .ticket-msg-box.side2 .ticket-msg-writer-details {
        gap: 0.5vw;
        margin-left: 2.5vw;
    }

    .ticket-msg-writer-details h3 {
        font-size: 3vw!important;
    }

    .ticket-msg-writer-details h6 {
        font-size: 2.2vw!important;
    }

    .ticket-msg-box.side2 .ticket-msg-text {
        padding: 1vw 2vw;
        font-size: 2.85vw;
    }

    .text-area-container {
        padding: 2vw;
        gap: 2vw;
    }

    .text-area-container textarea {
        padding: 1vw;
        min-height: 90vw;
        border-radius: 3vw;
        box-shadow: 0 0 2.5vw rgba(0, 0, 0, 0.2);
        font-size: 2.95vw;
    }

    body.dark .text-area-container textarea {
        box-shadow: 0 0 1.6vw rgba(0, 0, 0, 0.55);
    }

    .text-area-container textarea:focus {
        border: 0.35vw solid var(--blue2);
    }

    .text-area-container .btn {
        padding: 2vw;
        margin-top: 5vw;
        min-width: 30vw;
        font-size: 3.5vw;
        border-radius: 2.5vw;
    }
}