#gpt-chat-container {
    max-width: 600px;
    margin: 20px auto;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gpt-chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
}

.gpt-chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.gpt-chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #f7f8fa;
}

.gpt-chat-message {
    margin-bottom: 15px;
    display: flex;
}

.gpt-chat-message.user {
    justify-content: flex-end;
}

.gpt-chat-message.bot {
    justify-content: flex-start;
}

.gpt-chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.5;
    word-wrap: break-word;
}

.gpt-chat-message.user .gpt-chat-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.gpt-chat-message.bot .gpt-chat-bubble {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gpt-chat-input-area {
    display: flex;
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    gap: 10px;
}

#gpt-chat-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    resize: none;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

#gpt-chat-input:focus {
    border-color: #667eea;
}

#gpt-chat-send {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

#gpt-chat-send:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#gpt-chat-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.gpt-chat-message.typing .gpt-chat-bubble {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes dotPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.gpt-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.gpt-chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.gpt-chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.gpt-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
