/* =========================================
   COMMAND INPUT SECTION (TOP - FOCAL)
   ========================================= */
.command-input-section {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.command-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.command-label {
    font-family: "Orbitron", monospace;
    font-size: 11px;
    font-weight: 700;
    color: #ff9329;
    letter-spacing: 2px;
}

.command-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #666;
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #444;
}

.status-indicator.ready {
    background: #3fb950;
}

.status-indicator.thinking {
    background: #ff9329;
    animation: pulse 1s infinite;
}

.status-indicator.error {
    background: #ff4a4a;
}

.command-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.command-input-wrapper:focus-within {
    border-color: var(--accent-orange);
    box-shadow: 0 0 20px rgba(255, 147, 41, 0.2);
}

.command-input-wrapper textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: "Inter", sans-serif;
    font-size: 14px;
    padding: 12px 8px;
    resize: none;
    outline: none;
    min-height: 44px;
    max-height: 120px;
}

.command-input-wrapper textarea::placeholder {
    color: var(--text-muted);
}

/* Embedded Mic Button */
.mic-btn-embedded {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.mic-btn-embedded:hover {
    color: var(--accent-orange);
}

.mic-btn-embedded.active {
    color: var(--accent-orange);
    animation: micPulse 1s infinite;
}

@keyframes micPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Embedded Send Button */
.send-btn-embedded {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-orange);
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.send-btn-embedded:hover {
    background: var(--accent-orange-bright);
    transform: scale(1.05);
}

/* Command Header Hint */
.command-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* Active Model Badge */
.active-model-badge {
    background: rgba(255, 147, 41, 0.15);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: var(--accent-orange);
    font-weight: 500;
}

.input-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.voice-input-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s ease;
}

.voice-input-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ff9329;
}

/* Input Actions Row */
.input-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 12px;
}

/* SHOOT Button - Large Circle */
.shoot-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff9329 0%, #ff6b00 50%, #ff4500 100%);
    border: 4px solid rgba(255, 147, 41, 0.6);
    color: #111;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow:
        0 6px 20px rgba(255, 147, 41, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.shoot-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.shoot-btn:hover {
    transform: scale(1.08);
    box-shadow:
        0 10px 30px rgba(255, 147, 41, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.shoot-btn:hover::before {
    left: 100%;
}

.shoot-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(255, 147, 41, 0.3);
}

.shoot-text {
    font-family: 'Orbitron', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Shoot Row - Centered button */
.shoot-row {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

/* Circulating Glow Animation for Thinking/Talking States */
.shoot-btn.thinking,
.shoot-btn.working {
    animation: circulatingGlow 2s linear infinite;
}

@keyframes circulatingGlow {
    0% {
        box-shadow:
            0 6px 20px rgba(255, 147, 41, 0.4),
            0 -3px 15px rgba(255, 147, 41, 0.6),
            3px 0 15px rgba(255, 100, 0, 0.2),
            -3px 0 15px rgba(255, 100, 0, 0.2);
    }

    25% {
        box-shadow:
            0 6px 20px rgba(255, 147, 41, 0.4),
            3px 0 15px rgba(255, 147, 41, 0.6),
            0 3px 15px rgba(255, 100, 0, 0.2),
            0 -3px 15px rgba(255, 100, 0, 0.2);
    }

    50% {
        box-shadow:
            0 6px 20px rgba(255, 147, 41, 0.4),
            0 3px 15px rgba(255, 147, 41, 0.6),
            -3px 0 15px rgba(255, 100, 0, 0.2),
            3px 0 15px rgba(255, 100, 0, 0.2);
    }

    75% {
        box-shadow:
            0 6px 20px rgba(255, 147, 41, 0.4),
            -3px 0 15px rgba(255, 147, 41, 0.6),
            0 -3px 15px rgba(255, 100, 0, 0.2),
            0 3px 15px rgba(255, 100, 0, 0.2);
    }

    100% {
        box-shadow:
            0 6px 20px rgba(255, 147, 41, 0.4),
            0 -3px 15px rgba(255, 147, 41, 0.6),
            3px 0 15px rgba(255, 100, 0, 0.2),
            -3px 0 15px rgba(255, 100, 0, 0.2);
    }
}

/* Legacy send-btn support */
.send-btn {
    background: linear-gradient(135deg, #ff9329 0%, #ff7b00 100%);
    border: none;
    color: #111;
    font-weight: 600;
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 147, 41, 0.3);
}

/* =========================================
   CATEGORY TABS (Icon-based)
   ========================================= */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.category-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #888;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-tab:hover {
    background: rgba(255, 147, 41, 0.1);
    border-color: rgba(255, 147, 41, 0.3);
}

.category-tab.active {
    background: rgba(255, 147, 41, 0.15);
    border-color: #ff9329;
    box-shadow: 0 0 12px rgba(255, 147, 41, 0.2);
}

.category-tab .tab-icon {
    font-size: 22px;
}

/* =========================================
   PROJECT TYPE DROPDOWN
   ========================================= */
.project-type-section {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.project-type-dropdown {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ddd;
    font-size: 12px;
    padding: 8px 12px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.project-type-dropdown:hover {
    border-color: rgba(255, 147, 41, 0.4);
}

.project-type-dropdown:focus {
    border-color: #ff9329;
}

.project-type-dropdown option {
    background: #1a1a1a;
    color: #ddd;
    padding: 8px;
}

.new-project-btn {
    background: linear-gradient(135deg, #ff9329 0%, #ff7b00 100%);
    border: none;
    color: #111;
    font-weight: 600;
    font-size: 11px;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.new-project-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 147, 41, 0.3);
}

/* ==== PROJECT CONSTRAINTS (Context-Aware Inputs) ==== */
.project-constraints {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.constraint-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.constraint-row {
    display: flex;
    gap: 6px;
}

.constraint-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: #ddd;
    font-size: 11px;
    padding: 8px 10px;
    outline: none;
    transition: border-color 0.2s ease;
}

.constraint-input:focus {
    border-color: rgba(255, 147, 41, 0.5);
}

.constraint-input.small {
    max-width: 80px;
}

.constraint-input::placeholder {
    color: #666;
}

.constraint-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: #aaa;
    font-size: 11px;
    padding: 8px 10px;
    cursor: pointer;
    outline: none;
}

.constraint-select:focus {
    border-color: rgba(255, 147, 41, 0.5);
}

/* ==== OUTPUT ACTIONS BAR ==== */
.output-actions {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 6px;
}

.action-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.output-actions .action-btn {
    background: rgba(255, 147, 41, 0.1);
    border: 1px solid rgba(255, 147, 41, 0.3);
    border-radius: 6px;
    color: #ff9329;
    font-size: 11px;
    font-weight: 500;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.output-actions .action-btn:hover {
    background: rgba(255, 147, 41, 0.2);
    transform: translateY(-1px);
}

.output-actions .action-btn:active {
    transform: scale(0.98);
}

/* ==== WIZARD STEP INDICATOR ==== */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 0;
    margin-top: 8px;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.5;
}

.wizard-step:hover {
    opacity: 0.8;
    background: rgba(255, 147, 41, 0.1);
}

.wizard-step.active {
    opacity: 1;
    background: rgba(255, 147, 41, 0.15);
}

.wizard-step.completed {
    opacity: 0.9;
}

.wizard-step.completed .step-num {
    background: #4ade80;
    color: #111;
}

.step-num {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.wizard-step.active .step-num {
    background: #ff9329;
    color: #111;
}

.step-label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wizard-step.active .step-label {
    color: #ff9329;
}

/* Step connectors */
.wizard-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    width: 8px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

/* ==== TOOL CONNECTIONS ==== */
.tool-connections {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 8px;
}

.tool-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-link:hover {
    background: rgba(255, 147, 41, 0.1);
    border-color: rgba(255, 147, 41, 0.3);
}

.tool-icon {
    font-size: 14px;
}

.tool-status {
    font-size: 8px;
    color: #666;
    /* disconnected */
}

.tool-status.connected {
    color: #4ade80;
    /* connected - green */
}

.tool-status.connecting {
    color: #fbbf24;
    /* connecting - yellow */
    animation: pulse 1s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Legacy project-tabs support */
.project-tabs {
    display: flex;
    padding: 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.2);
}