body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #b71c1c 0%, #880e4f 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-window {
    width: min(480px, 90%);
    background: rgba(255, 0, 0, 0.65);
    border: 1px solid rgba(200, 0, 0, 0.25);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    padding: 24px;
}

#H1 {
    margin: 0 0 4px;
    font-size: 1.8rem;
    color: #ffffff;
    text-align: center;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.language-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.language-toggle:active {
    transform: scale(0.98);
}

.version {
    margin: 0 0 18px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
}

.chat-log {
    min-height: 280px;
    max-height: 380px;
    overflow-y: auto;
    padding: 16px;
    background: rgba(180, 0, 0, 0.45);
    border-radius: 16px;
    margin-bottom: 16px;
}

.message {
    margin-bottom: 12px;
    line-height: 1.5;
    padding: 12px 14px;
    border-radius: 16px;
    max-width: 86%;
    word-wrap: break-word;
}

.message.user {
    background: rgba(255, 80, 80, 0.75);
    color: #ffffff;
    align-self: flex-end;
    margin-left: auto;
}

.message.bot {
    background: rgba(255, 120, 120, 0.75);
    color: #ffffff;
    align-self: flex-start;
}

.message.typing {
    font-style: italic;
    opacity: 0.85;
}

.chat-controls {
    display: flex;
    gap: 12px;
}

#chat-input {
    flex: 1;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 1rem;
    outline: none;
    background: rgba(255, 120, 120, 0.75);
    color: #ffffff;
}

#chat-input::placeholder {
    color: #eeeeee;
}

#send-button {
    border: none;
    border-radius: 12px;
    padding: 0 20px;
    font-size: 1rem;
    cursor: pointer;
    background: #d32f2f;
    color: white;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#send-button:hover {
    transform: translateY(-1px);
    background: #b71c1c;
}
