* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1C271C;
    color: #fafafa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: scroll;
}

a {
    color: aquamarine;
    text-decoration: none;
}

header {
    background-color: #293327;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #1c271c;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-icon {
    width: 1.5rem;
    height: 1.5rem;
    background-color: #1f321e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon img {
    width: 1rem;
    height: 1rem;
}

#arrow-icon {
    width: 1.5rem;
    height: 1.5rem;
    background-color: #1f321e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-title {
    font-size: 1rem;
    font-weight: bold;
}

#chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: 85%;
}

.message.bot {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
    margin-left: auto;
}

.message.bot .avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #2F3D2D;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message.bot .avatar img {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
}

.message.bot .arrow {
    width: 1rem;
    height: 1rem;
    margin-top: 0.5rem;
}

.message.bot .arrow img {
    width: 100%;
    height: 100%;
}

.message-content {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    word-break: break-word;
}

.message.bot .message-content {
    background-color: #2F3D2D;
}

.message.user .message-content {
    background-color: #688F62;
}

.message-time {
    font-size: 0.625rem;
    opacity: 0.7;
    margin-top: 0.25rem;
    text-align: right;
}

.typing-indicator {
    display: none;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
}

.typing-indicator.active {
    display: flex;
}

.typing-indicator .avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #2F3D2D;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing-indicator .avatar img {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
}

.typing-indicator .arrow {
    width: 1rem;
    height: 1rem;
}

.typing-indicator .arrow img {
    width: 100%;
    height: 100%;
}

.typing-indicator div {
    background-color: #131d12;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border-bottom-left-radius: 0;
}

.typing-indicator .dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #fafafa;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.25rem;
    animation: bounce 0.6s infinite;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: 150ms;
}

.typing-indicator .dot:nth-child(3) {
    animation-delay: 300ms;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.input-area {
    padding: 0.75rem;
    border-top: 1px solid #1c271c;
    background-color: #1C271C;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-container {
    display: flex;
    gap: 0.5rem;
}

#message-input {
    flex: 1;
    background-color: #293129;
    color: #fafafa;
    border: none;
    border-radius: 9999px;
    padding: 0.5rem 0.75rem;
    outline: none;
    font-size: 0.875rem;
}

#message-input::placeholder {
    color: #6F7B6D;
}

#message-input:focus {
    box-shadow: 0 0 0 2px #fafafa;
}

#send-button {
    background-color: #1C271C;
    border: none;
    border-radius: 50%;
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#send-button:hover {
    background-color: #1f321e;
}

#send-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    color: rgb(250 250 250 / var(--tw-text-opacity, 1));
    border-color: #e5e7eb;
}

footer {
    padding: 0.75rem;
    border-top: 1px solid #1c271c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

footer p {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 0.75rem;
}

.footer-links a {
    color: #fafafa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a.telegram:hover {
    color: #60a5fa;
}

.footer-links a.instagram:hover {
    color: #f472b6;
}

.footer-links div {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: #1f321e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-links img {
    width: 0.875rem;
    height: 0.875rem;
}