/* LLM Studio - Layout & Navigation Components */

/* Top Header Bar */
.top-header {
    height: 60px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    z-index: 10;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-btn:hover {
    color: var(--text-main);
    background: var(--bg-sidebar);
    border-color: var(--border-color);
}

.close-sidebar-btn {
    display: none;
}

.model-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

.model-select {
    max-width: 280px;
    border: 0;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    font-weight: 700;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.model-quant {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-teal);
    background: rgba(13, 148, 136, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.metrics-bar {
    display: flex;
    gap: 8px;
}

.metric-pill {
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.metric-pill.speed i { color: #f59e0b; }
.metric-pill.ttft i { color: #3b82f6; }

.metric-pill.generating {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    animation: pillGlow 1.5s infinite ease-in-out;
}

@keyframes pillGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.metric-val {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--primary);
}

/* Floating Input Dock */
.input-area-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 20px 20px 20px;
    pointer-events: none;
    display: flex;
    justify-content: center;
    z-index: 15;
    background: linear-gradient(to top, var(--bg-main) 70%, transparent 100%);
}

.input-dock {
    max-width: 860px;
    width: 100%;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    backdrop-filter: blur(16px);
    border: 1.5px solid var(--border-color);
    border-radius: 24px;
    padding: 10px 14px 10px 18px;
    box-shadow: var(--shadow-lg);
    transition: all 0.25s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), 0 0 20px var(--primary-glow);
}

.input-wrapper textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: inherit;
    font-size: 14.5px;
    resize: none;
    max-height: 180px;
    line-height: 1.5;
}

.input-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.send-btn, .stop-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.send-btn {
    background: var(--primary);
    color: white;
}

.send-btn:disabled {
    background: var(--border-color);
    color: var(--text-subtle);
    cursor: not-allowed;
}

.send-btn:not(:disabled):hover {
    background: var(--primary-hover);
    transform: scale(1.06);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.stop-btn {
    background: #ef4444;
    color: white;
    animation: stopPulse 1.2s infinite ease-in-out;
}

@keyframes stopPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.stop-btn:hover {
    background: #dc2626;
}

.input-footer {
    text-align: center;
    font-size: 11px;
    color: var(--text-subtle);
}
