/* AI Chat Widget Styles */
.ai-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.ai-chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0056b3 0%, #003d80 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ai-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.5);
}

.ai-chat-button svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.ai-chat-button.open svg.chat-icon {
    display: none;
}

.ai-chat-button.open svg.close-icon {
    display: block;
}

.ai-chat-button svg.close-icon {
    display: none;
}

.ai-chat-container {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.ai-chat-container.open {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-chat-header {
    background: linear-gradient(135deg, #0056b3 0%, #003d80 100%);
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    padding: 4px;
}

.ai-chat-header-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.ai-chat-header-info span {
    font-size: 12px;
    opacity: 0.9;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f8f9fa;
}

.ai-message {
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
}

.ai-message.bot {
    flex-direction: row;
}

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

.ai-message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.ai-message.bot .ai-message-content {
    background: white;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 4px;
}

.ai-message.user .ai-message-content {
    background: #0056b3;
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-chat-input {
    padding: 12px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 8px;
    background: white;
}

.ai-chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.ai-chat-input input:focus {
    border-color: #0056b3;
}

.ai-chat-input button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #0056b3;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ai-chat-input button:hover {
    background: #003d80;
}

.ai-chat-input button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #6c757d;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

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

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

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

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.quick-action {
    padding: 8px 12px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-action:hover {
    background: #0056b3;
    color: white;
    border-color: #0056b3;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .ai-chat-container {
    display: none;
        width: calc(100vw - 40px);
        height: 60vh;
        right: -10px;
    }
}
