﻿body {
    min-height: 100vh;
    background-color: var(--bulma-light);
    font-family: 'Roboto', sans-serif;
}

a:hover.is-hoverable {
    background: var(--bulma-light);
}

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    min-width: 260px;
    max-width: 360px;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    color: white;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    opacity: 0;
    transform: translateY(-10px);
    animation: toast-in 0.25s ease forwards;
    pointer-events: auto;
}

.toast-success {
    background: #48c78e;
}

.toast-error {
    background: #f14668;
}

.toast-info {
    background: #209cee;
}

.toast.fade-out {
    animation: toast-out 0.25s ease forwards;
}

@keyframes toast-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.page-title {
    font-family: 'Roboto', sans-serif !important;
}

.page-title {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.is-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-bottom: 1px solid #dbdbdb;
    margin-bottom: 2rem;
}

.icon-box {
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.is-bold {
    font-weight: bold;
}

.toast-box {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
    min-width: 320px;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 1s ease, transform 1s ease;
    pointer-events: none;
}

    .toast-box.is-visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

.is-rounded {
    border-radius: var(--bulma-radius-large);
}

.table td, .table th {
    vertical-align: middle !important;
}
#chatScroll {
    display: flex;
    flex-direction: column;
    background: #f5f7fb;
}
    #chatScroll::-webkit-scrollbar {
        width: 6px;
    }

    #chatScroll::-webkit-scrollbar-track {
        background: transparent;
    }

    #chatScroll::-webkit-scrollbar-thumb {
        background: rgba(42, 99, 255, 0.18);
        border-radius: 999px;
    }

        #chatScroll::-webkit-scrollbar-thumb:hover {
            background: rgba(42, 99, 255, 0.32);
        }

#chatScroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(42, 99, 255, 0.18) transparent;
}

#messagesContainer {
    padding-bottom: 110px;
}

    #messagesContainer .notification {
        border: 1px solid rgba(10, 10, 10, 0.04);
    }

    #messagesContainer .is-white {
        background: #ffffff;
        color: #1f2937;
    }

    #messagesContainer .is-link {
        background: linear-gradient(135deg, #3273dc, #4f8cff);
        color: #fff;
    }

#sendMessageForm {
    backdrop-filter: blur(10px);
}

#messageInput {
    border-radius: 16px;
    padding: 0.85rem 3.5rem 0.85rem 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

#messageInput:focus {
    box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.18), 0 8px 24px rgba(0, 0, 0, 0.06);
}

#sendMessageForm .button {
    border-radius: 12px;
    height: 2.2rem;
    width: 2.2rem;
    padding: 0;
}
.voice-message {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 420px;
    padding: 12px 14px;
    border-radius: 18px;
/*    background: #2b5278;*/
/*    color: #000;*/
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.voice-message__play {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
/*    background: rgba(255,255,255,0.18);*/
/*    color: #fff;*/
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
}

    .voice-message__play:hover {
        background: rgba(255,255,255,0.26);
    }

.voice-message__icon {
    font-size: 14px;
    margin-left: 2px;
}

.voice-message__content {
    flex: 1;
    min-width: 0;
}

.voice-message__top {
    margin-bottom: 8px;
}

.voice-message__wave {
    display: flex;
    align-items: end;
    gap: 3px;
    height: 28px;
}

    .voice-message__wave span {
        width: 3px;
        border-radius: 3px;
        background: var(--bulma-dark);
/*        animation: voiceWave 1s infinite ease-in-out;*/
    }

        .voice-message__wave span:nth-child(1) {
            height: 6px;
            animation-delay: 0s;
        }

        .voice-message__wave span:nth-child(2) {
            height: 12px;
            animation-delay: .1s;
        }

        .voice-message__wave span:nth-child(3) {
            height: 18px;
            animation-delay: .2s;
        }

        .voice-message__wave span:nth-child(4) {
            height: 10px;
            animation-delay: .3s;
        }

        .voice-message__wave span:nth-child(5) {
            height: 16px;
            animation-delay: .4s;
        }

        .voice-message__wave span:nth-child(6) {
            height: 8px;
            animation-delay: .5s;
        }

        .voice-message__wave span:nth-child(7) {
            height: 20px;
            animation-delay: .6s;
        }

        .voice-message__wave span:nth-child(8) {
            height: 14px;
            animation-delay: .7s;
        }

        .voice-message__wave span:nth-child(9) {
            height: 22px;
            animation-delay: .8s;
        }

        .voice-message__wave span:nth-child(10) {
            height: 11px;
            animation-delay: .9s;
        }

        .voice-message__wave span:nth-child(11) {
            height: 15px;
            animation-delay: 1s;
        }

        .voice-message__wave span:nth-child(12) {
            height: 9px;
            animation-delay: 1.1s;
        }

        .voice-message__wave span:nth-child(13) {
            height: 19px;
            animation-delay: 1.2s;
        }

        .voice-message__wave span:nth-child(14) {
            height: 13px;
            animation-delay: 1.3s;
        }

        .voice-message__wave span:nth-child(15) {
            height: 7px;
            animation-delay: 1.4s;
        }

.voice-message__progress-wrap {
    display: flex;
    align-items: center;
}

.voice-message__progress {
    width: 100%;
    accent-color: var(--bulma-info);
    cursor: pointer;
}

.voice-message__footer {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.9;
}

.voice-message__audio {
    display: none;
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.image-modal__img {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-radius: 6px;
}

.image-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 28px;
    line-height: 40px;
    cursor: pointer;
}

    .image-modal__close:hover {
        background: rgba(255, 255, 255, 0.25);
    }

body.modal-open {
    overflow: hidden;
}

@keyframes voiceWave {
    0%, 100% {
        transform: scaleY(.7);
        opacity: .7;
    }

    50% {
        transform: scaleY(1.2);
        opacity: 1;
    }
}

@keyframes voiceWave {
    0%, 100% {
        transform: scaleY(.7);
        opacity: .7;
    }

    50% {
        transform: scaleY(1.2);
        opacity: 1;
    }
}

@media screen and (max-width: 1023px) {
    #navbarMain {
        position: fixed;
        width: 100%;
        height: 100%;
        left: 0
    }
}


@media screen and (max-width: 768px) {

    .is-fullwidth-mobile {
        width: 100%;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .columns {
        margin-left: 0;
        margin-right: 0;
    }

    .column {
        padding-left: 0;
        padding-right: 0;
    }

    .box {
        box-shadow: none;
        padding: 0;
        min-height: calc(100vh - 75px);
        background-color: transparent;
    }

    .main {
        min-height: calc(100vh - 75px);
    }

    #chatScroll {
        height: calc(100vh - 140px) !important;
        border-radius: 0;
        background: #f5f7fb;
    }

    #messagesContainer {
        padding: 1rem 0.75rem 120px;
    }

        #messagesContainer .mb-4 {
            max-width: 100%;
        }

        #messagesContainer .notification {
            max-width: 88% !important;
            border-radius: 14px;
        }

    #sendMessageForm {
        position: sticky !important;
        bottom: 0 !important;
        padding: 0.75rem;
        background: rgba(247, 248, 251, 0.95);
        border-top: 1px solid rgba(10, 10, 10, 0.06);
    }

        #sendMessageForm .container {
            padding: 0;
        }

    #messageInput {
        min-height: 46px;
        max-height: 140px;
        font-size: 16px;
    }
}
