/* Premium Floating Chatbot Stylesheet */

.tradein-bot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2147483647;
    font-family: 'Mulish', sans-serif;
}

.tradein-bot-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF851B 0%, #FF6B00 100%);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tradein-bot-bubble:hover {
    transform: scale(1.08) rotate(15deg);
    box-shadow: 0 12px 30px rgba(255, 107, 0, 0.45);
}

.tradein-bot-bubble:active {
    transform: scale(0.95);
}

.tradein-bot-window {
    position: fixed;
    bottom: 105px;
    right: 30px;
    width: 380px;
    height: 560px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 29, 49, 0.16);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 2147483647;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.tradein-bot-window.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.tradein-bot-header {
    background: linear-gradient(135deg, #FF851B 0%, #FF6B00 100%);
    color: #ffffff;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 17px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tradein-bot-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tradein-bot-header-status {
    width: 8px;
    height: 8px;
    background: #2ECC71;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #2ECC71;
}

.tradein-bot-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tradein-bot-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.tradein-bot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    background: #F8F9FA;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}

.tradein-bot-message {
    display: flex;
    width: 100%;
    animation: messageSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes messageSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.tradein-bot-message-content {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    font-weight: 500;
}

.tradein-bot-message.user .tradein-bot-message-content {
    background: #FF851B;
    color: #ffffff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 10px rgba(255, 133, 27, 0.15);
}

.tradein-bot-message.bot .tradein-bot-message-content {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    color: #1A2B3C;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 29, 49, 0.02);
}

.tradein-bot-input-area {
    padding: 16px 20px;
    border-top: 1px solid #E2E8F0;
    display: flex;
    gap: 10px;
    background: #ffffff;
    flex-shrink: 0;
    align-items: center;
}

.tradein-bot-input {
    flex: 1;
    border: 1px solid #CBD5E1;
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: all 0.2s ease;
    color: #1A2B3C;
}

.tradein-bot-input:focus {
    border-color: #FF851B;
    box-shadow: 0 0 0 3px rgba(255, 133, 27, 0.15);
}

.tradein-bot-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FF851B;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(255, 133, 27, 0.2);
    font-size: 14px;
}

.tradein-bot-send:hover {
    background: #FF6B00;
    transform: scale(1.05);
}

.tradein-bot-send:active {
    transform: scale(0.95);
}

.tradein-cta {
    display: block;
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #FF851B 0%, #FF6B00 100%);
    color: #ffffff !important;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.2);
}

.tradein-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(255, 107, 0, 0.3);
}

.tradein-bot-link {
    color: #FF851B !important;
    font-weight: 700;
    text-decoration: underline !important;
    transition: color 0.2s ease;
}

.tradein-bot-link:hover {
    color: #FF6B00 !important;
}

@media (max-width: 480px) {
    .tradein-bot-window {
        width: calc(100% - 32px);
        height: calc(100% - 100px);
        bottom: 80px;
        right: 16px;
    }
    .tradein-bot-bubble {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}
