/* BlockPicker - Dropdown-Menü Styles */

.block-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.block-picker {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    max-width: 320px;
    max-height: 500px;
    z-index: 2001;
    overflow: hidden;
    animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.block-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.block-picker-header span {
    font-weight: 600;
    font-size: var(--h3);
    color: var(--text);
}

.block-picker-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    transition: background 0.2s, color 0.2s;
}

.block-picker-close:hover {
    background: var(--gray-100);
    color: var(--text);
}

.block-picker-content {
    max-height: 450px;
    overflow-y: auto;
    padding: var(--space-2);
}

.block-picker-category {
    margin-bottom: var(--space-4);
}

.block-picker-category:last-child {
    margin-bottom: 0;
}

.block-picker-category-title {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--space-2) var(--space-3);
    margin-bottom: var(--space-1);
}

.block-picker-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    border-radius: var(--r-sm);
    transition: background 0.15s;
    font-size: var(--body);
    color: var(--text);
}

.block-picker-option:hover:not(:disabled),
.block-picker-option.selected {
    background: var(--bg);
}

.block-picker-option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.block-picker-icon {
    font-size: 20px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.block-picker-label {
    flex: 1;
}

/* Scrollbar Styling */
.block-picker-content::-webkit-scrollbar {
    width: 6px;
}

.block-picker-content::-webkit-scrollbar-track {
    background: transparent;
}

.block-picker-content::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.block-picker-content::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

