.page-loading.process-loading{
	background-color: rgb(255 255 255 / 53%) !important;
}

/* Logo responsive fixes for zoom */
.logo-box {
    overflow: hidden;
}

.logo-box .logo img {
    max-width: 100%;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

.logo-box .logo-sm img {
    max-height: 28px;
}

.logo-box .logo-lg img {
    max-height: 22px;
}

/* Ensure logo container doesn't shrink on zoom */
@media screen and (min-resolution: 120dpi) {
    .logo-box {
        min-width: 70px;
    }
}

/* Handle high zoom levels */
@media screen and (min-resolution: 144dpi) {
    .logo-box .logo img {
        max-height: 32px;
    }
}

/* ============================================
   Global Search Modal Styles
   Phase 5.2.F - Spotlight-style search
   ============================================ */

.global-search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    backdrop-filter: blur(2px);
}

.global-search-modal.show {
    display: flex;
}

.global-search-container {
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: searchSlideDown 0.2s ease-out;
}

@keyframes searchSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.global-search-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    gap: 12px;
}

.global-search-header > i {
    font-size: 24px;
    color: #6c757d;
}

.global-search-header input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    padding: 0;
    background: transparent;
}

.global-search-header input::placeholder {
    color: #adb5bd;
}

.global-search-hint {
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    color: #6c757d;
}

.global-search-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #6c757d;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-search-close:hover {
    background: #f1f3f5;
    color: #495057;
}

.global-search-close i {
    font-size: 20px;
}

.global-search-results {
    max-height: 400px;
    overflow-y: auto;
}

/* Empty, Loading, No Results States */
.search-empty-state,
.search-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #6c757d;
}

.search-empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.search-empty-state p {
    margin: 0;
    font-size: 16px;
}

.search-loading-state {
    flex-direction: row;
    padding: 30px 20px;
}

/* Results Header */
.search-results-header {
    padding: 8px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 13px;
}

/* Result Groups */
.search-result-group {
    border-bottom: 1px solid #e9ecef;
}

.search-result-group:last-child {
    border-bottom: none;
}

.search-result-group-header {
    padding: 10px 20px 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    background: #f8f9fa;
    display: flex;
    align-items: center;
}

.search-result-group-header i {
    font-size: 14px;
}

/* Result Items */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.15s ease;
    gap: 12px;
}

.search-result-item:hover,
.search-result-item.selected {
    background: #f1f3f5;
}

.search-result-item.selected {
    background: #e7f1ff;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 500;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-title mark {
    background: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
}

.search-result-subtitle {
    font-size: 13px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-item .badge {
    font-size: 11px;
    font-weight: 500;
}

/* Results Footer */
.search-results-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 12px;
    color: #6c757d;
}

.search-results-footer kbd {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 11px;
    margin: 0 2px;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .global-search-modal {
        padding-top: 0;
        align-items: stretch;
    }

    .global-search-container {
        max-width: 100%;
        border-radius: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .global-search-results {
        flex: 1;
        max-height: none;
    }

    .global-search-hint {
        display: none;
    }
}

/* Dark mode support (if enabled) */
[data-layout-color="dark"] .global-search-container {
    background: #313a46;
}

[data-layout-color="dark"] .global-search-header {
    border-color: #464f5b;
}

[data-layout-color="dark"] .global-search-header input {
    color: #f1f3fa;
}

[data-layout-color="dark"] .search-result-item:hover,
[data-layout-color="dark"] .search-result-item.selected {
    background: #3b4451;
}

[data-layout-color="dark"] .search-result-title {
    color: #f1f3fa;
}

[data-layout-color="dark"] .search-result-group-header,
[data-layout-color="dark"] .search-results-header,
[data-layout-color="dark"] .search-results-footer {
    background: #3b4451;
    border-color: #464f5b;
}