/* ===== Shekhar Social Connect Widget Styles ===== */

.sheksoco-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Floating Button */
.sheksoco-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.sheksoco-button:hover {
    filter: brightness(1.08);
}


/* Chat Box (Stable Version) */
.chat-box {
    position: absolute;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;

    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    transition: all 0.25s ease;
}

/* ===============================
   POSITION SYSTEM (FINAL CORRECT)
=============================== */

/* Base widget */
.sheksoco-widget {
    position: fixed;
    z-index: 9999;
}

/* ===============================
   BOTTOM POSITIONS
=============================== */

.sheksoco-widget.bottom-right {
    bottom: 20px;
    right: 20px;
}

.sheksoco-widget.bottom-left {
    bottom: 20px;
    left: 20px;
}

/* Chat Box - Bottom */
.sheksoco-widget.bottom-right .chat-box {
    bottom: 70px;
    right: 0;
    transform-origin: bottom right;
}

.sheksoco-widget.bottom-left .chat-box {
    bottom: 70px;
    left: 0;
    transform-origin: bottom left;
}


/* ===============================
   MIDDLE POSITIONS
=============================== */

/* Center ONLY the button container */
.sheksoco-widget.middle-right,
.sheksoco-widget.middle-left {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
}

/* Horizontal alignment */
.sheksoco-widget.middle-right {
    right: 20px;
}

.sheksoco-widget.middle-left {
    left: 20px;
}

/* Chat opens centered from button */
.sheksoco-widget.middle-right .chat-box {
    right: 70px;
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    transform-origin: right center;
}

.sheksoco-widget.middle-left .chat-box {
    left: 70px;
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    transform-origin: left center;
}


/* ===============================
   OPEN STATE
=============================== */

/* Middle positions */
.sheksoco-widget.middle-right .chat-box.open,
.sheksoco-widget.middle-left .chat-box.open {
    transform: translateY(-50%) scale(1);
}

/* Bottom positions */
.sheksoco-widget.bottom-right .chat-box.open,
.sheksoco-widget.bottom-left .chat-box.open {
    transform: scale(1);
}

.chat-box.open {
    opacity: 1;
    pointer-events: auto;
}

/* Header */
.chat-header {
    background: #075E54;
    color: #ffffff;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.header-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.status {
    font-size: 12px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Base Dot Styling */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

/* Color States */
.status-dot.online {
    background-color: #4CAF50;
    /* Green */
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    animation: pulse-green 2s infinite;
}

.status-dot.offline {
    background-color: #e53935;
    /* Red */
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7);
    animation: pulse-red 2s infinite;
}

/* Beautiful Ripple Animation for Green */
@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
        /* Ring expands and fades out */
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Beautiful Ripple Animation for Red */
@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(229, 57, 53, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(229, 57, 53, 0);
    }
}

.close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    width: 24px;
    height: 24px;
}

.close-btn:hover {
    opacity: 0.8;
}

/* Body */
.chat-body {
    padding: 20px;
}

.welcome-message {
    background: #f0f2f5;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.4;
}

/* FAQ Buttons */
.faq-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.faq-btn {
    background: #f8f9fa;
    border: 1px solid #e3e8ee;
    border-radius: 20px;
    padding: 10px 16px;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    color: #333;
}

.faq-btn:hover {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
}

/* Message Input */
.message-input-container {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.message-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.message-input:focus {
    border-color: #25D366;
}

.send-btn {
    background: #25D366;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
}

.send-btn:hover {
    background: #1da851;
    transform: scale(1.05);
}

.send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Mobile */
@media (max-width: 480px) {
    .chat-box {
        width: calc(100vw - 20px);
        right: 0;
    }

    .sheksoco-widget {
        bottom: 10px;
        right: 10px;
    }
}

.faq-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===============================
   HEADER LABEL STYLE
=============================== */

.header-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.label-text {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 1px;
}


/* ==========================
   BUTTON ANIMATIONS (FIXED)
========================== */

@keyframes sheksoco-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes sheksoco-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

@keyframes sheksoco-zoom {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes sheksoco-pulse-btn {

    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }

    60% {
        transform: scale(1);
        box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Apply animations */

.sheksoco-button.bounce {
    animation: sheksoco-bounce 1.5s infinite;
}

.sheksoco-button.shake {
    animation: sheksoco-shake 1s infinite;
}

.sheksoco-button.zoom {
    animation: sheksoco-zoom 1.5s infinite;
}

.sheksoco-button.pulse {
    animation: sheksoco-pulse-btn 2.5s infinite;
}

/* Layout Types */

.sheksoco-button.layout-bubble {
    border-radius: 50%;
}

.sheksoco-button.layout-rectangle {
    border-radius: 0;
    padding: 0 16px;
    width: auto;
}

.sheksoco-button.layout-rounded {
    border-radius: 12px;
    padding: 0 16px;
    width: auto;
}

.sheksoco-cta-text {
    font-weight: 700;
    color: #000000;
    margin-top: 8px;
    text-align: center;
    font-size: 14px;
}

.sheksoco-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
}

/* ===============================
POSITION CONTROLS
=============================== */

.sheksoco-widget {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.sheksoco-widget.bottom-right {
    right: 20px;
    bottom: 20px;
}

.sheksoco-widget.bottom-left {
    left: 20px;
    bottom: 20px;
    align-items: flex-start;
}

.sheksoco-widget.middle-right {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.sheksoco-widget.middle-left {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    align-items: flex-start;
}

.sheksoco-widget.middle-right .chat-box,
.sheksoco-widget.middle-left .chat-box {
    bottom: auto;
    top: 70px;
}

/* ===============================
NOTIFICATION BUBBLE
=============================== */

.sheksoco-button {
    position: relative;
}

.sheksoco-notification {
    position:absolute;
    top:-6px;
    right:-6px;
    width:18px;
    height:18px;
    background:#ff2d2d;
    color:#fff;
    font-size:10px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:600;
}

/* Notification Animation */

@keyframes sheksoco-notification-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255,0,0,0.7);
    transform: scale(0.95);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255,0,0,0);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255,0,0,0);
    transform: scale(0.95);
  }
}

.sheksoco-notification{
    animation: sheksoco-notification-pulse 2s ease-in-out infinite;
}