/* Tüm öğelerde box-sizing kontrol altına alınır */
.whatsapp-widget * {
    box-sizing: border-box !important;
}

/* Ana widget */
.whatsapp-widget {
    position: fixed;
    z-index: 2147483647;
    left: 0;
    right: 0;
}

.whatsapp-widget.bottom-right { bottom: 0; justify-content: flex-end; display: flex; }
.whatsapp-widget.bottom-left  { bottom: 0; justify-content: flex-start; display: flex; }
.whatsapp-widget.top-right    { top: 0; justify-content: flex-end; display: flex; }
.whatsapp-widget.top-left     { top: 0; justify-content: flex-start; display: flex; }

/* WhatsApp ikon */
.whatsapp-icon {
    width: 50px;
    height: 50px;
    cursor: pointer;
    margin: 10px;
}

/* Sohbet kutusu */
.whatsapp-chatbox {
    background-image: url('https://e0.pxfuel.com/wallpapers/722/149/desktop-wallpaper-message-background-whatsapp-message-background-thumbnail.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 0;
    border-top: 1px solid #ccc;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    border-radius: 12px 12px 0 0;
    color: #2b2a2a;
    font-family: sans-serif;
    overflow: hidden;
}

/* WhatsApp Header - Yeşil bar */
.whatsapp-header {
    background: #25d366;
    padding: 15px;
    display: flex;
    align-items: center;
    color: white;
    border-bottom: 1px solid #1ebe5d;
}

/* Avatar container */
.whatsapp-avatar {
    position: relative;
    margin-right: 12px;
}

/* Avatar image */
.whatsapp-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

/* Çevrimiçi gösterge */
.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #4ade80;
    border: 2px solid white;
    border-radius: 50%;
}

/* Kişi bilgileri */
.whatsapp-person-info {
    flex: 1;
}

.person-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 2px;
}

.person-description {
    font-size: 13px;
    opacity: 0.9;
}

/* Giriş mesajı balonu */
.whatsapp-bubble {
    background: #fff;
    color: #333;
    border-radius: 10px 10px 10px 0;
    padding: 10px;
    margin: 15px;
    max-width: 90%;
    font-size: 14px;
    font-family: sans-serif;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    position: relative;
}

.whatsapp-bubble::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -8px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-top-color: #fff;
    border-right-color: #fff;
    border-bottom: 0;
    border-left: 0;
    margin-left: -1px;
}

/* Mesaj ve butonun tek satıra yerleşmesi */
.whatsapp-input-row {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    padding: 0 6px;
    border: 1px solid #ccc;
    margin: 15px;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    box-sizing: border-box;
}

/* Mesaj kutusu (input) */
.whatsapp-input-row input[type="text"] {
    border: none;
    outline: none;
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border-radius: 20px;
    background: transparent;
}

/* Gönder butonu - Tam daire */
.whatsapp-send-btn {
    background: #25d366 !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin-left: 6px !important;
    line-height: 0 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
}

.whatsapp-send-btn:hover {
    background: #1ebe5d !important;
}

.whatsapp-send-btn svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    fill: white !important;
}

/* Mobil uyumluluk */
@media (max-width: 480px) {
    .whatsapp-chatbox {
        max-width: 100%;
        border-radius: 0;
    }
    
    .whatsapp-widget.bottom-right,
    .whatsapp-widget.bottom-left {
        bottom: 0;
    }
    
    .whatsapp-send-btn {
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
    }
}