/* =================================================================
   NR ROLETNE KOMARNICI — PLUTAJUĆI KONTAKT DUGMIĆI
   -----------------------------------------------------------------
   Sadrži stil za 4 dugmeta:
     1) CALL BUBBLE      — desno gore    (zlatna, tema sajta)
     2) VIBER WIDGET     — desno sredina (viber ljubičasta)
     3) WHATSAPP prosti  — desno dole    (whatsapp zelena)
     4) WHATSAPP PRO     — levo          (whatsapp zelena, chat prozor)

   RASPORED (bottom vrednosti) — ovde menjaš visinu dugmića na ekranu:
     Desni stek:  Call 265px  |  Viber 180px  |  WhatsApp 95px
     Levi:        WhatsApp PRO 105px

   Boje Viber-a i WhatsApp-a su namerno brendirane (da ih korisnik
   odmah prepozna). Samo je Call dugme u zlatnoj boji teme.
   ================================================================= */


/* =================================================================
   1) CALL BUBBLE  (desno, gore)
   BOJA: zlatna gradijent + tamno zelena ikonica (tema sajta).
   Da vratiš originalnu narandžasto-crvenu, zameni "background" liniju.
   ================================================================= */
.rarog-call-bubble {
    position: fixed;
    right: 20px;
    bottom: 265px;                 /* visina na ekranu (desni stek — vrh) */
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E0BE55 0%, #C9A227 100%); /* ZLATNA */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #103b41;                /* boja ikonice (tamno zelena) */
    font-size: 26px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    z-index: 99997;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.rarog-call-bubble:hover {
    transform: scale(1.06);
    box-shadow: 0 16px 35px rgba(0,0,0,0.24);
}
@media (max-width:767px){
    .rarog-call-bubble{
        right:15px;
        bottom:250px;
        width:58px;
        height:58px;
        font-size:24px;
    }
}


/* =================================================================
   2) VIBER WIDGET  (desno, sredina)
   ================================================================= */
#rarogViberWidget * { box-sizing: border-box; }

.rarog-viber-widget { position: relative; z-index: 99997; }

.rarog-viber-bubble {
    position: fixed;
    right: 20px;
    bottom: 180px;                 /* visina na ekranu (desni stek — sredina) */
    width: 62px;
    height: 62px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #7360f2 0%, #5b47d6 100%); /* VIBER ljubičasta */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    z-index: 99997;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding: 0;
}
.rarog-viber-bubble:hover { transform: scale(1.06); box-shadow: 0 16px 35px rgba(0, 0, 0, 0.24); }
.rarog-viber-bubble:focus { outline: none; }
.rarog-viber-bubble-icon { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; line-height: 1; }
.rarog-viber-bubble-icon i { font-size: 30px; line-height: 1; color: #ffffff; display: block; }

.rarog-viber-popup {
    position: fixed;
    right: 95px;
    bottom: 180px;
    width: 340px;
    max-width: calc(100vw - 40px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(15px) scale(0.96);
    transition: all 0.3s ease;
    z-index: 99996;
}
.rarog-viber-popup.show { opacity: 1; visibility: visible; transform: translateX(0) scale(1); }
.rarog-viber-popup-inner {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}
.rarog-viber-close {
    position: absolute; top: 10px; right: 12px;
    border: 0; background: transparent; color: #666;
    font-size: 28px; line-height: 1; cursor: pointer; z-index: 2;
}
.rarog-viber-header {
    background: linear-gradient(135deg, #7360f2 0%, #5b47d6 100%);
    color: #ffffff; padding: 18px;
    display: flex; align-items: center; gap: 12px;
}
.rarog-viber-avatar {
    width: 42px; height: 42px; min-width: 42px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px;
}
.rarog-viber-header-text { display: flex; flex-direction: column; gap: 2px; }
.rarog-viber-header-text strong { font-size: 16px; line-height: 1.2; }
.rarog-viber-header-text span { font-size: 13px; opacity: 0.95; }
.rarog-viber-body { padding: 18px; }
.rarog-viber-message { margin: 0 0 16px; color: #222; font-size: 14px; line-height: 1.6; }
.rarog-viber-start-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; min-height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, #7360f2 0%, #5b47d6 100%);
    color: #ffffff !important; text-decoration: none; font-weight: 600;
    transition: background 0.25s ease, transform 0.25s ease;
}
.rarog-viber-start-btn:hover { transform: translateY(-1px); color: #ffffff !important; }

@media (max-width: 767px) {
    .rarog-viber-bubble { right: 15px; bottom: 160px; width: 58px; height: 58px; }
    .rarog-viber-bubble-icon { width: 28px; height: 28px; }
    .rarog-viber-bubble-icon i { font-size: 28px; }
    .rarog-viber-popup {
        left: 50%; right: auto; bottom: auto; top: 50%;
        width: calc(100vw - 30px); max-width: 360px;
        transform: translate(-50%, -50%) scale(0.96);
    }
    .rarog-viber-popup.show { transform: translate(-50%, -50%) scale(1); }
}


/* =================================================================
   3) WHATSAPP BUBBLE — PROSTI  (desno, dole)
   NAPOMENA: ovaj widget koristi opšte nazive klasa (.chat-*).
   Ako ga ne koristiš, možeš obrisati ceo ovaj blok + njegov HTML.
   ================================================================= */
.whatsapp-bubble {
    position: fixed;
    right: 20px;
    bottom: 95px;                  /* visina na ekranu (desni stek — dno) */
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #25D366;           /* WHATSAPP zelena */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    z-index: 1000;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-bubble:hover { transform: scale(1.06); box-shadow: 0 16px 35px rgba(0, 0, 0, 0.24); }
.whatsapp-bubble-icon { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.whatsapp-bubble-icon i { font-size: 30px; color: #ffffff; line-height: 1; display: block; }

.chat-popup {
    position: fixed;
    right: 95px;
    bottom: 95px;
    width: 340px;
    max-width: calc(100vw - 40px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(15px) scale(0.96);
    transition: all 0.3s ease;
    z-index: 999999;
}
.chat-popup.show { opacity: 1; visibility: visible; transform: translateX(0) scale(1); }
.chat-popup-inner {
    background: #ffffff; border-radius: 18px; overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.06); position: relative;
}
.chat-close-btn {
    position: absolute; top: 10px; right: 12px; border: 0; background: transparent;
    color: #666; font-size: 28px; line-height: 1; cursor: pointer; z-index: 2;
}
.chat-header {
    background: #25D366; color: #ffffff; padding: 18px;
    display: flex; align-items: center; gap: 12px;
}
.chat-avatar {
    width: 42px; height: 42px; min-width: 42px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px;
}
.chat-header-text { display: flex; flex-direction: column; gap: 2px; }
.chat-header-text strong { font-size: 16px; line-height: 1.2; }
.chat-header-text span { font-size: 13px; opacity: 0.95; }
.chat-body { padding: 18px; }
.chat-message { margin: 0 0 16px; color: #222; font-size: 14px; line-height: 1.6; }
.chat-start-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; min-height: 48px; border-radius: 12px;
    background: #25D366; color: #ffffff !important; text-decoration: none;
    font-weight: 600; transition: background 0.25s ease, transform 0.25s ease;
}
.chat-start-btn:hover { background: #1fb95a; transform: translateY(-1px); color: #ffffff !important; }

@media (max-width: 767px) {
    .whatsapp-bubble { right: 15px; bottom: 90px; width: 58px; height: 58px; }
    .whatsapp-bubble-icon { width: 28px; height: 28px; }
    .whatsapp-bubble-icon i { font-size: 28px; }
    .chat-popup {
        left: 50%; right: auto; bottom: auto; top: 50%;
        width: calc(100vw - 30px); max-width: 360px;
        transform: translate(-50%, -50%) scale(0.96);
    }
    .chat-popup.show { transform: translate(-50%, -50%) scale(1); }
}


/* =================================================================
   4) WHATSAPP PRO WIDGET  (levo)
   Chat prozor sa poljem za poruku, dodavanjem slike i auto-otvaranjem.
   ================================================================= */
#rarogWaProWidget * { box-sizing: border-box; }

.rarog-wa-widget { position: relative; z-index: 99999; }

.rarog-wa-bubble {
    position: fixed;
    left: 20px;                    /* LEVA strana ekrana */
    bottom: 105px;
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #1fb95a 100%); /* WHATSAPP zelena */
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.20);
    z-index: 99999;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding: 0;
}
.rarog-wa-bubble:hover { transform: scale(1.06); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26); }
.rarog-wa-bubble:focus { outline: none; box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.18), 0 18px 40px rgba(0, 0, 0, 0.26); }
.rarog-wa-bubble-icon { position: relative; z-index: 2; width: 31px; height: 31px; display: flex; align-items: center; justify-content: center; line-height: 1; }
.rarog-wa-bubble-icon i { font-size: 31px; line-height: 1; color: #ffffff; display: block; }

/* Pulsirajući prsten oko dugmeta */
.rarog-wa-bubble-ping {
    position: absolute; inset: 0; border-radius: 50%;
    background: rgba(37, 211, 102, 0.30);
    animation: rarogWaPulse 2.2s infinite;
}
/* Crveni "1" badge */
.rarog-wa-bubble-badge {
    position: absolute; top: -2px; right: -1px;
    min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
    background: #ef4444; color: #ffffff; font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; z-index: 3;
    box-shadow: 0 6px 14px rgba(239, 68, 68, 0.35);
}
@keyframes rarogWaPulse {
    0%   { transform: scale(1);    opacity: 0.85; }
    70%  { transform: scale(1.45); opacity: 0; }
    100% { transform: scale(1.45); opacity: 0; }
}

.rarog-wa-popup {
    position: fixed;
    left: 98px;                    /* popup se otvara UDESNO od dugmeta */
    bottom: 105px;
    width: 380px;
    max-width: calc(100vw - 40px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(16px) translateY(8px) scale(0.96);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    z-index: 100000;
}
.rarog-wa-popup.show { opacity: 1; visibility: visible; transform: translateX(0) translateY(0) scale(1); }
.rarog-wa-popup-inner {
    background: #ffffff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.20);
    border: 1px solid rgba(0, 0, 0, 0.06); position: relative;
}
.rarog-wa-close {
    position: absolute; top: 12px; right: 14px; width: 34px; height: 34px;
    border: 0; background: rgba(255, 255, 255, 0.18); color: #ffffff;
    border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; z-index: 3;
    transition: background 0.2s ease, transform 0.2s ease;
}
.rarog-wa-close:hover { background: rgba(255, 255, 255, 0.28); transform: scale(1.05); }
.rarog-wa-header {
    background: linear-gradient(135deg, #25D366 0%, #1fb95a 100%);
    color: #ffffff; padding: 18px 18px 20px 18px;
    display: flex; align-items: center; gap: 12px;
}
.rarog-wa-header-avatar {
    width: 44px; height: 44px; min-width: 44px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px;
}
.rarog-wa-header-text { display: flex; flex-direction: column; gap: 2px; padding-right: 36px; }
.rarog-wa-header-text strong { font-size: 16px; line-height: 1.2; }
.rarog-wa-header-text span { font-size: 13px; opacity: 0.95; }

.rarog-wa-chat-area { background: #efeae2; padding: 16px; border-bottom: 1px solid #ececec; }
.rarog-wa-message { display: flex; align-items: flex-end; gap: 10px; }
.rarog-wa-message + .rarog-wa-message { margin-top: 12px; }
.rarog-wa-message-avatar {
    width: 34px; height: 34px; min-width: 34px; border-radius: 50%;
    background: #d9fdd3; color: #14532d;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
}
.rarog-wa-message-bubble {
    max-width: 270px; background: #ffffff;
    border-radius: 14px 14px 14px 4px; padding: 12px 12px 10px 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}
.rarog-wa-message-name { font-size: 12px; font-weight: 700; color: #128c7e; margin-bottom: 4px; }
.rarog-wa-message-text { font-size: 14px; color: #1f2937; line-height: 1.5; }
.rarog-wa-message-time { font-size: 11px; color: #6b7280; margin-top: 6px; }

.rarog-wa-typing { opacity: 0; visibility: hidden; height: 0; overflow: hidden; transition: opacity 0.25s ease; }
.rarog-wa-typing.show { opacity: 1; visibility: visible; height: auto; overflow: visible; }
.rarog-wa-typing-bubble { display: flex; align-items: center; gap: 5px; min-height: 44px; }
.rarog-wa-typing-bubble span {
    width: 7px; height: 7px; border-radius: 50%; background: #94a3b8;
    display: inline-block; animation: rarogTyping 1.3s infinite ease-in-out;
}
.rarog-wa-typing-bubble span:nth-child(2) { animation-delay: 0.15s; }
.rarog-wa-typing-bubble span:nth-child(3) { animation-delay: 0.3s; }
@keyframes rarogTyping {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.rarog-wa-body { padding: 16px; background: #ffffff; }
.rarog-wa-note { margin-bottom: 12px; color: #374151; font-size: 14px; line-height: 1.5; }
.rarog-wa-input {
    width: 100%; min-height: 110px; border: 1px solid #d8dde3; border-radius: 14px;
    padding: 13px 14px; resize: vertical; outline: none; font-size: 14px; line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease; font-family: inherit;
}
.rarog-wa-input:focus { border-color: #25D366; box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.10); }
.rarog-wa-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.rarog-wa-file-label, .rarog-wa-send {
    min-height: 46px; border-radius: 12px; padding: 0 16px; border: 0;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.rarog-wa-file-label { display: inline-flex; align-items: center; justify-content: center; background: #f3f4f6; color: #111827; }
.rarog-wa-file-label:hover { background: #e5e7eb; }
.rarog-wa-send {
    flex: 1; background: linear-gradient(135deg, #25D366 0%, #1fb95a 100%);
    color: #ffffff; box-shadow: 0 10px 24px rgba(37, 211, 102, 0.22);
}
.rarog-wa-send:hover { transform: translateY(-1px); }
.rarog-wa-preview { margin-top: 14px; padding: 12px; background: #f8fafc; border-radius: 14px; border: 1px solid #edf2f7; }
.rarog-wa-preview img { width: 100%; max-height: 190px; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 10px; }
.rarog-wa-remove-file { border: 0; background: #ef4444; color: #ffffff; border-radius: 10px; padding: 9px 12px; font-size: 13px; cursor: pointer; }
.rarog-wa-helper { margin-top: 12px; color: #6b7280; font-size: 12px; line-height: 1.5; }

@media (max-width: 767px) {
    .rarog-wa-bubble { left: 15px; bottom: 92px; width: 58px; height: 58px; }
    .rarog-wa-bubble-icon { width: 28px; height: 28px; }
    .rarog-wa-bubble-icon i { font-size: 28px; }
    .rarog-wa-popup {
        top: 50%; left: 50%; right: auto; bottom: auto;
        width: calc(100vw - 24px); max-width: 370px;
        transform: translate(-50%, -50%) scale(0.96);
    }
    .rarog-wa-popup.show { transform: translate(-50%, -50%) scale(1); }
    .rarog-wa-message-bubble { max-width: 100%; }
    .rarog-wa-actions { flex-direction: column; }
    .rarog-wa-file-label, .rarog-wa-send { width: 100%; }
}
.rarog-wa-bubble.open .rarog-wa-bubble-ping { animation: none; opacity: 0; }
.rarog-wa-bubble.open .rarog-wa-bubble-badge { display: none; }
