/* Vardhaan Core Suite - WhatsApp Floating Widget & Popup */
#vcs-chat-root {
    position: fixed;
    bottom: 25px;
    z-index: 99998;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.vcs-chat-pos-right {
    right: 25px;
}
.vcs-chat-pos-left {
    left: 25px;
}

/* Floating WhatsApp Button */
.vcs-chat-button {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
    user-select: none;
}
.vcs-chat-button:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}
.vcs-wa-btn-icon {
    display: block;
    width: 40px !important;
    height: 40px !important;
}

/* Red Badge Dot */
.vcs-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #e53e3e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: vcs-pulse 2s infinite;
}
@keyframes vcs-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* Popup Chat Window */
.vcs-chat-popup {
    position: absolute;
    bottom: 74px;
    width: 320px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: vcs-slide-up 0.25s ease-out;
    border: 1px solid rgba(0,0,0,0.06);
}
.vcs-chat-pos-right .vcs-chat-popup {
    right: 0;
}
.vcs-chat-pos-left .vcs-chat-popup {
    left: 0;
}

@keyframes vcs-slide-up {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Popup Header */
.vcs-chat-header {
    background: linear-gradient(135deg, #0d2746, #0193ba);
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    position: relative;
}
.vcs-chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
}
.vcs-chat-info {
    flex-grow: 1;
}
#vcs-chat-root .vcs-chat-info h4 {
    margin: 0 0 1px 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.15 !important;
}
#vcs-chat-root .vcs-chat-status {
    font-size: 11px !important;
    color: #a7f3d0 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.15 !important;
}
.vcs-chat-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    padding: 4px;
    transition: opacity 0.15s;
}
.vcs-chat-close:hover {
    opacity: 1;
}

/* Popup Body & Bubble */
.vcs-chat-body {
    background: #e5ddd5;
    background-image: radial-gradient(#d1c7bc 10%, transparent 11%);
    background-size: 12px 12px;
    padding: 16px;
    min-height: 110px;
    display: flex;
    flex-direction: column;
}
.vcs-chat-bubble {
    background: #ffffff;
    border-radius: 0 10px 10px 10px;
    padding: 10px 12px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
    font-size: 13px;
    line-height: 1.45;
    color: #111827;
}
.vcs-chat-bubble:before {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 10px solid #ffffff;
    border-left: 8px solid transparent;
}
.vcs-bubble-content {
    white-space: normal !important;
    word-break: break-word;
    text-align: left !important;
    font-size: 13px;
    line-height: 1.35;
    color: #111827;
}
.vcs-bubble-content br {
    display: block;
    content: "";
    margin-top: 3px;
}
.vcs-bubble-time {
    display: block;
    text-align: right;
    font-size: 10px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Popup Footer / CTA */
.vcs-chat-footer {
    padding: 12px 16px;
    background: #ffffff;
    border-top: 1px solid #f3f4f6;
}
.vcs-chat-cta {
    width: 100%;
    background-color: #25d366;
    color: #ffffff;
    border: none;
    padding: 11px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}
.vcs-chat-cta:hover {
    background-color: #20ba5a;
    transform: translateY(-1px);
}
