/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

.chat-widget-content {
    width: 300px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    transform-origin: bottom right;
}

.chat-widget-content.hidden {
    display: none;
}

.chat-widget-content.pulse {
    animation: pulse 1s;
}

.chat-header {
    background-color: #25D366;
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.chat-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}

.chat-body {
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.chat-message p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

.chat-footer {
    padding: 10px 15px;
    border-top: 1px solid #e0e0e0;
}

.chat-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
    width: 100%;
}

.chat-button:hover {
    background-color: #128C7E;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    border: none;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.chat-bubble.hidden {
    display: none;
}

/* Typing animation */
.typing-indicator {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #90a4ae;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    animation: typing 1.5s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.3s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.6s;
    margin-right: 0;
}

/* Animations */
@keyframes typing {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes bounce {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Media queries */
@media (max-width: 768px) {
    .chat-widget-content {
        width: 260px;
        max-width: calc(100vw - 40px);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .chat-widget {
        bottom: 10px;
        right: 10px;
    }
    
    .chat-bubble {
        width: 50px;
        height: 50px;
        font-size: 20px;
        opacity: 0.9;
    }
    
    .chat-body {
        max-height: 150px;
    }
    
    /* Ensure the chat doesn't cover too much content on small screens */
    .chat-widget-content {
        bottom: 70px;
        position: fixed;
        right: 10px;
    }
    
    /* Make the bubble more compact and less intrusive */
    .chat-bubble {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
}

/* Fix for header gradient in mobile view */
@media (max-width: 768px) {
    .header-gradient {
        /* Make the gradient more prominent on mobile */
        background: linear-gradient(90deg, #0057b3 0%, #0a84ff 100%);
        /* Add a border to distinguish it better */
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    }
} 