.asi-bot-container {
    position: fixed;
    bottom: 2.5rem;
    left: 2.5rem;
    z-index: 999;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.asi-trigger-btn {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    background-color: #020617;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
    cursor: pointer;
    position: relative;
    outline: none;
}

.asi-trigger-btn:hover {
    border-color: #10b981;
}

.asi-trigger-ping-wrapper {
    position: relative;
}

.asi-pulse-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #10b981;
    border-radius: 9999px;
    box-shadow: 0 0 10px #10b981;
    animation: asi-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.asi-ping-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #10b981;
    border-radius: 9999px;
    opacity: 0.4;
    animation: asi-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.asi-proactive-label {
    position: absolute;
    left: 5rem;
    background-color: #020617;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.25rem 0.75rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.asi-trigger-btn:hover .asi-proactive-label {
    opacity: 1;
}

.asi-proactive-label span {
    font-size: 9px;
    color: #10b981;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    white-space: nowrap;
}

.asi-interface-box {
    width: 380px;
    height: 500px;
    background-color: #020617;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: asi-slide-in 0.3s ease-out;
}

.asi-interface-box.hidden {
    display: none;
}

.asi-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.02);
}

.asi-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.asi-header-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 9999px;
}

.asi-header-title span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

.asi-close-btn {
    color: rgba(255, 255, 255, 0.2);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.asi-close-btn:hover {
    color: white;
}

.asi-chat-stream {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.asi-chat-stream::-webkit-scrollbar {
    width: 6px;
}
.asi-chat-stream::-webkit-scrollbar-track {
    background: transparent;
}
.asi-chat-stream::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.2);
    border-radius: 3px;
}

.asi-msg-wrapper {
    display: flex;
    flex-direction: column;
}

.asi-msg-wrapper.assistant {
    align-items: flex-start;
}

.asi-msg-wrapper.user {
    align-items: flex-end;
}

.asi-msg-role {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.asi-msg-content {
    max-width: 85%;
    padding: 0.75rem;
    font-size: 11px;
    line-height: 1.6;
}

.asi-msg-wrapper.assistant .asi-msg-content {
    background-color: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border-left: 1px solid rgba(16, 185, 129, 0.5);
}

.asi-msg-wrapper.user .asi-msg-content {
    background-color: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.asi-input-area {
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.asi-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.asi-prompt-symbol {
    color: #10b981;
    font-size: 0.75rem;
}

#asi-command-input {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 11px;
    color: #10b981;
    font-family: inherit;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    outline: none;
}

#asi-command-input::placeholder {
    color: #1e293b;
}

@keyframes asi-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

@keyframes asi-ping {
    75%, 100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes asi-slide-in {
    from {
        transform: translateX(-1rem);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
