
    :root {
        --primary-color: #25D366;
        --secondary-color: #128C7E;
        --text-color: #333;
        --light-text: #fff;
        --background-color: #f5f5f5;
        --hover-color: #075E54;
        --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        --border-radius: 12px;
        --transition: all 0.3s ease;
    }

    * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* WhatsApp Butonu */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 9999;
    transition: var(--transition);
}

.whatsapp-button:hover {
    transform: scale(1.1);
    background-color: var(--hover-color);
}

.whatsapp-button img {
    width: 32px;
    height: 32px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background-color: #FF4B4B;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Sohbet Kutusu */
.chat-box {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    z-index: 9998;
    transform: scale(0.8);
    opacity: 0;
    pointer-events: none;
    transform-origin: bottom right;
    transition: var(--transition);
}

.chat-box.show {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Sohbet Başlığı */
.chat-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.chat-header-info {
    flex: 1;
}

.chat-header-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
}

.chat-header-status {
    font-size: 12px;
    display: flex;
    align-items: center;
}

.online-indicator {
    width: 8px;
    height: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
    margin-right: 5px;
}

.chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header-avatar img {
    width: 24px;
    height: 24px;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.header-action {
    cursor: pointer;
    font-size: 18px;
    color: var(--light-text);
    transition: var(--transition);
}

.header-action:hover {
    transform: scale(1.2);
}

/* Sohbet İçeriği */
.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #E5DDD5;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zm20.97 0l9.315 9.314-1.414 1.414L34.828 0h2.83zM22.344 0L13.03 9.314l1.414 1.414L25.172 0h-2.83zM32 0l12.142 12.142-1.414 1.414L30 .828 17.272 13.556l-1.414-1.414L28 0h4zM.284 0l28 28-1.414 1.414L0 2.544v2.83L25.456 30l-1.414 1.414L0 7.97v2.828L22.627 30l-1.414 1.414L0 13.4v2.83L19.8 30l-1.414 1.414L0 18.83v2.828L16.97 30l-1.414 1.414L0 24.26v2.83L14.142 30l-1.414 1.414L0 29.688v2.83L11.314 30l-1.414 1.414L0 35.117v2.83L8.485 30l-1.414 1.414L0 40.547v2.83L5.657 30l-1.414 1.414L0 45.976v2.83L2.828 30l-1.414 1.414L0 51.405v2.83L0 60h60L60 0h-2.83L0 57.17v-2.83L54.343 0h-2.83L0 51.74v-2.83L51.515 0h-2.83L0 46.31v-2.83L48.687 0h-2.83L0 40.88v-2.83L45.858 0h-2.83L0 35.453v-2.83L43.03 0h-2.83L0 30.023v-2.83L40.2 0h-2.83L0 24.594v-2.83L37.373 0h-2.83L0 19.164v-2.83L34.544 0h-2.83L0 13.734v-2.83L31.716 0h-2.83L0 8.304v-2.83L28.887 0h-2.83L0 2.874V0h2.874z' fill='%239C92AC' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.message {
    margin-bottom: 15px;
    max-width: 75%;
    padding: 10px 12px;
    border-radius: 10px;
    position: relative;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.received {
    background-color: white;
    color: var(--text-color);
    align-self: flex-start;
    border-radius: 0 10px 10px 10px;
    margin-right: auto;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.message.sent {
    background-color: #DCF8C6;
    color: var(--text-color);
    align-self: flex-end;
    border-radius: 10px 0 10px 10px;
    margin-left: auto;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.message-time {
    font-size: 10px;
    color: #999;
    text-align: right;
    margin-top: 3px;
}

.typing-effect {
    display: inline-block;
    position: relative;
}

.typing-effect::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    height: 15px;
    width: 7px;
    background-color: var(--primary-color);
    animation: blink 0.7s infinite;
    display: none;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.typing {
    display: flex;
    padding: 10px 15px;
    background-color: white;
    border-radius: 12px;
    margin-bottom: 15px;
    width: fit-content;
}

.typing-dots {
    display: flex;
    align-items: center;
}

.typing-dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background-color: #bbb;
    margin: 0 2px;
    animation: typingAnimation 1.5s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.3s; }
.typing-dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes typingAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Sohbet Alt Kısmı */
.chat-footer {
    padding: 15px;
    display: flex;
    align-items: center;
    border-top: 1px solid #eee;
    gap: 10px;
}

.chat-input {
    flex: 1;
    position: relative;
}

.emoji-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    transition: var(--transition);
}

.emoji-btn:hover {
    color: var(--primary-color);
}

.message-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
    resize: none;
    height: auto;         /* Fixed height yerine auto kullanın */
    min-height: 40px;     /* Başlangıç yüksekliği için ekleyin */
    max-height: 100px;    /* Bu zaten var, bırakabilirsiniz */
    overflow-y: auto;
    transition: var(--transition);
}

.message-input:focus {
    border-color: var(--primary-color);
}

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.send-btn:hover {
    background-color: var(--hover-color);
    transform: scale(1.05);
}

.send-btn i {
    font-size: 18px;
}

/* Sık Sorulan Sorular */
.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.quick-question {
    padding: 8px 12px;
    background-color: white;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.quick-question:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Emoji Seçici */
.emoji-picker {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 300px;
    height: 200px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    overflow-y: auto;
    z-index: 10;
}

.emoji-picker.show {
    display: grid;
}

.emoji {
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 5px;
    transition: var(--transition);
}

.emoji:hover {
    background-color: #f0f0f0;
}

/* Firma Bilgileri */
.company-info {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    margin-bottom: 15px;
    animation: fadeIn 0.5s;
}

.company-info-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.company-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.company-details {
    flex: 1;
}

.company-name {
    font-weight: bold;
    margin-bottom: 3px;
}

.company-address, .company-phone, .company-email {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
}

.company-address i, .company-phone i, .company-email i {
    margin-right: 5px;
    color: var(--primary-color);
}

.contact-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.contact-action {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.action-call {
    background-color: #4CAF50;
    color: white;
}

.action-email {
    background-color: #2196F3;
    color: white;
}

.action-map {
    background-color: #FF5722;
    color: white;
}

.contact-action:hover {
    transform: scale(1.05);
}

/* Duyarlı Tasarım */
@media (max-width: 576px) {
    .chat-box {
        width: 90%;
        height: 70vh;
        bottom: 80px;
        right: 5%;
        left: 5%;
    }

    .whatsapp-button {
        bottom: 20px;
        right: 20px;
    }
}