/* Solvetaa Website AI Bot Styles */

/* Bot Icon */
.website-bot-icon {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-brand-teal), var(--color-brand-navy));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9998;
}

.website-bot-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.website-bot-icon.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.website-bot-icon svg {
    color: white;
}

.bot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-brand-teal);
    opacity: 0;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Bot Window */
.website-bot-window {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 420px;
    max-width: calc(100vw - 48px);
    height: 600px;
    max-height: calc(100vh - 100px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow: hidden;
}

.website-bot-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Bot Header */
.bot-header {
    background: linear-gradient(135deg, var(--color-brand-navy), var(--color-brand-teal));
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px 16px 0 0;
}

.bot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.bot-name {
    font-weight: 600;
    font-size: 16px;
}

.bot-status {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bot-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.bot-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.bot-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Messages Area */
.bot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bot-messages::-webkit-scrollbar {
    width: 6px;
}

.bot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.bot-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.bot-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Message Bubbles */
.bot-message,
.user-message {
    display: flex;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.bot-message-content,
.user-message-content {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.5;
    font-size: 14px;
}

.bot-message-content {
    background: white;
    color: var(--color-brand-navy);
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.user-message-content {
    background: var(--color-brand-navy);
    color: white;
}

.bot-message-content strong {
    color: var(--color-brand-teal);
    font-weight: 600;
}

.bot-message-content .bullet,
.bot-message-content .checkmark {
    color: var(--color-brand-teal);
    font-weight: bold;
    margin-right: 4px;
}

/* Suggested Questions */
.bot-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.bot-suggestions-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 4px;
}

.bot-suggestion-btn {
    background: white;
    border: 1px solid var(--color-brand-teal);
    color: var(--color-brand-teal);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-weight: 500;
}

.bot-suggestion-btn:hover {
    background: var(--color-brand-teal);
    color: white;
    transform: translateX(4px);
}

/* Typing Indicator */
.typing-indicator .bot-message-content {
    padding: 16px 20px;
}

.typing-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--color-brand-teal);
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Input Area */
.bot-input-area {
    padding: 16px 20px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    align-items: center;
}

.bot-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.bot-input:focus {
    border-color: var(--color-brand-teal);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

.bot-send-btn {
    width: 40px;
    height: 40px;
    background: var(--color-brand-teal);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.bot-send-btn:hover {
    background: var(--color-brand-navy);
    transform: scale(1.05);
}

.bot-send-btn:active {
    transform: scale(0.95);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .website-bot-icon {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
    }

    .website-bot-window {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .bot-header {
        border-radius: 0;
    }

    .bot-message-content,
    .user-message-content {
        max-width: 90%;
    }
}

/* Accessibility */
.bot-send-btn:focus,
.bot-close:focus,
.bot-suggestion-btn:focus {
    outline: 2px solid var(--color-brand-teal);
    outline-offset: 2px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .website-bot-window {
        background: #1e293b;
    }

    .bot-messages {
        background: #0f172a;
    }

    .bot-message-content {
        background: #1e293b;
        border-color: #334155;
        color: #e2e8f0;
    }

    .bot-input-area {
        background: #1e293b;
        border-top-color: #334155;
    }

    .bot-input {
        background: #0f172a;
        border-color: #334155;
        color: #e2e8f0;
    }

    .bot-suggestion-btn {
        background: #1e293b;
        border-color: var(--color-brand-teal);
    }
}