/* Canlı Chat Bileşeni Stilleri */
.live-chat-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 10000;
    font-family: 'Poppins', sans-serif;
}

/* Chat Butonu */
.live-chat-btn {
    background: linear-gradient(135deg, var(--primary-color, #ff003c), var(--secondary-color, #cc002f));
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 0, 60, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.live-chat-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff003c, #cc002f, #ff003c);
    z-index: -1;
    animation: border-pulse 2s infinite;
}

.live-chat-btn:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 8px 25px rgba(255, 0, 60, 0.6);
}

.live-chat-btn:hover .tooltip {
    opacity: 1;
    transform: translateX(-10px);
}

.chat-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-icon i {
    font-size: 26px;
    z-index: 2;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background-color: #00ff8c;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
    animation: pulse 2s infinite;
}

.tooltip {
    position: absolute;
    right: 75px;
    background: var(--background-light, #1a1a1a);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid var(--background-light, #1a1a1a);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* Bildirim Toast */
.notification-toast {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: var(--background-light, #1a1a1a);
    border-left: 4px solid var(--primary-color, #ff003c);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    z-index: 10001;
}

.notification-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    background: linear-gradient(135deg, var(--primary-color, #ff003c), var(--secondary-color, #cc002f));
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.toast-icon i {
    font-size: 18px;
    color: white;
}

.toast-content h4 {
    margin: 0 0 5px 0;
    color: var(--text-color, #ffffff);
    font-size: 15px;
}

.toast-content p {
    margin: 0;
    color: var(--text-secondary, #ccc);
    font-size: 13px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary, #ccc);
    font-size: 20px;
    cursor: pointer;
    margin-left: auto;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Chat Penceresi */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 600px;
    background: var(--background-light, #1a1a1a);
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s ease;
    z-index: 10002;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: linear-gradient(to right, var(--primary-color, #ff003c), var(--secondary-color, #cc002f));
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.avatar i {
    font-size: 20px;
}

.agent-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.agent-info p {
    margin: 3px 0 0 0;
    font-size: 12px;
    opacity: 0.9;
}

.close-chat {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-chat:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--background-dark, #0a0a0a);
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.message.received {
    align-self: flex-start;
}

.message.sent {
    align-self: flex-end;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
}

.message.received .message-content {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color, #ffffff);
    border-top-left-radius: 4px;
}

.message.sent .message-content {
    background: linear-gradient(135deg, var(--primary-color, #ff003c), var(--secondary-color, #cc002f));
    color: white;
    border-top-right-radius: 4px;
}

.message-time {
    font-size: 11px;
    margin-top: 5px;
    opacity: 0.6;
    padding: 0 5px;
}

.chat-input-container {
    padding: 15px;
    background: var(--background-dark, #0a0a0a);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 25px;
    padding: 5px;
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: transparent;
    color: var(--text-color, #ffffff);
    outline: none;
    font-size: 14px;
}

.chat-input input::placeholder {
    color: var(--text-secondary, #ccc);
}

.send-button {
    background: linear-gradient(135deg, var(--primary-color, #ff003c), var(--secondary-color, #cc002f));
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.send-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 0, 60, 0.4);
}

/* Animasyonlar */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 140, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 140, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 140, 0); }
}

@keyframes border-pulse {
    0% { opacity: 0.8; }
    50% { opacity: 0.4; }
    100% { opacity: 0.8; }
}

/* Scrollbar stilleri */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary-color, #ff003c);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color, #cc002f);
}

/* Mobil için responsive tasarım */
@media (max-width: 768px) {
    .live-chat-container {
        bottom: 15px;
        right: 15px;
    }
    
    .live-chat-btn {
        width: 60px;
        height: 60px;
    }
    
    .notification-toast {
        width: 280px;
        bottom: 70px;
    }
    
    .chat-window {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
        position: fixed;
    }
    
    .message {
        max-width: 85%;
    }
}

/* Sual təklifləri konteyneri */
.chat-suggestions {
    margin-top: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
}

/* "Tez-tez verilən suallar" başlığı */
.chat-suggestions p {
    margin: 0 0 8px 0;
    font-weight: 500;
    color: var(--text-secondary, #ccc);
    font-size: 14px;
}

/* Sual düymələri */
.suggestion-btn {
    background: rgba(255, 0, 60, 0.1);
    color: var(--text-color, #fff);
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    text-align: left;
    transition: all 0.2s ease;
    white-space: normal;
}

.suggestion-btn:hover {
    background: linear-gradient(135deg, var(--primary-color, #ff003c), var(--secondary-color, #cc002f));
    color: white;
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .chat-suggestions {
        padding: 10px;
        gap: 8px;
    }
    
    .chat-suggestions p {
        font-size: 12px;
    }
    
    .suggestion-btn {
        font-size: 12px;
        padding: 6px 10px;
    }
}
