/* Main widget container */
#chatgpt-support-widget {
    position: fixed;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
}
#chatgpt-support-widget.bottom-right {
    right: 20px;
}

/* Floating Button */
#chatgpt-support-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0073aa;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    font-weight: 500;
}

#chatgpt-support-button:hover {
    background: #005a87;
    transform: scale(1.05);
}

#chatgpt-support-button svg {
    flex-shrink: 0;
}

/* Chat Popup */
#chatgpt-support-popup {
    position: absolute;
    bottom: 70px;
    width: 350px;
    max-height: 500px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-widget-bottom-right {
    right: 20px;
}

.chat-widget-bottom-left {
    left: 20px;
}

.chat-header {
    background: #0073aa;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.chat-close:hover {
    background: rgba(255,255,255,0.2);
}

.chat-body {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    border-bottom: 1px solid #eee;
}

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

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

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

.message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
    font-size: 16px;
}

.message.user .message-content {
    background: #0073aa;
    color: white;
    border-bottom-right-radius: 4px;
}

.message.bot .message-content {
    background: #f1f1f1;
    color: #333;
    border-bottom-left-radius: 4px;
}

.message-content a {
    color: #0073aa;
    text-decoration: underline;
}

.message-content a:hover {
    color: #005a87;
}

.message-content ul, .message-content ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.message-content li {
    margin: 0.25em 0;
}

.message-content p {
    margin: 0.5em 0;
}

.message-content strong {
    font-weight: 600;
}

.message-content em {
    font-style: italic;
}

.chat-input {
    display: flex;
    padding: 15px;
}

.chat-input textarea {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    resize: none;
    font-family: inherit;
    font-size: 14px;
}

.chat-input button {
    margin-left: 10px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 20px;
    cursor: pointer;
    font-weight: 500;
}

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

/* Responsive adjustments */
@media (max-width: 480px) {
    #chatgpt-support-popup {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
    
    .chat-widget-bottom-left {
        left: 20px;
    }
}