.ai-chat-content {
    float: left;
    width: 600px;
    min-height: 535px;
    overflow: hidden;
    padding-top: 0;
    background-color: #fcfcfc;
    text-align: left;
    position: relative;
    top: -15px;
}

.ai-chat-box {
    width: 570px;
    height: 520px;
    margin: 0 auto;
    background: #ffffff;
    border: 2px solid #d09500;
    border-radius: 2px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
}

.ai-chat-header {
    padding: 14px 16px;
    border-bottom: 1px solid #d6d6d6;
    background: linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
    flex-shrink: 0;
}

.ai-chat-title {
    font-size: 22px;
    font-weight: 800;
    color: #444444;
    line-height: 1.2;
    text-transform: uppercase;
}

.ai-chat-title span {
    color: #f8b308;
}

.ai-chat-subtitle {
    font-size: 14px;
    color: #777777;
    margin-top: 3px;
}

.ai-chat-quick-actions {
    padding: 11px 14px;
    border-bottom: 1px solid #dcdcdc;
    background: #f7f7f7;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.ai-chat-quick-button,
.ai-chat-restart-button {
    border: 1px solid #d09500;
    background: #ffffff;
    color: #555555;
    border-radius: 2px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
    line-height: 1.2;
}

.ai-chat-quick-button:hover,
.ai-chat-restart-button:hover {
    background: #f8b308;
    border-color: #d09500;
    color: #ffffff;
}

.ai-chat-quick-button:focus,
.ai-chat-restart-button:focus {
    box-shadow: none;
}

.ai-chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #ffffff;
}

.ai-chat-messages::-webkit-scrollbar {
    width: 9px;
}

.ai-chat-messages::-webkit-scrollbar-track {
    background: #eeeeee;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
    background: #b5b5b5;
    border-radius: 8px;
}

.ai-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

.ai-message-row {
    display: flex;
    margin-bottom: 14px;
}

.ai-message-row.assistant {
    justify-content: flex-start;
}

.ai-message-row.user {
    justify-content: flex-end;
}

.ai-message-bubble {
    max-width: 405px;
    padding: 10px 13px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.45;
    word-wrap: break-word;
    white-space: pre-line;
}

.ai-message-bubble.assistant {
    background: #f1f1f1;
    color: #333333;
    border: 1px solid #dddddd;
}

.ai-stream-spinner {
    display: block;
    margin-top: 8px;
}

.ai-message-bubble.user {
    background: #f8b308;
    color: #ffffff;
    border: 1px solid #d09500;
    font-weight: 600;
}

.ai-answer-buttons {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 10px;
}

.ai-answer-button {
    border: 1px solid #d09500;
    background: #ffffff;
    color: #444444;
    border-radius: 3px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    line-height: 1.25;
    cursor: pointer;
}

.ai-answer-button:hover,
.ai-answer-button:focus {
    background: #f8b308;
    color: #ffffff;
    outline: none;
}

.ai-answer-button:disabled {
    cursor: default;
    opacity: 0.65;
}

.ai-message-time {
    font-size: 11px;
    color: #888888;
    margin-top: 4px;
    padding: 0 2px;
}

.ai-chat-input-area {
    padding: 12px 14px;
    border-top: 1px solid #d6d6d6;
    background: #f7f7f7;
    flex-shrink: 0;
}

.ai-chat-input {
    height: 42px;
    border-radius: 2px 0 0 2px;
    border: 1px solid #cfcfcf;
    border-right: none;
    font-size: 14px;
    padding-left: 13px;
    box-shadow: none;
}

.ai-chat-input:focus {
    border-color: #d09500;
    box-shadow: none;
}

.ai-chat-send-button {
    height: 42px;
    min-width: 90px;
    border-radius: 0 2px 2px 0;
    background: #f8b308;
    color: #ffffff;
    font-weight: 700;
    border: 1px solid #d09500;
}

.ai-chat-send-button:hover {
    background: #d09500;
    color: #ffffff;
}

.ai-chat-send-button:focus {
    box-shadow: none;
}

@media (max-width: 576px) {
    .ai-chat-content {
        width: 100%;
        min-height: 560px;
        top: 0;
    }

    .ai-chat-box {
        width: 100%;
        height: 560px;
    }

    .ai-chat-header {
        padding: 12px 14px;
    }

    .ai-chat-title {
        font-size: 18px;
    }

    .ai-chat-subtitle {
        font-size: 13px;
    }

    .ai-chat-quick-actions {
        padding: 10px 12px;
        gap: 6px;
    }

    .ai-chat-quick-button,
    .ai-chat-restart-button {
        font-size: 12px;
        padding: 6px 9px;
    }

    .ai-chat-messages {
        padding: 14px;
    }

    .ai-message-bubble {
        max-width: 260px;
        font-size: 13px;
    }

    .ai-chat-input-area {
        padding: 12px;
    }

    .ai-chat-send-button {
        min-width: 78px;
    }
}
