/* AI Assistant Styles */
.ai-assistant {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
}

.avatar-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4facfe, #0093E9);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: none;
    backdrop-filter: none;
    z-index: 1000;
}

.avatar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, #4facfe, #0093E9);
    z-index: -1;
    animation: pulse 2s infinite;
}

.avatar-container:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(79, 172, 254, 0.6);
}

.avatar-container:active {
    transform: scale(0.95);
}

.avatar-image {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-container:hover .avatar-image {
    transform: scale(1.1);
}

.avatar-status {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #4facfe, #0093E9);
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 3px 10px rgba(79, 172, 254, 0.3);
    font-weight: 500;
}

.avatar-container:hover .avatar-status {
    opacity: 1;
    visibility: visible;
    top: -50px;
}

.avatar-status::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #4facfe;
}

/* Chat Modal */
.chat-modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 16px rgba(0, 0, 0, 0.05);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: none;
    transform: translateY(100%) scale(0.8);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    opacity: 0;
}

.chat-modal.chat-open {
    transform: translateY(0) scale(1);
    opacity: 1;
}

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

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(100%) scale(0.8);
    }
}

.chat-header {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.8), rgba(0, 147, 233, 0.6));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

.close-chat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.close-chat:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(79, 172, 254, 0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 172, 254, 0.5);
}

.message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.message.user {
    align-items: flex-end;
}

.message.assistant {
    align-items: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.user .message-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #2c3e50;
    border: 1px solid rgba(108, 117, 125, 0.3);
    border-radius: 16px;
    border-bottom-right-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    text-shadow: none;
}

.message.assistant .message-content {
    background: rgba(79, 172, 254, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #ffffff;
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 16px;
    border-bottom-left-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.message-time {
    font-size: 11px;
    color: rgba(44, 62, 80, 0.6);
    margin-top: 4px;
    margin-left: 12px;
    margin-right: 12px;
    font-weight: 400;
}

.typing-indicator {
    display: none;
    align-items: center;
    padding: 12px 16px;
    background: rgba(79, 172, 254, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 16px;
    border-bottom-left-radius: 6px;
    max-width: 80%;
    margin-bottom: 15px;
}

.typing-indicator.show {
    display: flex;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

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

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

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-input-area {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(79, 172, 254, 0.5);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
    color: #2c3e50;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.chat-input::placeholder {
    color: rgba(44, 62, 80, 0.6);
    font-weight: 400;
}

.chat-input:focus {
    border-color: rgba(79, 172, 254, 0.8);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.send-button {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.9), rgba(0, 147, 233, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(79, 172, 254, 0.3);
    padding: 12px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
    background: linear-gradient(135deg, rgba(79, 172, 254, 1), rgba(0, 147, 233, 0.9));
}

.send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.send-button i {
    font-size: 12px;
}

/* Welcome message styling */
.welcome-message {
    text-align: center;
    padding: 20px;
    color: #2c3e50;
    font-size: 13px;
    font-weight: 500;
    text-shadow: none;
}

.welcome-message h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    text-shadow: none;
}

.welcome-message p {
    margin: 5px 0;
    line-height: 1.4;
    color: #2c3e50;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-assistant {
        bottom: 15px;
        right: 15px;
    }
    
    .avatar-container {
        width: 55px;
        height: 55px;
    }
    
    .avatar-image {
        width: 25px;
        height: 25px;
    }
    
    .chat-modal {
        bottom: 15px;
        right: 15px;
        left: 15px;
        width: auto;
        height: 70vh;
        transform: translateY(100%) scale(0.9);
    }
    
    .chat-modal.chat-open {
        transform: translateY(0) scale(1);
    }
    
    .chat-header h3 {
        font-size: 14px;
    }
    
    .message-content {
        max-width: 90%;
        font-size: 13px;
    }
}

/* Pulse animation for the chatbot button */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Quick response buttons */
.quick-responses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-response-btn {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-response-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
} 