.command-palette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding-top: 10vh;
    transition: opacity 0.2s ease-in-out;
}

.command-palette-overlay[hidden] {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.command-palette-container {
    background: var(--bg-dark-2, #1a1a1a);
    width: 90%;
    max-width: 650px;
    height: fit-content;
    max-height: 70vh;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

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

.command-palette-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 12px;
}

.command-palette-header i {
    font-size: 1.2rem;
    color: var(--primary-color, #62a92b);
}

.command-palette-header input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-white-keep, #fff);
    font-size: 1rem;
    outline: none;
}

.command-palette-kbd {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-300, #999);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.command-palette-results {
    overflow-y: auto;
    padding: 8px;
    flex: 1;
}

.command-palette-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: var(--text-200, #ccc);
}

.command-palette-item.active,
.command-palette-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white-keep, #fff);
}

.command-palette-item i {
    font-size: 1rem;
    color: var(--text-300, #888);
}

.command-palette-item-content {
    flex: 1;
}

.command-palette-item-title {
    font-weight: 500;
    display: block;
}

.command-palette-item-type {
    font-size: 0.75rem;
    color: var(--text-300, #777);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
}

.command-palette-empty {
    padding: 40px;
    text-align: center;
    color: var(--text-300, #666);
}

.command-palette-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.1);
}

.command-palette-footer span {
    display: flex;
    align-items: center;
    gap: 4px;
}
