.chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 340px;
    max-height: 500px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    font-family: sans-serif;
}

.chat-messages {
    flex-grow: 1;
    padding: 12px;
    overflow-y: auto;
    font-size: 14px;
    background-color: #f9f9f9;
}

.chat-messages .user {
    text-align: right;
    margin: 6px 0;
    color: #0077cc;
    white-space: pre-wrap;
}

.chat-messages .bot {
    text-align: left;
    margin: 6px 0;
    color: #333;
    white-space: pre-wrap;
}

#chat-form {
    display: flex;
    border-top: 1px solid #ddd;
}

#chat-form input {
    flex-grow: 1;
    border: none;
    padding: 12px;
    font-size: 14px;
    outline: none;
}

#chat-form button {
    background-color: #0077cc;
    color: white;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

#chat-form button:hover {
    background-color: #005fa3;
}
/* Центровка кнопки */
.center-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

/* Кнопка */
.round-button {
    text-decoration: none;
    padding: 14px 32px;
    background-color: #2a5298;
    color: white;
    font-size: 18px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.5s;
}

/* Анимация при появлении */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Пульсирующий эффект при наведении */
.round-button:hover {
    background-color: #1e3c72;
    box-shadow: 0 0 0 0 rgba(46, 102, 229, 0.7);
    animation: pulse 1s;
    transform: scale(1.05);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 102, 229, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(46, 102, 229, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 102, 229, 0);
    }
}
