/* Command Palette Styles */

#command-palette-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5vh;
    padding-left: 1rem;
    padding-right: 1rem;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    transition: opacity 0.2s ease-out;
}

#command-palette-overlay.hidden {
    display: none;
    opacity: 0;
}

#command-palette-container {
    width: 100%;
    max-width: 640px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.2s ease-out;
}

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

#command-palette-input-container {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#command-palette-input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 1rem;
    color: #111827;
    outline: none;
    padding: 2px 0;
}

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

#command-palette-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.command-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.command-item.active {
    background-color: #f3f4f6;
}

.command-item:hover {
    background-color: #f9fafb;
}

.command-item.active .command-icon-container {
    background-color: #4f46e5;
    color: white;
}

.command-icon-container {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

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

.command-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.command-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#command-palette-footer {
    padding: 0.75rem 1rem;
    background-color: #f9fafb;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #6b7280;
    font-size: 0.75rem;
}

.footer-hint {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.kbd-hint {
    background: white;
    border: 1px solid #e5e7eb;
    border-bottom: 2px solid #e5e7eb;
    border-radius: 4px;
    padding: 0 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.75rem;
    min-width: 1.25rem;
    text-align: center;
    color: #374151;
}

/* Scrollbar styling */
#command-palette-results::-webkit-scrollbar {
    width: 6px;
}

#command-palette-results::-webkit-scrollbar-track {
    background: transparent;
}

#command-palette-results::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 3px;
}

#command-palette-results::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

.category-label {
    padding: 0.5rem 1rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

/* Drawer Animations */
.drawer-content {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-overlay {
    transition: opacity 0.3s ease-in-out;
}

#feature-detail-drawer.hidden .drawer-overlay {
    opacity: 0;
}

#feature-detail-drawer:not(.hidden) .drawer-overlay {
    opacity: 1;
}

/* Custom Scrollbar for Drawer */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 10px;
}
