/* Slayly V6: Conversational Interface Styles */

:root {
    --primary: #7000ff;
    --primary-dark: #5000b8;
    --success: #CCFF00;
    --cyan: #00E5FF;
    --dark: #050505;
    --dark-card: #0a0a0a;
    --dark-border: rgba(112, 0, 255, 0.2);
    --bg-deep: #020617;
}

#mouse-torch {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
}

#hero-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

/* Sidebar Transitions */
:root {
    --sb-width: 256px;
}

body.sidebar-minimized {
    --sb-width: 80px;
}

body {
    background: var(--dark);
    color: white;
    font-family: 'Inter', sans-serif;
    transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: var(--sb-width);
}

/* Mobile Sidebar Overrides */
@media (max-width: 1024px) {
    :root {
        --sb-width: 0px !important;
    }

    body {
        padding-left: 0 !important;
    }
}

.fixed-bottom-input {
    left: var(--sb-width) !important;
    right: 0 !important;
    z-index: 40 !important;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar {
    background: #0a0a0a !important;
    border-right: 1px solid #1A1A1A !important;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.sidebar-minimized .sidebar-footer #sidebarToggle {
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-content: center !important;
    width: 100% !important;
}

#sidebarToggle:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--dark-border);
}

/* Chat Message Styles */
.message {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.message.visible {
    opacity: 1;
    transform: translateY(0);
}

.message-ai {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.message-user {
    display: flex;
    justify-content: flex-end;
}

.message-user-bubble {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    padding: 0.75rem 1.25rem;
    border-radius: 1.5rem;
    max-width: 80%;
    color: white;
    font-size: 1.1rem;
}

/* Thought Chain Bubbles */
.thought-chain {
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--cyan);
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0 0.75rem 0.75rem 0;
    font-size: 0.85rem;
    color: #888;
    font-family: 'Monaco', 'Consolas', monospace;
    display: none;
    /* Controlled by JS */
}

/* Progress bar inside chat */
.mini-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin: 8px 0;
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    width: 0%;
    transition: width 1s ease;
}

/* Custom Scrollbar - Complete Hide */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* Logo Vortex Spin */
@keyframes vortexSpiral {
    from {
        transform: rotate(45deg);
    }

    to {
        transform: rotate(405deg);
    }
}

.vortex-spin {
    animation: vortexSpiral 10s linear infinite;
}