﻿:root {
    --color-primary: #305590;
    --color-secondary: #d1e8ff;
    --color-user: #d1e8ff;
    --color-bot: #fff;
    --color-suggestion: #e5f2fb;
    --color-suggestion-hover: #c6defa;
    --color-text: #333;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", sans-serif;
}

.chat-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    background: #fff;
    border: none;
}


.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--color-primary);
    color: #fff;
    padding: 10px 16px;
}

    .chat-header > div > div:first-child {
        font-size: 18px;
        font-weight: 600;
    }

    .chat-header > div > div:last-child {
        font-size: 12px;
        font-weight: 400;
    }

.chat-container {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px 22px 0 22px;
    display: flex;
    flex-direction: column;
}

.chat-message {
    margin-bottom: 22px;
    max-width: 95%;
    display: flex;
    flex-direction: column;
}

    .chat-message.user {
        align-self: flex-end;
    }

    .chat-message.bot {
        align-self: flex-start;
    }

    .chat-message.user .message-footer {
        justify-content: flex-end;
    }

.bubble-content {
    /*margin: 0;*/
    padding: 10px 16px;
    font-size: 1rem;
    line-height: 1.4;
    word-wrap: break-word;
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(48,85,144,0.03);
}

.chat-message.user .bubble-content {
    background-color: var(--color-user);
    color: #305590;
    border-radius: 18px 6px 18px 18px;
}

.chat-message.bot .bubble-content {
    background-color: var(--color-bot);
    border: 1px solid #e3e8ef;
    border-radius: 6px 18px 18px 18px;
}

.bubble-content p:first-child {
    margin-top: 0;
}

.bubble-content p:last-child {
    margin-bottom: 0;
}


.bubble-content.is-revealing > * {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

    .bubble-content.is-revealing > *.visible {
        opacity: 1;
        transform: translateY(0);
    }

.message-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 4px 8px 0 8px;
    gap: 12px;
}

.timestamp {
    font-size: 11px;
    color: #666;
    position: relative;
    top: 2px;
}


.bot-actions {
    display: flex;
    align-items: center;
}

    .bot-actions button {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1.05rem;
        margin-right: 8px;
        padding: 2px;
        color: #bbb;
        transition: color 0.2s, transform 0.2s;
    }

        .bot-actions button:hover,
        .bot-actions button.active {
            color: var(--color-primary);
            transform: scale(1.15);
        }



.suggestions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #eee;
    background-color: #ffffff;
}

.suggestion-chip {
    background: #fcfdfe;
    color: #305590;
    border: 1px solid #e0eaf3;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.18s;
}

    .suggestion-chip:hover {
        background: #f0f6ff;
        color: #004a99;
        box-shadow: 0 2px 8px rgba(48,85,144,0.10);
    }

.chat-input {
    display: flex;
    padding: 14px 12px 14px 22px;
    border-top: 1px solid #e1e7ef;
    align-items: center;
    gap: 10px;
}

    .chat-input textarea {
        flex-grow: 1;
        padding: 10px 15px;
        border-radius: 20px;
        border: 1px solid #e0e0e0;
        font-size: 16px;
        font-family: "Segoe UI", sans-serif;
        line-height: 1.4;
        outline: none;
        resize: none;
        overflow-y: hidden;
    }

.input-disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
}


.chat-input button {
    background-color: transparent;
    border: none;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

    .chat-input button svg {
        fill: #b0c4d9;
        transition: fill 0.2s;
    }

    .chat-input button.active {
        cursor: pointer;
    }

        .chat-input button.active svg {
            fill: var(--color-primary);
        }


.header-action-button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    transition: color 0.25s ease-in-out !important;
    transition: all 0.25s ease-in-out !important;
}

    .header-action-button:hover {
        color: var(--color-secondary);
        transform: scale(1.30);
    }

.typing-bubble {
    background-color: var(--color-bot);
    border: 1px solid #e3e8ef;
    border-radius: 6px 18px 18px 18px;
    padding: 14px 18px;
}

.typing-dots {
    display: flex;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #b0c4d9;
    margin: 0 2px;
    animation: dot-bounce 1.4s infinite ease-in-out both;
}

    .dot:nth-child(1) {
        animation-delay: -0.32s;
    }

    .dot:nth-child(2) {
        animation-delay: -0.16s;
    }

@keyframes dot-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}
