/* Genel Sayfa Ayarı */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}

/* 1. ANA PENCERE: z-index buraya eklenmeli */
.chat-container {
    width: 300px;
    border-radius: 20px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 20px;
    bottom: 80px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 4px 30px 0px;
    /* KRİTİK: Görselin üstüne çıkması için buraya z-index şart */
    z-index: 99999999 !important; 
    overflow: hidden; /* Header köşelerinin düzgün görünmesi için */
}

/* Header */
.chat-header {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #008069;
    color: white;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: bold;
}

.user-status {
    font-size: 10px;
}

/* Gövde */
.chat-body {
    flex: 1;
    height: 300px; /* Kaydırma için sabit yükseklik eklendi */
    padding: 10px;
    overflow-y: auto;
    background: url(/wpback.png) no-repeat center / cover;
}

.message {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.message.received {
    align-items: flex-start;
}

.message-text {
    background-color: #ffffff;
    padding: 8px 12px;
    border-radius: 20px;
    margin-bottom: 2px;
}

.message-time {
    font-size: 10px;
    color: gray;
    margin-right: auto;
    padding-left: 10px;
}

/* Footer */
.chat-footer {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}

.message-input {
    flex: 1;
    border: none;
    padding: 10px;
    border-radius: 20px;
    background-color: #f0f0f0;
    margin-right: 10px;
}

.message-input:focus {
    outline: none;
}

.send-button {
    background-color: #25d366;
    border: none;
    color: white;
    border-radius: 100%;
    cursor: pointer;
    width: 35px;
    height: 35px;
}

/* 2. DESTEK BUTONU: Katman değeri pencereden bir tık altta olabilir */
.whatsapp-support {
    position: fixed !important; 
    bottom: 20px !important; 
    right: 20px !important; 
    z-index: 99999998 !important; 
    text-align: center;
}

.support-button {
    background-color: #25d366;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-icon {
    color: white;
    font-size: 25px !important;
    padding-right: 10px;
}

.close-button {
    margin-left: auto;
    cursor: pointer;
    color: #66b3a5;
    padding: 10px;
}

.close-button:hover {
    color: #eaeaea;
    border-radius: 150px;
}

.support-button:hover {
    background-color: #13b750;
}

.send-button:hover {
    background-color: #13b750;
}