/* AI Chat Widget Styles - Integrated for Upgrades Center */

#uc-chat-widget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    z-index: 999999999;
}

#uc-chat-header {
    background: linear-gradient(135deg, #12599d 0%, #0d4275 100%);
    color: #fff;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Inter, Helvetica, Arial;
}

#uc-chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    transition: opacity 0.2s;
}

#uc-chat-close:hover {
    opacity: 0.8;
}

#uc-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f9f9f9;
}

.uc-message {
    max-width: 80%;
    padding: 10px 12px;
    border-radius: 10px;
    word-wrap: break-word;
    font-family: Inter, Helvetica, Arial;
    font-size: 14px;
    line-height: 1.4;
}

.uc-bot-message {
    background: #fff;
    color: #333;
    align-self: flex-start;
    border: 1px solid #e0e0e0;
}

.uc-user-message {
    background: #12599d;
    color: #fff;
    align-self: flex-end;
}

.uc-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.uc-option-btn {
    background: #fff;
    color: #12599d;
    border: 2px solid #12599d;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-family: Inter, Helvetica, Arial;
    font-size: 13px;
    transition: all 0.2s;
}

.uc-option-btn:hover {
    background: #12599d;
    color: #fff;
}

#uc-chat-input-container {
    display: flex;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 0 0 10px 10px;
}

#uc-chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    font-family: Inter, Helvetica, Arial;
    font-size: 14px;
}

#uc-chat-input:focus {
    border-color: #12599d;
}

#uc-chat-send {
    background: #12599d;
    color: #fff;
    border: none;
    padding: 10px 15px;
    margin-left: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-family: Inter, Helvetica, Arial;
    transition: background 0.2s;
}

#uc-chat-send:hover {
    background: #0d4275;
}

#uc-chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #12599d 0%, #0d4275 100%);
    color: #fff;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(18, 89, 157, 0.4);
    z-index: 999999998;
    transition: transform 0.2s, box-shadow 0.2s;
}

#uc-chat-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(18, 89, 157, 0.5);
}

/* Responsive adjustments */
@media only screen and (max-width: 479px) {
    #uc-chat-widget {
        width: calc(100% - 20px);
        height: calc(100% - 100px);
        bottom: 70px;
        right: 10px;
        left: 10px;
    }
    
    #uc-chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
}

@media only screen and (min-width: 480px) and (max-width: 767px) {
    #uc-chat-widget {
        width: 320px;
        height: 450px;
    }
}
