.editor-search-container {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.editor-search-wrapper {
    position: relative;
    flex: 1;
}

.editor-search-input {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 12px 14px 12px 40px; 
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.editor-search-input:focus {
    border-color: var(--primary, #00ff88);
    background: #0f0f0f;
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.1);
}

.editor-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #444;
    pointer-events: none;
    transition: color 0.2s ease;
}

.editor-search-input:focus + .editor-search-icon {
    color: var(--primary, #00ff88);
}

.editor-view-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #0a0a0a;
    border: 1px solid #222;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.editor-view-toggle-btn:hover {
    background: #111;
    border-color: #444;
    color: #fff;
}

.editor-view-toggle-btn.active {
    background: rgba(var(--primary-rgb, 0, 255, 136), 0.1);
    border-color: var(--primary, #00ff88);
    color: var(--primary, #00ff88);
}

.presets-container.grid-view {
    flex-wrap: wrap;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 400px;
    justify-content: flex-start;
    padding-right: 5px; 
}

.presets-container.grid-view .preset-card {
    flex: 0 0 calc(33.333% - 10px);
    aspect-ratio: 1;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .presets-container.grid-view .preset-card {
        flex: 0 0 calc(50% - 8px);
    }
}

.presets-container.large-view {
    flex-wrap: wrap;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 400px;
    justify-content: flex-start;
    padding-right: 5px; 
}

.presets-container.large-view .preset-card {
    flex: 0 0 calc(50% - 10px);
    aspect-ratio: 1;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .presets-container.large-view .preset-card {
        flex: 0 0 calc(100% - 10px);
    }
}

.presets-container.list-view {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 400px;
    padding-right: 5px; 
}

.presets-container.list-view .preset-card {
    flex: 1 1 280px;
    max-width: 400px;
    aspect-ratio: auto;
    height: 60px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 0;
}

.presets-container.list-view .preset-card:hover {
    scale: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border-color: var(--primary, #00ff88);
}

.presets-container.list-view .preset-card img {
    width: 60px;
    height: 100%;
}

.presets-container.list-view .preset-name {
    position: static;
    background: none;
    text-shadow: none;
    color: #ccc;
    font-size: 14px;
    padding: 0 15px;
    text-align: left;
    width: auto;
    flex: 1;
}

.presets-container.list-view .preset-card:hover .preset-name {
    color: var(--primary, #00ff88);
    text-shadow: none;
}

@keyframes editorNoResultsSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.97);
    }
    60% {
        opacity: 1;
        transform: translateY(3px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes editorNoResultsSlideOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

@keyframes editorNoResultsIconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.editor-search-no-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #888;
    font-size: 13px;
    animation: editorNoResultsSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.editor-search-no-results.exiting {
    animation: editorNoResultsSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
}

.editor-search-no-results svg {
    color: #666;
    flex-shrink: 0;
    animation: editorNoResultsIconPulse 2s ease-in-out infinite;
}

.editor-search-no-results span {
    letter-spacing: 0.3px;
    font-weight: 500;
}

#dropdown-preset-filter {
    position: relative;
}

#menu-preset-filter {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: max-content;
    min-width: 220px;
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    z-index: 1000;
    padding: 5px;
    display: none;
    animation: editorDropdownSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes editorDropdownSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
