/* 
    VINTI AI CHATBOT - UPDATED ICON & CLEAN DESIGN
*/

.vinti-chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

/* TOGGLE BUTTON - IMAGE BASED */
.vinti-toggle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #eee;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    pointer-events: auto;
}

.vinti-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-color: #000;
}

.vinti-toggle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* WINDOW */
.vinti-window {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 360px;
    height: 520px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
}

.vinti-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* HEADER */
.vinti-header {
    background: #000;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vinti-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vinti-avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    background: #333;
}

.vinti-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vinti-header-text {
    display: flex;
    flex-direction: column;
}

.vinti-name {
    font-size: 14px;
    font-weight: 600;
}

.vinti-status {
    font-size: 10px;
    opacity: 0.7;
}

.vinti-close {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s;
}

.vinti-close:hover {
    transform: rotate(90deg);
}

/* MESSAGES */
.vinti-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fafafa;
}

.vinti-message {
    display: flex;
    max-width: 85%;
}

.vinti-message.bot {
    align-self: flex-start;
}

.vinti-message.user {
    align-self: flex-end;
}

.vinti-message-bubble {
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 13.5px;
    line-height: 1.5;
}

.vinti-message.bot .vinti-message-bubble {
    background: #fff;
    color: #333;
    border: 1px solid #eee;
    border-bottom-left-radius: 4px;
}

.vinti-message.user .vinti-message-bubble {
    background: #000;
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* INPUT */
.vinti-input-area {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.vinti-input-area input {
    flex: 1;
    border: 1px solid #eee;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}

.vinti-input-area input:focus {
    border-color: #000;
    background: #fdfdfd;
}

.vinti-input-area button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.vinti-input-area button:hover {
    background: #333;
    transform: scale(1.05);
}

/* THINKING ANIMATION */
.thinking {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.thinking::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: thinkingPulse 1s infinite;
}

@keyframes thinkingPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

/* SUGGESTED QUESTIONS */
.vinti-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
    margin-bottom: 10px;
}

.suggestion-btn {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    max-width: 100%;
    text-align: left;
}

.suggestion-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.suggestion-btn:active {
    transform: scale(0.98);
}

/* MOBILE */
@media (max-width: 480px) {
    .vinti-window {
        width: calc(100vw - 40px);
        height: 80vh;
        right: -10px;
        bottom: 80px;
    }
}
