:root {
    /*--customgpt-primary-color: #2271b1;
    --customgpt-secondary-color: #44c7f5;
    */
    --customgpt-primary-color: #fece13;
    --customgpt-secondary-color: #000000;
    --customgpt-background-color: #f9f9fb;
    --customgpt-background-color2: rgb(211, 211, 211)b;
    --customgpt-border-color: #ccd0d4;
    --customgpt-bg-color: #000000;
}

.customgpt-chat-container {
    max-width: 100%;
    margin: 40px auto;
    background: var(--customgpt-bg-color);
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--customgpt-border-color) 11;
    border: 1px solid var(--customgpt-primary-color);
    padding: 24px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.customgpt-chat-messages {
    min-height: 120px;
    max-height: 450px;
    overflow-y: auto;
    padding: 20px 8px;
    background: #f7fafd;
    border-radius: 8px;
    border: 1px solid #e3e8ee;
    margin-bottom: 10px;
    font-size: 15px;
}

.customgpt-chat-form {
    display: flex;
    gap: 10px;
}

.customgpt-chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--customgpt-border-color);
    border-radius: 5px !important;
    font-size: 15px;
    background: var(--customgpt-background-color);
    transition: border-color 0.2s;
}

.customgpt-chat-input:focus {
    border-color: var(--customgpt-primary-color);
    outline: none;
}

.customgpt-chat-send {
    display: flex !important;
    align-items: center;
    /*background: linear-gradient(90deg, var(--customgpt-primary-color) 0%, var(--customgpt-secondary-color) 100%);*/
    background: var(--customgpt-primary-color) !important;
    border: none !important;
    color: #000 !important;
    padding: 0 22px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 2px 8px var(--customgpt-primary-color)33;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    height: 40px;
    align-self: flex-end;
}

.customgpt-chat-send:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 16px var(--customgpt-primary-color)44;
    transition: all ease-in-out 0.3s;
}

/**
* Loader styles
*/
.customgpt-chat-container .customgpt-loader {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
    border-radius: 16px;
}

.customgpt-chat-container.customgpt-loading .customgpt-loader {
    display: flex;
}

.customgpt-loader {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.customgpt-loader-spinner {
    width: 48px;
    height: 48px;
    border: 6px solid var(--customgpt-secondary-color);
    border-top: 6px solid var(--customgpt-primary-color);
    border-radius: 50%;
    animation: customgpt-spin 1s linear infinite;
    background: transparent;
}

@keyframes customgpt-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/**
*
*/
/* Chat üzenetek stílusok */
.customgpt-chat-message {
    display: block;
    max-width: 80%;
    margin-bottom: 8px;
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
    box-shadow: 0 2px 8px var(--customgpt-primary-color)22;
    position: relative;
    clear: both;
}

/* Felhasználó üzenete (jobb oldal, kék háttér) */
.customgpt-chat-message.user {
    /*background: linear-gradient(90deg, var(--customgpt-primary-color) 0%, var(--customgpt-secondary-color) 100%);*/
    background: var(--customgpt-secondary-color);
    color: #fff;
    margin-left: auto;
    text-align: right;
    border-bottom-right-radius: 4px;
}

/* AI üzenete (bal oldal, világos háttér) */
.customgpt-chat-message.bot {
    background: var(--customgpt-bg-color);
    color: var(--customgpt-primary-color);
    margin-right: auto;
    text-align: left;
    border-bottom-left-radius: 4px;
    border: 1px solid #e3e8ee;
}

/* Chat ablakban legyen egy kis térköz az üzenetek között */
.customgpt-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 6px;
}