/* ==============================================================================
   WORKSPACE365 UNIVERSAL ENTERPRISE COMMAND PALETTE (CTRL + K)
   Cyber-Luxury Glassmorphic Spotlight Search & Keyboard Navigation
   ============================================================================== */

.command-palette-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 18, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.command-palette-backdrop.active {
    display: flex;
    opacity: 1;
}

.command-palette-modal {
    width: 100%;
    max-width: 680px;
    background: #0b1021;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 229, 255, 0.15);
    overflow: hidden;
    transform: scale(0.96) translateY(-10px);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.command-palette-backdrop.active .command-palette-modal {
    transform: scale(1) translateY(0);
}

.command-palette-header {
    display: flex;
    align-items: center;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.02);
}

.command-palette-icon {
    font-size: 1.25rem;
    color: #00e5ff;
    display: flex;
    align-items: center;
}

.command-palette-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1.1rem;
    color: #ffffff;
    font-family: inherit;
    font-weight: 500;
}

.command-palette-input::placeholder {
    color: #64748b;
    font-size: 1rem;
}

.command-palette-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.72rem;
    color: #94a3b8;
    font-family: monospace;
    font-weight: 600;
}

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

.command-palette-group-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #00e5ff;
    letter-spacing: 0.08em;
    padding: 0.5rem 0.75rem 0.25rem;
}

.command-palette-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #cbd5e1;
    text-decoration: none;
}

.command-palette-item:hover,
.command-palette-item.selected {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: #ffffff;
    transform: translateX(3px);
}

.command-palette-item-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.command-palette-item-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

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

.command-palette-item-title {
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.command-palette-item-sub {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.command-palette-item.selected .command-palette-item-sub {
    color: #94a3b8;
}

.command-palette-item-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
    margin-left: 0.5rem;
}

.command-palette-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.72rem;
    color: #64748b;
}

.command-palette-shortcuts {
    display: flex;
    gap: 0.75rem;
}

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

/* Floating trigger pill for mobile & click-oriented users */
.command-palette-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 5px 12px;
    color: #94a3b8;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.command-palette-trigger-btn:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
    color: #ffffff;
}

/* Datacenter Latency Radar styling */
.datacenter-latency-radar {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.72rem;
    color: #10b981;
    font-weight: 600;
    letter-spacing: 0.02em;
    user-select: none;
}

.datacenter-radar-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: radarPulse 2s infinite;
}

@keyframes radarPulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}
