/* Spotlight Modal Styling */
.spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1050;
    /* Bootstrap modal z-index */
    display: none;
    /* Hidden by default */
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.spotlight-modal {
    width: 600px;
    max-width: 90%;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.2s ease-out;
    border: 1px solid var(--border-color);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.98) translateY(-10px);
    }

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

.spotlight-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.spotlight-icon {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-right: 15px;
}

.spotlight-input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--text-main);
    outline: none;
}

.spotlight-input::placeholder {
    color: var(--text-light);
}

.spotlight-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

.spotlight-item {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.1s;
    color: var(--text-main);
}

.spotlight-item.active,
.spotlight-item:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.spotlight-item.active .text-muted,
.spotlight-item:hover .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.spotlight-footer {
    padding: 8px 16px;
    background: var(--bg-body);
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.kbd-shortcut {
    background: rgba(128, 128, 128, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-weight: 600;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .spotlight-footer {
        display: none;
    }

    .spotlight-input {
        font-size: 16px;
        /* 16px prevents iOS auto-zoom */
    }

    .spotlight-header {
        padding: 12px 16px;
    }
}