/* ===================================================================
   COMMAND PALETTE STYLES
   VS Code-style command palette for quick access to all functions
   =================================================================== */

.command-palette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    animation: commandPaletteFadeIn 0.2s ease;
}

@keyframes commandPaletteFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.command-palette-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: commandPaletteSlideIn 0.2s ease;
}

@keyframes commandPaletteSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.command-palette-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    gap: 12px;
}

.command-palette-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    color: #1f2937;
    background: transparent;
}

.command-palette-input::placeholder {
    color: #9ca3af;
}

.command-palette-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.command-palette-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.command-palette-results {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    min-height: 200px;
    max-height: 400px;
}

.command-palette-category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    padding: 8px 12px 4px 12px;
    letter-spacing: 0.5px;
}

.command-palette-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}

.command-palette-item:hover {
    background: #f3f4f6;
}

.command-palette-item.selected {
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
}

.command-palette-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.command-palette-text {
    flex: 1;
    min-width: 0;
}

.command-palette-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 2px;
}

.command-palette-description {
    font-size: 12px;
    color: #6b7280;
}

.command-palette-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 14px;
}

.command-palette-footer {
    border-top: 1px solid #e5e7eb;
    padding: 10px 16px;
    background: #f9fafb;
}

.command-palette-hint {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #6b7280;
    align-items: center;
}

.command-palette-hint kbd {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 11px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}