/* Live Chat Styles */
.live-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    border: none;
    border-radius: 50%;
    color: #000;
    /* font-size: 1.5rem; */
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
}

.live-chat-button.has-notification::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    background: #ff4444;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: pulse-notification 2s infinite;
}

@keyframes pulse-notification {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Live Chat Modal */
.live-chat-modal {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: #1a1a1a;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid #333;
    overflow: hidden;
}

.live-chat-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.live-chat-header {
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    color: #000;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.live-chat-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.live-chat-close {
    background: none;
    border: none;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.live-chat-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.live-chat-body {
    height: 350px;
    padding: 1rem;
    overflow-y: auto;
    background: #222;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    animation: fadeInUp 0.3s ease;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.chat-message.user .message-avatar {
    background: #333;
    color: #ffd700;
}

.message-content {
    background: #333;
    padding: 0.75rem;
    border-radius: 12px;
    max-width: 70%;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    color: #000;
}

.message-time {
    font-size: 0.7rem;
    color: #888;
    margin-top: 0.25rem;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.typing-indicator.show {
    opacity: 1;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 0.75rem;
    background: #333;
    border-radius: 12px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #888;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

.live-chat-footer {
    padding: 1rem;
    background: #1a1a1a;
    border-top: 1px solid #333;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chat-input {
    flex: 1;
    background: #333;
    border: 1px solid #555;
    border-radius: 20px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    border-color: #ffd700;
}

.chat-input::placeholder {
    color: #888;
}

.chat-send-btn {
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.chat-send-btn:hover {
    transform: scale(1.1);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Scrollbar */
.live-chat-body::-webkit-scrollbar {
    width: 6px;
}

.live-chat-body::-webkit-scrollbar-track {
    background: #222;
}

.live-chat-body::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

.live-chat-body::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .live-chat-modal {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        height: 450px;
    }
    
    .live-chat-button {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}