/* ============================================================================ */
/* COMMAND BAR (CMD+K) */
/* ============================================================================ */

.command-bar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    z-index: var(--z-layer-modal);
}

.command-bar {
    width: 600px;
    max-width: 90vw;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: commandBarSlideIn var(--duration-normal) var(--ease-in-out);
}

@keyframes commandBarSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.command-bar-input-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-light);
}

.command-bar-search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    stroke-width: 2;
}

.command-bar-input {
    flex: 1;
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
}

.command-bar-input::placeholder {
    color: var(--text-tertiary);
}

.command-bar-results {
    max-height: 400px;
    overflow-y: auto;
}

.command-result-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.command-result-item:hover,
.command-result-item.selected {
    background: var(--accent-blue-light);
}

.command-result-icon {
    font-size: var(--font-size-18);
    width: 24px;
    text-align: center;
}

.command-result-title {
    flex: 1;
    font-size: var(--font-size-base);
    color: var(--text-primary);
}

.command-result-type {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    text-transform: capitalize;
}

.command-bar-footer {
    padding: var(--space-2) var(--space-4);
    background: var(--bg-secondary);
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    text-align: center;
}
