main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 767px) {
    .nav li > form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.edit-input {
    width: 100%;
    height: 100%;
}

.grid-view .gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.chat-box {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    border-bottom: 1px solid #ddd;
    padding: 10px;
    background-color: #f8f9fa;
    scroll-behavior: smooth;
}

.chat-message-sender {
    font-weight: bold;
    margin-bottom: 5px;
}

.chat-message-text {
    background-color: #e9ecef;
    padding: 10px;
    border-radius: 10px;
    white-space: pre-wrap;

}

.chat-message-right, .chat-message-left {
    margin-bottom: 10px;
    width: 60%;
}

.chat-message-right {
    margin-left: auto;
}

.chat-message-right .chat-message-sender {
    text-align: right;
}

.chat-message-right .chat-message-datetime {
    text-align: right;
}

.new-message {
    bottom: 70px;
    right: 30px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: rgb(25, 135, 84); /* Цвет по умолчанию */
}


.new-message span {
    display: inline-block;
    transition: opacity 0.5s ease-in-out, background-color 0.5s ease-in-out;
}

/* При наведении скрываем текст числа */
.new-message:hover {
    background-color: rgb(40, 167, 69); /* Более светлый оттенок */
}

.new-message:hover span {
    opacity: 0;
}

/* Псевдоэлемент для отображения стрелки при наведении */
.new-message:hover::after {
    opacity: 1;
}

/* Псевдоэлемент для отображения стрелки при наведении */
.new-message::after {
    transition: opacity 0.5s ease-in-out, background-color 0.5s ease-in-out;
    opacity: 0;
    content: "\2193"; /* Юникод символ стрелки вниз */
    font-size: 1.5rem;
    position: absolute;
    color: white;
}

/* Анимация мигания */
@keyframes blink {
    0%, 100% {
        opacity: 1;
        background-color: rgb(25, 135, 84); /* Цвет по умолчанию */
    }
    50% {
        opacity: 0;
        background-color: rgb(40, 167, 69); /* Более светлый оттенок */
    }
}

/* Класс для мигания индикатора */
.blink-animation {
    animation: blink 1s ease 3; /* Анимация с 2 повторами, продолжительностью 0.5 сек */
}