/* Nova Bot Styles */
.nova-bot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nova-bot-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0066ff, #00ccff);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.4);
    transition: all 0.3s ease;
    border: none;
    animation: pulse 2s infinite;
}

.nova-bot-button:hover {
    background: linear-gradient(135deg, #0052cc, #00b3e6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.6);
    animation: none;
}

.nova-bot-button i {
    font-size: 1.5rem;
}

.nova-bot-window {
    width: 380px;
    height: 550px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nova-bot-window.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.nova-bot-header {
    background: linear-gradient(135deg, #0066ff, #00a3ff);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nova-bot-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nova-bot-verified {
    font-size: 0.75rem;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 3px 8px 3px 6px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nova-bot-verified i {
    color: #00ffcc;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
}

.nova-bot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
}

.nova-bot-close:hover {
    transform: rotate(90deg);
}

.nova-bot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nova-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: fadeIn 0.4s ease;
    position: relative;
}

.nova-message-bot {
    background-color: white;
    color: #1a2b3c;
    border: 1px solid #e0e7ff;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.08);
    border-top-left-radius: 4px;
}

.nova-message-user {
    background: linear-gradient(135deg, #0066ff, #00a3ff);
    color: white;
    align-self: flex-end;
    border-top-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.2);
}

.nova-bot-input-area {
    padding: 15px;
    border-top: 1px solid #e0e7ff;
    background-color: white;
    display: flex;
    gap: 10px;
    align-items: center;
}

.nova-bot-input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid #e0e7ff;
    border-radius: 50px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.nova-bot-input:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.nova-bot-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066ff, #00a3ff);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nova-bot-send:hover {
    background: linear-gradient(135deg, #0052cc, #0086cc);
    transform: rotate(15deg);
}

.nova-bot-send:disabled {
    background: #e0e7ff;
    cursor: not-allowed;
    transform: none;
}

.nova-bot-send i {
    font-size: 1rem;
}

.nova-bot-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 5px;
}

.nova-bot-dot {
    width: 8px;
    height: 8px;
    background-color: #0066ff;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.nova-bot-dot:nth-child(1) {
    animation-delay: 0s;
}

.nova-bot-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.nova-bot-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.nova-bot-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.nova-bot-quick-reply {
    background-color: rgba(0, 102, 255, 0.1);
    color: #0066ff;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.nova-bot-quick-reply:hover {
    background-color: rgba(0, 102, 255, 0.2);
    transform: translateY(-2px);
}

.nova-bot-time {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 4px;
    text-align: right;
}

.nova-bot-footer {
    padding: 10px 15px;
    font-size: 0.7rem;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid #e0e7ff;
    background-color: white;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(0, 102, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 102, 255, 0); }
}

/* Markdown-like formatting for bot messages */
.nova-message-bot strong {
    color: #0066ff;
    font-weight: 600;
}

.nova-message-bot a {
    color: #0066ff;
    text-decoration: none;
    font-weight: 500;
}

.nova-message-bot a:hover {
    text-decoration: underline;
}

.nova-message-bot ul {
    padding-left: 20px;
    margin: 8px 0;
}

.nova-message-bot li {
    margin-bottom: 6px;
}

/* Scrollbar styling */
.nova-bot-messages::-webkit-scrollbar {
    width: 6px;
}

.nova-bot-messages::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.nova-bot-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.nova-bot-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Loading skeleton */
.nova-bot-loading {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nova-bot-loading-line {
    height: 16px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* Mobile Responsive Styles */
@media (max-width: 480px) {
    .nova-bot-container {
        bottom: 15px;
        right: 15px;
    }
    
    .nova-bot-button {
        width: 50px;
        height: 50px;
    }
    
    .nova-bot-window {
        width: calc(100vw - 30px);
        height: 70vh;
        max-height: 500px;
        bottom: 80px;
        right: 15px;
        left: auto;
    }
    
    .nova-bot-messages {
        padding: 15px;
    }
    
    .nova-message {
        max-width: 90%;
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .nova-bot-input-area {
        padding: 10px;
    }
    
    .nova-bot-input {
        padding: 10px 15px;
    }
    
    .nova-bot-send {
        width: 40px;
        height: 40px;
    }
}

/* For very small screens */
@media (max-width: 350px) {
    .nova-bot-window {
        width: calc(100vw - 20px);
        right: 10px;
    }
    
    .nova-bot-header {
        padding: 12px 15px;
    }
    
    .nova-bot-header h3 {
        font-size: 1rem;
    }
    
    .nova-bot-verified {
        font-size: 0.65rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .nova-bot-window {
        height: 80vh;
        max-height: none;
        bottom: 70px;
    }
}