/* Sales Bot Premium UI - Suhana Edition */
:root {
    --bot-gold: #c9a44a;
    --bot-gold-light: #e7cf88;
    --bot-navy: #0b1d36;
    --bot-navy-deep: #020617;
    --bot-glass: rgba(255, 255, 255, 0.95);
}

.sales-bot-widget {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Shifted to left */
    z-index: 99999;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.bot-bubble {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--bot-gold) 0%, #a67c00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(201, 164, 74, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: float 4s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.bot-bubble:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 45px rgba(201, 164, 74, 0.6);
}

.bot-bubble svg {
    width: 30px;
    height: 30px;
    fill: white;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.chat-window {
    position: absolute;
    bottom: 85px;
    left: 0; /* Align to left */
    width: 400px;
    height: 600px;
    background: var(--bot-glass);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom left; /* Origin from left */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.chat-window.active {
    display: flex;
    opacity: 1;
    pointer-events: all;
    transform: scale(1) translateY(0);
}

.chat-header {
    background: linear-gradient(135deg, var(--bot-navy) 0%, var(--bot-navy-deep) 100%);
    padding: 24px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--bot-gold);
}

.chat-header .bot-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-header .bot-info .name {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.chat-header .bot-info .status {
    font-size: 0.8rem;
    background: #22c55e;
    color: white;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 600;
}

.chat-messages {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #fdfdfd;
}

.msg {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 0.98rem;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.msg.bot {
    background: #f1f5f9;
    color: #1e293b !important; /* Forced visibility */
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(0,0,0,0.05);
}

.msg.user {
    background: var(--bot-gold);
    color: #000;
    font-weight: 600;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 24px;
    background: white;
    display: flex;
    gap: 12px;
    border-top: 1px solid #f1f1f1;
}

.chat-input {
    flex: 1;
    border: 2px solid #f1f1f1;
    border-radius: 16px;
    padding: 12px 20px;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    border-color: var(--bot-gold);
}

.send-btn {
    background: var(--bot-gold);
    color: #000;
    border: none;
    border-radius: 16px;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 164, 74, 0.3);
}

.wa-handoff-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
    background: #25d366;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2);
}

.wa-handoff-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
}