#ai-chatbox {
    max-width: 600px;
    margin: 40px auto;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    font-family: "Segoe UI", sans-serif;
}

.chat-window {
    max-height: 400px;
    overflow-y: auto;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 10px;
}

.chat-window .msg {
    padding: 8px 12px;
    margin: 6px 0;
    border-radius: 6px;
    white-space: pre-wrap;
    line-height: 1.5;
}

.chat-window .msg.user {
    background: #d0e8ff;
    text-align: right;
}

.chat-window .msg.ai {
    background: #e9ffe9;
    text-align: left;
}

.chat-input-area {
    display: flex;
    gap: 8px;
}

.chat-input-area textarea {
    flex: 1;
    resize: none;
    padding: 10px;
    height: 50px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.chat-input-area button {
    padding: 10px 20px;
    border: none;
    background: #0073aa;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.chat-input-area button:hover {
    background: #005d8f;
}

.chat-spinner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
