:root {
    --white: #fff;
    --dark-gray: #333;
    --main-gray: #ededed;
    --light-gray: #f7f7f7;
    --dark-green: #009688;
    --info-message: rgba(225, 245, 254, .92);
}
ul{list-style: none;margin: 0;padding: 0;}
.chatroom{
    background: linear-gradient(to bottom, var(--dark-green) 1px, var(--dark-green) 130px, #dddbd1 131px, #d2dbdc 100%);
    background-repeat: no-repeat;
    min-height: 100vh;
}
button {
    background-color: transparent;
    color: inherit;
    border-width: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-align: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* Responsive Variables */
@media (min-width:768px) {
    .is-only-mobile {
        display: none !important;
    }
}


/*mixin*/
/*scrolls*/
::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
    background-color: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-track {
    background-color: rgba(255, 255, 255, 0.08);
}

/* utilities classes (always with !important)*/
.u-flex {
    display: flex !important;
}

.u-flex-column {
    flex-direction: column !important;
}

.u-margin-end {
    margin-left: 10px !important;
}

.u-hide {
    display: none !important;
}

/* animation */
@keyframes clickableAnimation {
    0% {
        transform: scale(1);
    }
    95% {
        transform: scale(1);
    }
    96% {
        transform: scale(1.5) rotate(-30deg);
    }
    97% {
        transform: scale(1.5) rotate(30deg);
    }
    100% {
        transform: scale(1);
    }
}
.u-animation-click {
    animation: clickableAnimation 20s ease-in-out -17s infinite;
}

/*icons*/
.icon-back {
    transform: scale(1.4);
    transform-origin: center;
}

.icon-status {
    filter: grayscale(1) opacity(0.3) invert(1);
}

.icon-silent {
    filter: grayscale(1) opacity(0.3);
}

.icon-attach { /*transform:rotateZ(70deg); transform-origin:center*/ }

.icon-menu {
    text-align: center;
}
.icon-menu::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--dark-gray);
    box-shadow: 0px -6px var(--dark-gray), 0px 6px var(--dark-gray);
}

/* Grid Layout */
.main-grid {
    --private-block-margins:0; /* private variables are for local componenet use */
    position: fixed;
    left: 0;
    right: 0;
    top: var(--private-block-margins);
    bottom: var(--private-block-margins);
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.06), 0 2px 5px 0 rgba(0, 0, 0, 0.2);
    overflow: hidden;
    /*logic styles*/
}
@media (max-width:767px), (min-width:768px) and (max-width:1023px), (min-width:1024px) and (max-width:1439px) {
    .main-grid > * {
        max-height: 100vh;
    }
}
@media (min-width:1440px) {
    .main-grid > * {
        max-height: calc(100vh - 40px);
    }
}
@media (min-width:768px) {
    .main-grid {
        display: grid;
        grid-template-areas:
            "side-a main side-b";
        grid-template-columns: minmax(260px, 30%) 1fr auto;
        border-radius: 6px;
    }
}
@media (min-width:1440px) {
    .main-grid {
        --private-block-margins:20px;
        width: 1396px;
        margin: 0 auto;
    }
}
@media (max-width:767px) {
    .main-grid.is-main-info-open .main-side {
        display: none;
    }
    .main-grid.is-main-info-open .main-content {
        display: none;
    }
    .main-grid.is-main-info-open .main-info {
        width: 100%;
        height: 100%;
    }
}
@media (min-width:768px) and (max-width:1023px) {
    .main-grid.is-main-info-open {
        grid-template-areas: "side-a side-b";
        grid-template-columns: minmax(260px, 30%) 1fr;
    }
    .main-grid.is-main-info-open .main-content {
        display: none;
    }
    .main-grid.is-main-info-open .main-info {
        width: auto;
    }
}
@media (max-width:767px) {
    .main-grid.is-message-open .main-content {
        transform: translateX(-100%);
    }
}

.main-side {
    grid-area: side-a;
}

.main-content {
    grid-area: main;
}

.main-info {
    grid-area: side-b;
}

/* elements */
.profile-image {
    flex-shrink: 0;
    display: block;
    height: 40px;
    border-radius: 50%;
}

.big-title {
    margin: 5px 0;
    font-size: 19px;
}

.section-title {
    color: var(--dark-green);
    font-size: 14px;
    margin-bottom: 10px;
}

.info-text {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.45);
}

.status {
}
.status.is-seen {color: #0d72fb !important;}

.text-input {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--white);
    /*padding: 10px;*/
    /*margin: 5px 10px;*/
    border-radius: 8px;
    border-width: 0;
}
.text-input:focus {
    outline: none;
}

.common-search {
    display: flex;
    flex-shrink: 0;
    background: var(--light-gray);
    position: relative;
    transition: 0.2s;
}
.common-search .icon{
    position: absolute;
    left: 30px;
    top: 20px;
    color: gray;
    visibility: visible;
}
.common-search .text-input {
    flex: 1;
    padding: 10px;
    margin: 8px 16px;
    font-size: .9rem;
}
/* وقتی input فوکوس می‌شود */
.common-search .text-input:focus ~ .icon {
    visibility: hidden;
}

.unread-messsages {
    display: inline-block;
    color: rgb(255, 255, 255);
    background-color: rgb(6, 215, 85);
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    vertical-align: middle;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 18px;
    padding: 0px 3px;
}
.unread-messsages:empty {
    display: none;
}

.common-button {
    padding: 8px;
    height: 100%;
    color: rgb(111 111 111);
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.1s ease;

}
.common-button:hover, .common-button:focus {
    outline: none;
    color: var(--dark-green);
}
.common-button:active {
    transform: translateY(2px);
}

.common-button .icon {
    display: block;
    width: 24px;
    font-size: 18px;
    vertical-align: middle;
    text-align: center;
    line-height: 1;
}

.twitter {
    display: block;
    color: rgb(29, 161, 242);
}
.twitter-label {
    margin-right: 10px;
}
.twitter-user {
    font-size: 20px;
}

/*** components ***/
.common-header {
    --common-header-border-color:#e0e0e0;
    display: flex;
    background-color: var(--main-gray);
    height: 60px;
    padding: 10px 16px;
    flex-shrink: 0;
}
.common-header-content {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: block;
}
.common-header-title {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    color: rgb(0, 0, 0);
    margin-bottom: 3px;
    font-size: .9rem;
}
.common-header-start {
    display: flex;
    margin-left: auto;
}
.common-header-content {
    margin: auto 15px;
    line-height: 1.5;
}

.common-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    align-items: center;
    height: 100%;
}
.common-nav-item {height: 100%;}

/*main*/
.main-content {
    display: flex;
    flex-direction: column;
}
.main-content .common-header {
    border-left: solid 1px var(--common-header-border-color);
}
@media (max-width:767px) {
    .main-content {
        position: fixed;
        right: -100%;
        top: 0;
        bottom: 0;
        width: 100%;
        transition: transform 0.4s;
    }
    .isconversation{
        right: 0 !important;
    }
}
.bg-messnager{
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    opacity: .05;
    z-index: 1;
    background: url('../images/chatbg.png') #e4dcd4;
}
.messanger {
    overflow-y: auto;
    scrollbar-width: thin;
    /*-webkit-overflow-scrolling:touch;*/
    flex: 1;
    background-color: #e5ddd5;
    position: relative;
}
.messanger:before{
    content: "";
    background: url('../images/chatbg.png') #e4dcd4;
    z-index: 1;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    opacity: .05;
    position: absolute;
}
.messanger-list {
    display: flex;
    flex-direction: column;
    padding: 20px 7%;
    position: relative;
    z-index: 1;
    list-style: none;
}

.common-message {
    position: relative;
    background-color: var(--white);
    width: fit-content;
    max-width: 500px;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
    margin-bottom: 10px;
    align-self: end;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.common-message time {
    font-size: .85rem;
    color: rgba(0, 0, 0, 0.45);
}
.common-message .status {
}
.common-message::before {
    position: absolute;
    left: -10px;
    top: 0;
    content: "";
    display: block;
    border: solid;
    border-width: 0px 16px 16px 0px;
    border-color: transparent;
    border-right-color: var(--white);
}
.common-message.is-you {
    --user-color-message:#cfe9ba;
    align-self: flex-start;
    background-color: var(--user-color-message);
}
.common-message.is-you::before {
    left: auto;
    right: -28px;
    border-width: 0px 16px 16px 16px;
    border-color: transparent;
    border-left-color: var(--user-color-message);
}
.common-message.is-you + .is-you::before {
    display: none;
}
.common-message.is-other + .is-other::before {
    display: none;
}
.common-message.is-time {
    align-self: center;
    background-color: var(--info-message);
    color: rgba(74, 74, 74, 0.88);
    font-size: 12px;
    text-transform: uppercase;
}
.common-message.is-time::before {
    display: none;
}

.message-box {
    display: flex;
    flex-shrink: 0;
    background-color: #f0f0f0;
    padding: 10px 10px;
    z-index: 1;
}
.message-box .text-input {
    flex: 1;
}
.message-box .text-input:empty::before {
    content: "Type a message";
    font-size: 15px;
    opacity: 0.5;
}

/*side (users)*/
.main-side {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    z-index: 2;
}

.chats {
    overflow-y: auto;
    scrollbar-width: thin; /*-webkit-overflow-scrolling:touch;*/
    background-color: var(--white);
}
.chats-item {
    position: relative;
    transition:background-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid #f2f2f2;
    padding: 5px 0;
}
.chats-item:hover{
    background-color: #f7f7f7;
}
.chats-item.active{
    background-color: #00968830;
}
.chats-item-button {
    display: grid;
    grid-template-columns: 50px 1fr;
    grid-column-gap: 15px;
    padding: 0 15px;
    cursor: pointer;
    grid-template-areas: "image header" "image content";
}
.chats-item-button:focus {
    outline: none;
}
.chats-item .profile-image {
    grid-area: image;
}
.chats-item-header {
    grid-area: header;
}
.chats-item-content {
    grid-area: content;
}
.chats-item .profile-image {
    flex-shrink: 0;
    height: 50px;
    margin: auto;
}
.chats-item-header {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    display: flex;
    padding-top: 10px;
}
.chats-item-title {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    flex: 1;
    font-weight: 500;
    margin-left: 10px;
    font-size: .9rem;
}
.chats-item-time {
    font-size: 11px;
    opacity: 0.6;
    font-weight: 300;
}
.chats-item-last {
    flex: 1;
    opacity: 0.6;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
}
.chats-item-content {
    display: flex;
    /*border-bottom: solid 1px #f2f2f2;*/
}
.chats-item-info {
    display: flex;
    position: relative;
    list-style: none;
}
.chats-item:last-child .chats-item-content {
    border-bottom-width: 0;
}

/*side (chat info)*/
.main-info {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    width: 300px;
}
.main-info .common-header {
    border-left: solid 1px var(--common-header-border-color);
}
.main-info-content {
    overflow-y: auto;
    scrollbar-width: thin; /*-webkit-overflow-scrolling:touch;*/
    background-color: var(--light-gray);
}
.main-info-image {
    display: block;
    max-width: 200px;
    margin: 0 auto;
    margin-bottom: 20px;
    border-radius: 50%;
}

.common-box {
    background-color: var(--white);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 10px;
}
.common-box p {
    font-size: 14px;
    color: #4a4a4a;
}

/* CSS Logilcs */
#message-box { /*when textbox empty show microhpone*/
    height: 34px;
    padding: 3px 10px;
    font-size: .9rem;
    line-height: 1.67;
}

.common-message-content{
    font-size: 1rem;
    line-height: 1.66;
    margin: 0;
}
.common-header-status{
    font-size: .8rem;
    color: #878787;
    font-weight: 200;
    letter-spacing: 0;
    display: inline-block;
    margin-right: 7px;
    margin-bottom: 0;
}
.common-message .statusbox{
    display: flex;
    align-items: center;
    gap: 4px;
}
.common-message .statusbox .status{
    line-height: 1;
    color: gray;
    font-size: 19px;
}
.common-message .statusbox .status .is-seen{}
.common-message .statusbox time{}

.loginChat-container{
    position: relative;
    background: linear-gradient(to bottom, var(--dark-green) 1px, var(--dark-green) 50%, #dddbd1 131px, #d2dbdc 100%);
    background-repeat: no-repeat;
    min-height: 100vh;
}
.login-chat{

}

.message-list__declaration--lock {
    width: 80%;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    background-color: #ffeecd;
    cursor: pointer;
    line-height: 1.5;
    margin: 2rem auto;
    font-size: .9rem;
    color: #676767;
    z-index: 2;
    position: relative;
}
.message-list__declaration--lock i{
    line-height: 1;
    vertical-align: -1;
    margin-left: 5px;
}
.chat-shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.dropdownchatment{
    font-size: .85rem;
    border-color: white;
}
.dropdownchatment .dropdown-item{
    cursor: pointer;
}



.typing-indicator {
    font-size: 0.85rem;
    color: #9FA6B2FF;
    font-style: italic;
    display: block;
    font-weight: 300;
    align-items: center;
}

.typing-dots {
    display: inline-block;
    vertical-align: middle;
}

.typing-dots span {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #9FA6B2FF;
    margin-right: 3px;
    animation: typing-dot 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-dot {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}
.status-bar {
    background-color: #fbfbfb;
    border-top: 1px solid #dcdada;
    font-size: 0.85rem;
    padding: 0px 5px;
    border-radius: 3px;
}
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-connected {
    background-color: #198754;
}

.status-disconnected {
    background-color: #dc3545;
}

.status-connecting {
    background-color: #ffc107;
}


/* انیمیشن برای پیام‌های ارسالی (از راست) */
@keyframes messageInRight {
    from {
        opacity: 0;
        transform: translateX(15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* انیمیشن برای پیام‌های دریافتی (از چپ) */
@keyframes messageInLeft {
    from {
        opacity: 0;
        transform: translateX(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* انیمیشن برای پیام‌های جدید (مشابه واتس‌اپ) */
@keyframes messageAppear {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* کلاس‌های انیمیشن */
.message-animation-in-right {
    animation: messageInRight 0.3s ease-out forwards;
    transform-origin: right bottom;
}

.message-animation-in-left {
    animation: messageInLeft 0.3s ease-out forwards;
    transform-origin: left bottom;
}

/* انیمیشن واتس‌اپی برای پیام‌ها */
.message-animation-appear {
    animation: messageAppear 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform-origin: center bottom;
}

/* اضافه کردن تأخیر برای پیام‌های متوالی */
.message-delay-1 { animation-delay: 0.05s; }
.message-delay-2 { animation-delay: 0.1s; }
.message-delay-3 { animation-delay: 0.15s; }

/* استایل برای نمایش انیمیشن "در حال ارسال" */
.message-sending::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* اضافه کردن وضعیت نسبی به پیام‌ها برای قرار دادن آیکون "در حال ارسال" */
.common-message {
    position: relative;
    transition: all 0.2s ease-out;
}

/* انیمیشن برای تیک‌های خوانده شدن */
.statusbox .is-seen {
    animation: checkmarkIn 0.3s ease-out forwards;
}


@keyframes typingAnimation {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}
.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #888;
    border-radius: 50%;
    margin-right: 3px;
    animation: typingAnimation 1s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}


@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

.message-error {
    animation: errorShake 0.5s ease-in-out;
    border-left: 3px solid red !important;
}


@keyframes messageDelete {
    from {
        opacity: 1;
        transform: scale(1);
        max-height: 500px;
    }
    to {
        opacity: 0;
        transform: scale(0.8);
        max-height: 0;
        margin: 0;
        padding: 0;
    }
}

.message-deleting {
    animation: messageDelete 0.3s ease-out forwards;
    overflow: hidden;
}

/* استایل برای وضعیت‌های مختلف پیام */
.status.is-sent {
    color: #999; /* خاکستری برای ارسال شده */
}

.status.is-delivered {
    color: #0099ff; /* آبی برای تحویل داده شده */
}

.status.is-seen {
    color: #0099ff; /* آبی پررنگ برای خوانده شده */
}

.status.is-error {
    color: #ff3b30; /* قرمز برای خطا */
}

/* انیمیشن برای تیک‌ها */
@keyframes checkmarkIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* انیمیشن برای تغییر وضعیت پیام */
@keyframes statusChange {
    0% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.status.is-delivered, .status.is-seen {
    animation: statusChange 0.3s ease-in-out;
}

.date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    position: relative;
    z-index: 1;
}

.date-separator:before {
    content: "";
    height: 1px;
    background-color: #e0e0e0;
    flex-grow: 1;
    margin-right: 15px;
}

.date-separator:after {
    content: "";
    height: 1px;
    background-color: #e0e0e0;
    flex-grow: 1;
    margin-left: 15px;
}

.date-separator span {
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #757575;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.common-nav{
    display: flex;
    align-items: center;
}
.search-chats-box{
    margin-left: 10px;
    position: relative;
    display: none;
}
.search-chats-box input{
    margin-left: 10px;
    border: 1px solid #ddd;
    font-size: .84rem;
    padding: 5px 10px;
    border-radius: 6px;
    width: 100%;
    transition: all 0.2s ease-out;
    outline: none;
}
.search-chats-box input:focus{
    border-color: var(--dark-green);
}

.message-highlight {
    position: relative;
}

.message-highlight .common-message-content {
    background-color: rgba(255, 255, 0, 0.2);
}

.message-active-highlight .common-message-content {
    background-color: rgba(255, 165, 0, 0.4);
    box-shadow: 0 0 5px rgba(255, 165, 0, 0.8);
}

.chat-image{
    position: relative;
    background: white;
    padding: 10px;
    border-radius: 6px;
}
.chat-image img{
    max-width: 250px;
}
@media (max-width:767px) {
    .chat-image img{
        max-width: 150px;
    }
}

/* استایل‌های پیشرفته برای نمایش وضعیت آپلود */
.upload-container {
    padding: 0.5rem !important;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.file-upload-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.file-type-icon {
    font-size: 1.8rem;
    margin-left: 10px;
    color: #3498db;
    transition: all 0.3s ease;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .85rem;
    font-family: serif;
}

.file-type {
    font-size: 0.8rem;
    opacity: 0.7;
}

.upload-progress-container {
    margin-top: 8px;
}

.progress-wrapper {
    position: relative;
}

.upload-progress {
    height: 0.8rem;
    border-radius: 1rem;
    overflow: hidden;
    background-color: rgba(0,0,0,0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) inset;
}

.progress-bar {
    position: relative;
    overflow: hidden;
    transition: width 0.8s ease-out, background-color 0.5s ease !important;
}

.progress-text {
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    margin-left: 5px;
}

.upload-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    font-size: 0.75rem;
    color: #555;
}

.status-text {
    transition: all 0.3s ease;
}

.upload-spinner {
    display: inline-block;
}

.spinner-grow {
    width: 0.5rem;
    height: 0.5rem;
    color: #3498db;
}

/* انیمیشن‌های پیشرفته */
.upload-animation {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.3s ease;
}

.upload-animation.fully-visible {
    transform: translateY(0);
    opacity: 1;
}

.message-fade-out {
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.pulsing {
    animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.upload-complete .file-type-icon {
    color: #2ecc71;
}

.upload-complete-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(46,204,113,0.2) 0%, rgba(46,204,113,0) 70%);
    animation: complete-pulse 1s ease-out;
    pointer-events: none;
}

@keyframes complete-pulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.success-icon {
    color: #2ecc71;
    animation: success-animation 0.5s ease-out;
}

@keyframes success-animation {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.chat-file{
    background: white;
    padding: 10px;
    border-radius: 6px;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-file i{font-size: 22px;color: var(--dark-green);}

.chat-file .file-size{
    color: gray;
    font-size: .8rem;
    font-family: tahoma, serif;
}
