/* /css/quick_tools/search_tool.css */
/* Quick Tools: Global Spotlight Search & Command Palette Component Styles */

.spotlight-search-modal .modal-dialog {
    margin-top: 10vh;
}

.spotlight-modal-content {
    background: rgba(var(--bs-body-bg-rgb), 0.92) !important;
    backdrop-filter: blur(32px) saturate(190%);
    -webkit-backdrop-filter: blur(32px) saturate(190%);
    border: 1px solid var(--bs-border-color-translucent) !important;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.spotlight-search-icon {
    font-size: 1.35rem;
    color: var(--apple-accent-color, #6c63ff);
    transition: transform 0.2s ease;
}

.spotlight-search-input {
    font-size: 1.12rem;
    font-weight: 500;
    background: transparent !important;
    color: var(--bs-body-color) !important;
}

.spotlight-search-input::placeholder {
    color: var(--bs-secondary-color);
    opacity: 0.65;
    font-weight: 400;
}

.spotlight-esc-badge {
    background: rgba(128, 128, 128, 0.18);
    border: 1px solid var(--bs-border-color-translucent);
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Category Headers */
.spotlight-category-header {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--bs-secondary-color);
    padding: 8px 12px 4px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Item Rows */
.spotlight-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    text-decoration: none;
    color: var(--bs-body-color);
    margin-bottom: 2px;
}

.spotlight-item:hover,
.spotlight-item.active-item {
    background: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--bs-body-color);
    transform: translateX(3px);
}

.spotlight-item.active-item {
    box-shadow: 0 0 0 1px var(--apple-accent-color, #6c63ff);
}

.spotlight-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    background: rgba(var(--bs-secondary-bg-rgb), 0.8);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color-translucent);
    transition: transform 0.2s ease;
}

.spotlight-item:hover .spotlight-item-icon,
.spotlight-item.active-item .spotlight-item-icon {
    transform: scale(1.08);
    background-color: var(--apple-accent-color, #6c63ff);
    color: #ffffff !important;
    border-color: transparent;
}

.spotlight-item-content {
    flex-grow: 1;
    min-width: 0;
    padding-left: 10px;
}

.spotlight-item-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotlight-item-subtitle {
    font-size: 0.78rem;
    color: var(--bs-secondary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotlight-item-action-hint {
    font-size: 0.74rem;
    opacity: 0;
    transition: opacity 0.15s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--apple-accent-color, #6c63ff);
    font-weight: 500;
}

.spotlight-item:hover .spotlight-item-action-hint,
.spotlight-item.active-item .spotlight-item-action-hint {
    opacity: 1;
}

/* Keyboard hint keys */
.spotlight-kbd {
    background: rgba(var(--bs-body-bg-rgb), 0.7);
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 0.72rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    color: var(--bs-body-color);
}

/* Sub-btn gradient for search in FAB */
.global-fab-sub-btn.btn-search-tool {
    background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.45) !important;
}

.global-fab-sub-btn.btn-notes-tool {
    background: linear-gradient(135deg, var(--apple-accent-color, #6c63ff), #4facfe) !important;
}