/* Additional styles for WhatsApp Bot Chat Interface */

.chat-container {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.message-input:focus,
.phone-input:focus {
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.send-button:active {
    transform: scale(0.98);
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Message animations */
.message {
    transition: all 0.3s ease;
}

.message:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #25D366;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #f44336;
}

.notification.info {
    background: #2196F3;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .chat-input-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .phone-input,
    .message-input {
        width: 100%;
        flex: none;
    }
    
    .send-button {
        width: 100%;
        padding: 15px;
    }
}

/* Enhanced contact information styles */
.contact-last-message {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.contact-message-count {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.contact-item:hover .contact-last-message {
    color: #444;
}

.contact-item.active .contact-last-message {
    color: #fff;
}

.contact-item.active .contact-message-count {
    color: #ddd;
}
