/* Dark Command Palette Styles - Arc Browser Compatible */

/* Force highest z-index to override Arc's interface */
.command-palette {
    z-index: 999999 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
}

.command-overlay {
    z-index: 999999 !important;
    position: fixed !important;
    background: rgba(0, 0, 0, 0.8) !important;
}

.command-modal {
    z-index: 1000000 !important;
    position: relative !important;
    transform: none !important;
}
.command-item-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: 8px;
    flex-shrink: 0;
    background: #374151;
    color: #f9fafb;
}

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

.command-item-title {
    font-weight: 500;
    font-size: 0.9rem;
    color: #f9fafb;
    margin-bottom: 0.25rem;
}

.command-item-subtitle {
    font-size: 0.8rem;
    color: #9ca3af;
}

.command-item-action {
    font-size: 0.8rem;
    color: #9ca3af;
    flex-shrink: 0;
    padding: 0.375rem 0.75rem;
    background: #374151;
    border-radius: 6px;
    border: 1px solid #4b5563;
}

/* AI Assistant Highlight */
.ai-assistant-highlight {
    background: #1e40af !important;
    color: white;
    margin: 0.5rem;
    border-radius: 8px;
    border: 1px solid #3b82f6;
}

.ai-assistant-highlight:hover {
    background: #1d4ed8 !important;
}

.ai-assistant-highlight .command-item-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.ai-assistant-highlight .command-item-title,
.ai-assistant-highlight .command-item-subtitle,
.ai-assistant-highlight .command-item-action {
    color: white;
}

.ai-assistant-highlight .command-item-action {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Footer */
.command-footer {
    border-top: 1px solid #374151;
    padding: 0.75rem 1rem;
    background: #1f2937;
}

.command-tips {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.tip kbd {
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 3px;
    padding: 0.125rem 0.375rem;
    margin: 0 0.125rem;
    font-size: 0.6875rem;
    color: #d1d5db;
}

/* Project-specific icons */
.entic-icon {
    background: #f59e0b !important;
    color: white !important;
}

.clinic-icon {
    background: #10b981 !important;
    color: white !important;
}

.medical-icon {
    background: #3b82f6 !important;
    color: white !important;
}

.ai-tools-icon {
    background: #8b5cf6 !important;
    color: white !important;
}

.launchpad-icon {
    background: #f97316 !important;
    color: white !important;
}

/* Arc Browser Overrides */
body.arc-browser .command-palette,
body[data-arc] .command-palette,
.launchpad-overlay {
    z-index: 2147483647 !important; /* Maximum z-index */
    isolation: isolate !important;
}

/* Override Arc's command palette */
arc-palette,
.arc-command-palette,
[data-arc-palette] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Force our modal to appear above everything */
.launchpad-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(8px) !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.launchpad-modal {
    background: #1f2937 !important;
    border-radius: 12px !important;
    width: 90% !important;
    max-width: 600px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid #374151 !important;
    z-index: 2147483647 !important;
}