/* Styling for the main chat container */
#gapgpt-chat-container {
    max-width: 800px;
    margin: 20px auto;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 70vh; /* ارتفاع چت‌باکس */
    background-color: #f9f9f9;
}

.chat-history {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Styling for the new chat input area */
.chat-input-area {
    border-top: 1px solid #e0e0e0;
    padding: 12px;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
}

.chat-input-area textarea {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    font-size: 16px;
    background-color: transparent;
    padding: 5px;
    box-sizing: border-box;
    max-height: 150px;
    font-family: inherit; /* ارث‌بری فونت از قالب */
}

.chat-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

#credit-display-container {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #777;
    font-weight: 600;
    background-color: #f0f0f0;
    padding: 3px 9px;
    border-radius: 12px;
    cursor: default;
}

#send-button {
    background-color: #7f56d9; /* A nice purple */
    color: white;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

#send-button:hover {
    background-color: #6941c6;
}
#send-button:active {
    transform: scale(0.95);
}

#send-button svg {
    width: 20px;
    height: 20px;
}
