/* CONTAINER */
#lumi-root {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* WIDGET BUTTON */
#lumi-widget {
    position: fixed;
    top: 120px;
    right: 40px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0,0,0,0.05);
}

#lumi-widget:hover {
    transform: scale(1.05);
}

#lumi-widget.active {
    transform: scale(0.8);
    opacity: 0;
    pointer-events: none;
}

/* AVATAR FACE */
.lumi-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lumi-eyes {
    display: flex;
    gap: 8px;
}

.eye {
    width: 8px;
    height: 14px;
    background: #111;
    border-radius: 6px;
    animation: blink 4s infinite;
}

.lumi-eyes.thinking .eye {
    animation: bounce 0.5s infinite alternate;
    background: #7c3aed; /* Lacesse Purple */
}

@keyframes blink {
    0%, 96%, 100% { height: 14px; }
    98% { height: 2px; }
}

@keyframes bounce {
    to { transform: translateY(-4px); }
}

/* CHAT PANEL */
#lumi-panel {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    height: 600px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.3s ease;
}

#lumi-panel.hidden {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    pointer-events: none;
}

/* HEADER */
.lumi-header {
    padding: 18px 24px;
    background: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lumi-title {
    font-weight: 600;
    color: #111;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
}

.lumi-header button {
    background: none;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

/* MESSAGES AREA */
.lumi-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.msg.lumi {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: #333;
}

.msg.user {
    background: #111;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.msg.system {
    align-self: center;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 6px 12px;
}

/* INPUT AREA */
.lumi-input {
    padding: 16px;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    gap: 12px;
    color: #000 !important;
}

.lumi-input input {
    flex: 1;
    border: none;
    color: #000 !important;
    background: #f5f5f5;
    padding: 12px 16px;
    border-radius: 12px;
    outline: none;
    font-size: 14px;
    transition: background 0.2s;
}

.lumi-input input:focus {
    background: #eee;
}

.lumi-input button {
    background: #111;
    color: white;
    border: none;
    width: 40px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 480px) {
    #lumi-panel {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    
    #lumi-widget {
        bottom: 20px;
        right: 20px;
    }
}