/* Live Chat Styles */
/* TEMPORARILY HIDDEN - Remove display: none to re-enable */
.chat-widget {
    display: none !important; /* Hidden - remove this line to show chat */
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 998;
    font-family: Arial, sans-serif;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s;
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6);
}

.chat-toggle .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .chat-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .chat-toggle {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
    
    .chat-box {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .chat-header {
        padding: 12px 15px;
    }
    
    .chat-avatar {
        width: 35px;
        height: 35px;
    }
    
    .chat-header-title h3 {
        font-size: 16px;
    }
    
    .chat-header-title p {
        font-size: 11px;
    }
    
    .chat-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .chat-messages {
        padding: 12px;
    }
    
    .chat-message {
        max-width: 85%;
    }
    
    .message-avatar {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .message-content {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .quick-replies {
        padding: 8px 12px;
        flex-wrap: wrap;
    }
    
    .quick-reply-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .chat-input-container {
        padding: 12px;
    }
    
    #chatInput {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .chat-send-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .welcome-options {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }
    
    .option-btn {
        padding: 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
    
    .chat-header-title h3 {
        font-size: 15px;
    }
    
    .message-content {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .quick-reply-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

.chat-box {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.chat-box.active {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #667eea;
}

.chat-status {
    display: flex;
    flex-direction: column;
}

.chat-status h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-status small {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.chat-close:hover {
    background: rgba(255,255,255,0.2);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    display: flex;
    gap: 10px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.chat-message.user .message-avatar {
    background: #28a745;
}

.message-content {
    max-width: 70%;
}

.message-bubble {
    padding: 10px 15px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    word-wrap: break-word;
}

.chat-message.user .message-bubble {
    background: #667eea;
    color: white;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
    padding: 0 5px;
}

.typing-indicator {
    display: flex;
    gap: 10px;
    padding: 10px 15px;
    background: white;
    border-radius: 15px;
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    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); }
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-reply-btn {
    padding: 8px 15px;
    border: 1px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-reply-btn:hover {
    background: #667eea;
    color: white;
}

.chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
}

.chat-input:focus {
    border-color: #667eea;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
}

.chat-send-btn:hover {
    background: #5568d3;
    transform: scale(1.1);
}

.chat-send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: scale(1);
}

/* Welcome Message */
.welcome-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.welcome-message h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.welcome-message p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

/* Scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chat-box {
        width: calc(100vw - 20px);
        height: calc(100vh - 120px);
        right: 10px;
        bottom: 80px;
    }
    
    .chat-widget {
        right: 10px;
        bottom: 80px;
    }
}

/* Notification Badge Animation */
@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.chat-toggle .badge {
    animation: bounce 1s infinite;
}
