/* Live Support Widget Styles */
.vc-live-support {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.vc-ls-button {
    width: 60px;
    height: 60px;
    background: #FF6B00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vc-ls-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(255, 107, 0, 0.4);
}

.vc-ls-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    display: none;
    overflow: hidden;
    flex-direction: column;
    transform-origin: bottom right;
}

.vc-ls-window.active {
    display: flex;
    animation: vcSlideIn 0.4s ease forwards;
}

@keyframes vcSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.vc-ls-header {
    background: #000;
    padding: 25px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vc-ls-header-info h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.vc-ls-header-info p {
    margin: 5px 0 0;
    font-size: 13px;
    opacity: 0.7;
}

.vc-ls-close {
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
}

.vc-ls-close:hover {
    opacity: 1;
}

.vc-ls-body {
    padding: 25px;
    max-height: 450px;
    overflow-y: auto;
}

.vc-ls-form-group {
    margin-bottom: 20px;
}

.vc-ls-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vc-ls-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    font-size: 14px;
    transition: 0.3s;
    outline: none;
}

.vc-ls-input:focus {
    border-color: #FF6B00;
    background: #fff;
}

.vc-ls-textarea {
    height: 100px;
    resize: none;
}

.vc-ls-submit {
    width: 100%;
    background: #FF6B00;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 15px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.vc-ls-submit:hover {
    background: #e66000;
}

.vc-ls-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.vc-ls-success {
    text-align: center;
    padding: 20px;
    display: none;
}

.vc-ls-success i {
    font-size: 50px;
    color: #22C55E;
    margin-bottom: 15px;
}

.vc-ls-success h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

.vc-ls-success p {
    font-size: 14px;
    color: #666;
}

/* Recent Chatters Section */
.vc-ls-recent {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.vc-ls-recent-label {
    font-size: 11px;
    font-weight: 800;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.vc-ls-recent-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vc-ls-recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vc-ls-recent-avatar {
    width: 28px;
    height: 28px;
    background: #FF6B0020;
    color: #FF6B00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.vc-ls-recent-name {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vc-ls-recent-name span {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.vc-ls-recent-name small {
    font-size: 11px;
    color: #999;
}

.vc-ls-online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    margin-left: 5px;
    position: relative;
    top: -2px;
}

.vc-ls-online-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #22C55E;
    border-radius: 50%;
    animation: vcPulse 1.5s infinite;
}

/* Chat History Container */
.vc-ls-history {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding: 10px 5px;
    max-height: 300px;
    overflow-y: auto;
}

.vc-ls-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.vc-ls-msg.user {
    align-self: flex-end;
    background: #FF6B00;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.vc-ls-msg.admin {
    align-self: flex-start;
    background: #f1f1f1;
    color: #333;
    border-bottom-left-radius: 4px;
}

.vc-ls-msg-time {
    display: block;
    font-size: 9px;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
}

/* Scrollbar styling for history */
.vc-ls-header-info h4 { display: flex; align-items: center; }

@keyframes vcPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .vc-ls-window {
        width: calc(100vw - 40px);
        right: -10px;
        bottom: 70px;
    }
    .vc-live-support {
        bottom: 20px;
        right: 20px;
    }
}
