﻿.cf-empty-state {
    text-align: center;
    color: #0B132B;
    font-size: 1.2rem;
    padding: 20px 10px;
}

.cf-chat-history {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 12px;
    max-height: 70vh;
    overflow-y: auto;
}

.cf-chat-panel{
    margin-bottom:100px;
}

/* message container */
.cf-msg {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.cf-msg-user {
    align-items: flex-end;
}

.cf-msg-assistant {
    align-items: flex-start;
}

/* bubbles */
.cf-msg-bubble {
    padding: 8px 12px;
    border-radius: 14px;
    max-width: 75%;
    white-space: pre-wrap;
    word-break: break-word;
}

.cf-msg-user .cf-msg-bubble {
    background: #228be6;
    color: white;
    border-bottom-right-radius: 2px;
}

.cf-msg-assistant .cf-msg-bubble {
    background: #ffffff;
    border: 1px solid #dde1f0;
    color: #212529;
    border-bottom-left-radius: 2px;
}

.cf-msg-meta {
    font-size: 0.7rem;
    color: #868e96;
    margin-top: 2px;
}

/* typing indicator */
.cf-thinking span {
    width: 8px;
    height: 8px;
    background: #ced4da;
    display: inline-block;
    border-radius: 50%;
    margin-right: 4px;
    animation: pulse 1.2s infinite ease-in-out;
}

    .cf-thinking span:nth-child(2) {
        animation-delay: 0.2s;
    }

    .cf-thinking span:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: .6;
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: .6;
    }
}
/* Chat Wrapper */
.cf-chat-wrapper {
    position: sticky;
    bottom: 0;
    padding: 12px 16px;
    background: #fff;
    z-index: 10;
}

/* Chat input bar */
.cf-chat-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 780px;
    padding: 10px 14px 10px 18px;
    background: #ffffff;
    border-radius: 999px;
    border: 1px solid #dcdfea;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Text area */
.cf-chat-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    resize: none;
    color: #333;
    font-size: 1rem;
    line-height: 1.4;
}

    /* Placeholder */
    .cf-chat-input::placeholder {
        color: #9aa0b8;
    }

/* Focus */
.cf-chat-bar:focus-within {
    border-color: #74c0fc;
    box-shadow: 0 0 0 3px rgba(116,192,252,0.35);
}

/* Send button */
.cf-chat-send {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #4dabf7, #228be6);
    color: white;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(34,139,230,0.35);
    transition: 0.1s ease-out;
}

    .cf-chat-send:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 5px 14px rgba(34,139,230,0.45);
    }

    .cf-chat-send:disabled {
        opacity: 0.4;
        box-shadow: none;
    }

.cf-chat-helper-wrapper {
    width: 100%;
    max-width: 780px;
    margin-top: 16px; /* this creates the gap under the bar */
    padding-left: 4px;
}

.cf-chat-helper {
    font-size: 0.8rem;
    color: #6c757d;
}

#chatMessages {
    flex: 1 1 auto;
    overflow-y: auto; /* only this section scrolls */
    background: #f8f9fa;
}

.prompt-pill {
    background-color: #FAEFC1; /* Gold fill */
    color: #0B132B !important; /* White text */
    border: none; /* Remove border */
    width: 100%;
    min-height: 56px;
    padding: 0.35rem 0.75rem; /* Slightly smaller */
    font-size: 0.85rem; /* Smaller text */
    border-radius: 1rem; /* Pill shape */
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

    .prompt-pill:hover {
        background-color: #A8891C; /* Slightly darker gold */
        transform: translateY(-1px);
    }

    .prompt-pill:active {
        background-color: #8C7318; /* Further darker on click */
        transform: translateY(0);
    }

    /*NEW CHAT*/

.cf-chat-shell {
    width: 100%;
}

.cf-chat-surface {
    border-radius: 18px;
    overflow: hidden;
}

.cf-chat-history {
    height: calc(100vh - 280px);
    min-height: 420px;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(255,193,7,0.05), rgba(13,110,253,0.02));
}

.cf-msg {
    max-width: 820px;
    border-radius: 16px;
}

.cf-msg-user {
    background: rgba(13,110,253,.08);
    border: 1px solid rgba(13,110,253,.18);
}

.cf-msg-assistant {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
}

.cf-msg-text {
    white-space: pre-wrap;
    line-height: 1.45;
    font-size: 0.98rem;
}

.cf-chat-textbox textarea {
    min-height: 48px;
    max-height: 180px;
}
