/* --- LUX WIDGET FINAL FIX v2 --- */

#asms-smart-widget-container {
    position: fixed;
    bottom: var(--asux-cc-bottom, 25px);
    right: var(--asux-cc-right, 25px);
    left: var(--asux-cc-left, auto);
    top: var(--asux-cc-top, auto);
    z-index: 99999;
    font-family: sans-serif;
    display: flex; flex-direction: column; align-items: flex-end;
}

.asms-contact-btn {
    /* 👇 OVDE JE BILA GREŠKA - Sklonio sam !important */
    display: flex; 
    align-items: center; justify-content: center;
    width: 60px; height: 60px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    cursor: pointer; border: none;
}
.asms-contact-btn:hover { transform: scale(1.1); }

/* Ikonice ostaju bele na silu */
.asms-svg-icon {
    display: block !important;
    margin: 0 auto;
    width: 28px !important;
    height: 28px !important;
}
.asms-svg-icon path {
    fill: #ffffff !important;
    stroke: none !important;
}

/* Tooltip */
.asms-tooltip {
    position: absolute; right: 70px; top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #fff; color: #111;
    padding: 6px 12px; border-radius: 4px;
    font-size: 13px; font-weight: bold;
    white-space: nowrap;
    opacity: 0; visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    pointer-events: none;
}
.asms-contact-btn:hover .asms-tooltip { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }

/* Puls */
.asms-pulse::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%; border: 2px solid currentColor; animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Chat Prozor */
#asms-chat-window {
    width: 300px; background: #fff; border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden; margin-bottom: 15px;
    opacity: 0; visibility: hidden;
    transform: translateY(20px) scale(0.95); transform-origin: bottom right;
    transition: all 0.3s ease; position: absolute; bottom: 60px; right: 0;
}
#asms-chat-window.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.chat-header { padding: 15px; color: #fff; display: flex; gap: 10px; align-items: center; background: #333; }
.chat-avatar { width: 35px; height: 35px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 18px; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-info { flex: 1; }
.chat-name { font-weight: bold; font-size: 14px; }
.chat-status { font-size: 11px; opacity: 0.8; }
#chat-close-btn { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 0; margin-left: auto; line-height: 1; }
.chat-body { background: #f0f0f0; padding: 20px; min-height: 120px; }
.chat-bubble { background: #fff; padding: 10px; border-radius: 0 10px 10px 10px; font-size: 14px; display: inline-block; max-width: 90%; }
.chat-time { display: block; font-size: 10px; color: #999; margin-top: 4px; text-align: right; }
.chat-footer { padding: 10px; background: #fff; display: flex; gap: 10px; border-top: 1px solid #eee; }
#chat-input { flex: 1; border: 1px solid #ddd; border-radius: 20px; padding: 8px 12px; outline: none; }
/* 👇 ZAMENI SAMO OVO DUGME U CSS-u 👇 */
#chat-send-btn {
    background: #25D366;
    color: #fff;
    border: none;
    
    /* Povećao sam malo da bude lakše za prst */
    width: 40px; 
    height: 40px; 
    
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px; /* Malo veća strelica */
    
    /* 🔥 OVO CENTRIRA STRELICU 🔥 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Resetuje padding koji gura ikonicu */
    padding-left: 2px; /* Mala optička korekcija jer strelica vizuelno vuče levo */
    
    transition: transform 0.2s;
    flex-shrink: 0; /* Da se ne spljeska na malim ekranima */
}

#chat-send-btn:hover {
    transform: scale(1.1);
    background: #20b85c;
}

/* --- BONUS: Notification Badge --- */
#btn-online::after {
    content: '1';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30; /* Apple Red */
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff; /* Bela ivica da se odvoji */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: bounce-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1s forwards; /* Čeka 1s pa iskoči */
    transform: scale(0); /* Počinje nevidljivo */
}

@keyframes bounce-in {
    to { transform: scale(1); }
}

@media (max-width: 600px) {
    #asms-smart-widget-container {
        bottom: var(--asux-cc-bottom-mobile, 20px);
        right: var(--asux-cc-right-mobile, 20px);
        left: var(--asux-cc-left-mobile, auto);
        top: var(--asux-cc-top-mobile, auto);
    }
    #asms-chat-window { bottom: 70px; width: 280px; }
    .asms-tooltip { display: none; } 
}