/* =========================================================
   NOVA - ELITE AI CONSULTANT (TASK 1: AI INTEGRATION)
   ========================================================= */

   .ai-fab {
    position: fixed;
    bottom: 30px;
    right: 110px; /* Next to WhatsApp */
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00aaff 0%, #0066cc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 170, 255, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-fab:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 170, 255, 0.6);
}

.ai-fab svg {
    width: 30px;
    height: 30px;
    fill: #fff;
    animation: pulse 2s infinite;
}

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

/* Chat Window */
.ai-chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: rgba(10, 14, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 170, 255, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ai-chat-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.2), transparent);
    border-radius: 20px 20px 0 0;
}

.ai-header-info h4 {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    margin: 0;
}

.ai-header-info p {
    color: #00ff88;
    font-size: 0.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ai-header-info p::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff88;
}

.ai-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}
.ai-close:hover { color: #fff; }

.ai-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-chat-body::-webkit-scrollbar { width: 6px; }
.ai-chat-body::-webkit-scrollbar-thumb { background: rgba(0, 170, 255, 0.3); border-radius: 10px; }

.ai-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.ai-msg.bot {
    background: rgba(255, 255, 255, 0.05);
    color: #f0f0f5;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-msg.user {
    background: linear-gradient(135deg, #0066cc, #00aaff);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.ai-chat-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
}

.ai-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 20px;
    color: #fff;
    outline: none;
    font-family: 'Inter', sans-serif;
}
.ai-chat-input:focus {
    border-color: #00aaff;
    background: rgba(0, 170, 255, 0.05);
}

.ai-chat-send {
    background: #00aaff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: transform 0.2s;
}
.ai-chat-send:hover {
    transform: scale(1.1);
}

/* Location Highlight for Task 2 */
.dynamic-location {
    color: #00aaff;
    font-weight: 700;
    border-bottom: 2px dashed #00aaff;
    display: inline-block;
    animation: fadeInText 1s ease-in-out;
}

@keyframes fadeInText {
    0% { opacity: 0.5; transform: scale(0.95); color: #fff; }
    100% { opacity: 1; transform: scale(1); color: #00aaff; }
}

@media (max-width: 768px) {
    .ai-chat-window {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 90px;
    }
}
