/* Nyxzie Chatbot Widget Styles */

.nyxzie-chatbot-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    font-family: var(--font-main, 'Outfit', sans-serif);
}

/* Chat Button */
.nyxzie-chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #7c3aed), var(--secondary, #06b6d4));
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: nyxzie-chatbot-pulse 2s ease-in-out infinite;
}

.nyxzie-chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(124, 58, 237, 0.6);
}

.nyxzie-chatbot-button-active {
    transform: scale(0.9);
    animation: none;
}

.nyxzie-chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: #ff4444;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    border: 2px solid var(--bg-dark, #0a0a12);
    animation: nyxzie-chatbot-badge-pulse 1s ease-in-out infinite;
}

@keyframes nyxzie-chatbot-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(124, 58, 237, 0.7);
    }
}

@keyframes nyxzie-chatbot-badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Chat Modal */
.nyxzie-chatbot-modal {
    position: fixed;
    bottom: 90px;
    right: 2rem;
    width: 380px;
    max-width: calc(100vw - 4rem);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: var(--bg-dark, #0a0a12);
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nyxzie-chatbot-modal-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.nyxzie-chatbot-header {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
}

.nyxzie-chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nyxzie-chatbot-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--primary, #7c3aed);
}

.nyxzie-chatbot-header-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-main, #f8fafc);
    font-weight: 600;
}

.nyxzie-chatbot-status {
    font-size: 0.75rem;
    color: #25D366;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nyxzie-chatbot-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #25D366;
    border-radius: 50%;
    display: inline-block;
    animation: nyxzie-chatbot-status-pulse 2s ease-in-out infinite;
}

@keyframes nyxzie-chatbot-status-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.nyxzie-chatbot-close {
    background: transparent;
    border: none;
    color: var(--text-muted, #94a3b8);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nyxzie-chatbot-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main, #f8fafc);
}

/* Chat Messages */
.nyxzie-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

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

.nyxzie-chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.nyxzie-chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.nyxzie-chatbot-message {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    animation: nyxzie-chatbot-message-appear 0.3s ease-out;
}

@keyframes nyxzie-chatbot-message-appear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.nyxzie-chatbot-message-bot {
    align-items: flex-start;
}

.nyxzie-chatbot-message-content {
    max-width: 75%;
    padding: 0.8rem 1rem;
    border-radius: 18px;
    word-wrap: break-word;
}

.nyxzie-chatbot-message-user .nyxzie-chatbot-message-content {
    background: linear-gradient(135deg, var(--primary, #7c3aed), var(--secondary, #06b6d4));
    color: white;
    border-bottom-right-radius: 4px;
}

.nyxzie-chatbot-message-bot .nyxzie-chatbot-message-content {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main, #f8fafc);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
}

.nyxzie-chatbot-message-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Typing Indicator */
.nyxzie-chatbot-typing {
    opacity: 0.8;
}

.nyxzie-typing-dots {
    display: flex;
    gap: 6px;
    padding: 8px 0;
}

.nyxzie-typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted, #888);
    animation: nyxzie-typing-bounce 1.4s ease-in-out infinite;
}

.nyxzie-typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

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

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

@keyframes nyxzie-typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Markdown Support in Messages */
.nyxzie-chatbot-message-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.nyxzie-chatbot-message-content em {
    font-style: italic;
    opacity: 0.8;
    font-size: 0.9em;
}

/* Color effects for bot messages */
.nyxzie-chatbot-message-bot .nyxzie-chatbot-message-content strong {
    color: var(--secondary, #06b6d4);
    font-weight: 600;
}

.nyxzie-chatbot-message-bot .nyxzie-chatbot-message-content a {
    color: var(--secondary, #06b6d4);
    text-decoration: none;
    transition: all 0.2s ease;
}

.nyxzie-chatbot-message-bot .nyxzie-chatbot-message-content a:hover {
    color: var(--primary, #7c3aed);
    text-decoration: underline;
}

.nyxzie-chatbot-message-bot .nyxzie-chatbot-message-content ul {
    margin: 8px 0;
    padding-left: 20px;
    list-style: none;
}

.nyxzie-chatbot-message-bot .nyxzie-chatbot-message-content li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 1rem;
}

.nyxzie-chatbot-message-bot .nyxzie-chatbot-message-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary, #06b6d4);
    font-weight: bold;
    font-size: 1.2em;
}

.nyxzie-chatbot-message-bot .nyxzie-chatbot-message-content p {
    margin: 0.5rem 0;
}

.nyxzie-chatbot-message-bot .nyxzie-chatbot-message-content p:first-child {
    margin-top: 0;
}

.nyxzie-chatbot-message-bot .nyxzie-chatbot-message-content p:last-child {
    margin-bottom: 0;
}

.nyxzie-chatbot-time {
    font-size: 0.7rem;
    color: var(--text-muted, #94a3b8);
    padding: 0 0.5rem;
}

/* Chat Input */
.nyxzie-chatbot-input-container {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nyxzie-chatbot-input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
    border-radius: 25px;
    color: var(--text-main, #f8fafc);
    font-family: var(--font-main, 'Outfit', sans-serif);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.nyxzie-chatbot-input:focus {
    border-color: var(--primary, #7c3aed);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.nyxzie-chatbot-input::placeholder {
    color: var(--text-muted, #94a3b8);
}

.nyxzie-chatbot-send {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #7c3aed), var(--secondary, #06b6d4));
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nyxzie-chatbot-send:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.nyxzie-chatbot-send:active {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .nyxzie-chatbot-widget {
        bottom: 1rem;
        right: 1rem;
    }

    .nyxzie-chatbot-modal {
        bottom: 80px;
        right: 1rem;
        left: 1rem;
        width: auto;
        max-width: none;
        height: calc(100vh - 100px);
        max-height: calc(100vh - 100px);
    }

    .nyxzie-chatbot-button {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .nyxzie-chatbot-modal {
        border-radius: 20px 20px 0 0;
        bottom: 0;
        right: 0;
        left: 0;
        height: calc(100vh - 80px);
        max-height: calc(100vh - 80px);
    }
}

