#search-modal {
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#search-modal.active {
    display: flex;
}

#search-modal .modal-content {
    animation: searchSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes searchSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

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

mark {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    border-radius: 2px;
    padding: 0 2px;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ═══════════════════════════════════
   Arama Sonucu Highlight Animasyonu
   Tüm sonuç tipleri için evrensel
═══════════════════════════════════ */
.search-highlight {
    animation: searchHighlight 2.5s ease-in-out;
    position: relative;
    z-index: 5;
}

@keyframes searchHighlight {
    0% {
        box-shadow: 0 0 0 0 transparent;
    }

    10% {
        box-shadow: 0 0 0 4px var(--primary-bg);
        border-color: var(--primary) !important;
        background-color: var(--primary-bg) !important;
    }

    30% {
        box-shadow: 0 0 16px 3px var(--primary-bg);
        border-color: var(--primary) !important;
        background-color: var(--primary-bg) !important;
    }

    70% {
        box-shadow: 0 0 16px 3px var(--primary-bg);
        border-color: var(--primary) !important;
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

/* Sidebar proje highlight */
.sidebar-item.search-highlight {
    background: var(--primary-bg) !important;
}