/* LexAnnotate LLM-Style Interface - LexData Themed */

/* Scoped variables for this page/section */
:root {
    --llm-bg: #050505; /* LexData Dark Black */
    --llm-sidebar: rgba(10, 10, 10, 0.8); /* Glass dark */
    --llm-input-bg: rgba(20, 20, 20, 0.6); /* Glass input */
    --llm-input-border: rgba(255, 255, 255, 0.1);
    --llm-text-primary: #ffffff;
    --llm-text-secondary: #a1a1aa;
    --llm-accent: #5d5dff; /* LexData Blue */
    --llm-accent-gradient: linear-gradient(135deg, #5d5dff 0%, #a855f7 100%);
    --llm-font-primary: 'Nunito', sans-serif;
    --llm-font-mono: 'Space Mono', monospace;
}

/* Hide standard elements for this immersive view if needed, 
   but we'll keep nav for site consistency, just make it blend */
body.lexannotate-page {
    background-color: var(--llm-bg);
    overflow-x: hidden;
    font-family: var(--llm-font-primary);
}

.lexannotate-page nav {
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    position: absolute;
}

/* --- Layout Grid --- */
.llm-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    padding-top: 80px; /* Space for main nav */
    position: relative;
    overflow: hidden;
    background: transparent; /* Allow neural-bg to show */
    z-index: 5;
}

/* --- Sidebar --- */
.llm-sidebar {
    width: 70px;
    background-color: var(--llm-sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    gap: 1.5rem;
    z-index: 20;
}

.sidebar-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--llm-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: 1px solid transparent;
}

.sidebar-icon:hover, .sidebar-icon.active {
    background-color: rgba(93, 93, 255, 0.1);
    color: var(--llm-text-primary);
    border-color: rgba(93, 93, 255, 0.3);
    box-shadow: 0 0 15px rgba(93, 93, 255, 0.2);
}

.sidebar-spacer {
    flex-grow: 1;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--llm-accent-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

/* --- Main Content Area --- */
.llm-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-bottom: 8%; /* Visual offset */
}

/* Greeting */
.llm-greeting-wrapper {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out;
}

.llm-icon-logo {
    font-size: 3.5rem;
    background: var(--llm-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(93, 93, 255, 0.3));
}

.llm-greeting {
    font-family: var(--llm-font-primary);
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #fff;
    letter-spacing: -0.02em;
}

/* Input Area (Dropzone) */
.llm-input-container {
    width: 100%;
    max-width: 750px;
    position: relative;
    animation: slideUp 0.8s ease-out 0.1s backwards;
    padding: 0 20px;
}

.llm-input-box {
    background-color: var(--llm-input-bg);
    border: 1px solid var(--llm-input-border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: text;
    min-height: 140px;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}

.llm-input-box:hover, .llm-input-box.drag-active {
    border-color: var(--llm-accent);
    background-color: rgba(30, 30, 35, 0.8);
    box-shadow: 0 0 30px rgba(93, 93, 255, 0.15);
}

.input-top-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-grow: 1;
}

.input-plus-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.05);
}

.input-plus-btn:hover {
    background: var(--llm-accent);
    border-color: var(--llm-accent);
    box-shadow: 0 0 15px rgba(93, 93, 255, 0.4);
}

.input-placeholder {
    color: var(--llm-text-secondary);
    font-size: 1.2rem;
    margin-top: 4px;
    font-weight: 400;
}

.input-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.model-selector {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 50px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.1);
    font-family: var(--llm-font-mono);
    transition: all 0.2s;
}

.model-selector:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    color: #fff;
}

.keyboard-shortcut {
    color: #555;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.llm-input-box:hover .keyboard-shortcut {
    color: #888;
}

/* Quick Action Pills */
.llm-pills-row {
    display: flex;
    gap: 0.8rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.llm-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: var(--llm-text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--llm-font-primary);
}

.llm-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--llm-text-primary);
    color: #fff;
    transform: translateY(-2px);
}

.llm-pill i {
    font-size: 0.9rem;
    color: var(--accent-purple);
}

/* Loading/Success States inside box */
.upload-state {
    display: none;
    align-items: center;
    gap: 1rem;
    color: #fff;
}

.upload-state.active {
    display: flex;
}

/* Loader Override */
.loader-spinner {
    border: 3px solid rgba(93, 93, 255, 0.2);
    border-top-color: var(--llm-accent);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hide standard footer for this immersive page */
.lexannotate-page footer {
    display: none;
}

/* --- Features Section below fold (if scrolling) --- */
.features-container-dark {
    background-color: var(--bg-secondary);
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   TUTORIAL OVERLAY STYLES
   ========================================================================== */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.tutorial-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tutorial-card {
    width: 90%;
    max-width: 500px;
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tutorial-overlay.active .tutorial-card {
    transform: scale(1) translateY(0);
}

.tutorial-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--llm-text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.tutorial-close:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Slides */
.tutorial-slides {
    position: relative;
    min-height: 280px; /* Reserve height */
    overflow: hidden;
}

.t-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.t-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 2;
}

.t-slide.prev {
    transform: translateX(-50px);
    opacity: 0;
}

/* Icon Graphics */
.t-icon-bg {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Step specific colors */
[data-step="1"] .t-icon-bg { color: #3b82f6; border-color: rgba(59, 130, 246, 0.3); box-shadow: 0 0 30px rgba(59, 130, 246, 0.15); }
[data-step="2"] .t-icon-bg { color: #a855f7; border-color: rgba(168, 85, 247, 0.3); box-shadow: 0 0 30px rgba(168, 85, 247, 0.15); }
[data-step="3"] .t-icon-bg { color: #f97316; border-color: rgba(249, 115, 22, 0.3); box-shadow: 0 0 30px rgba(249, 115, 22, 0.15); }

.t-slide h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 700;
}

.t-slide p {
    font-size: 1.1rem;
    color: var(--llm-text-secondary);
    line-height: 1.6;
}

/* Navigation */
.tutorial-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.t-dots {
    display: flex;
    gap: 8px;
}

.t-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.t-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #fff;
}

.t-next-btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 1rem;
    min-width: 100px;
}

/* Responsive */
@media (max-width: 768px) {
    .llm-sidebar {
        display: none;
    }
    
    .llm-layout {
        padding-left: 0;
    }
    
    .llm-greeting {
        font-size: 2rem;
    }
    
    .llm-input-container {
        padding: 0 20px;
    }
}